All Tools › Regex Tester

Regex Tester

Test a regular expression against text with live highlighting.

Test regular expressions with live feedback

Regular expressions are powerful but unforgiving — a single character changes what matches. Rather than guess and re-run your program, this tester lets you build a pattern and see, instantly, what it matches against sample text. Matches are highlighted as you type, so you can refine the pattern until it catches exactly what you want and nothing you don't.

How to use it

  1. Enter your regular expression and any flags.
  2. Paste sample text to test against.
  3. Watch the matches highlight, and adjust the pattern until it's right.

Tips

Questions people ask

Which regex dialect does it use? JavaScript's, which closely matches the syntax used in many other languages for everyday patterns.

Is my text sent anywhere? No — matching runs locally in your browser.