Regex Tester

Test a regular expression against sample text and see matches highlighted.

Contact us at hello@example.com or support@toolbox.dev for help.

2 matches

Contact us at hello@example.com or support@toolbox.dev for help.
  • #1 at index 14: hello@example.com
  • #2 at index 35: support@toolbox.dev
Your file never leaves this browser tab — everything runs locally on your device.

How to use regex tester

  1. Enter a regular expression and any flags (e.g. gi).
  2. Paste or type your sample text.
  3. Matches highlight instantly, with a list showing each match's position and capture groups.

Common use cases

  • Building and debugging a validation pattern (email, phone number, etc.) before using it in code.
  • Checking whether a regex correctly matches all the cases in a block of sample text.
  • Learning regex syntax by experimenting and seeing immediate results.

Related tools

Frequently asked questions