Regex Tester

Write a regex pattern and test it against your text in real time. Shows all matches, capture groups, and highlights what matched. Supports all JS regex flags (g, i, m, s, u, y) and gives an error message if the pattern is invalid.

Highlighted
Hello world! Hello regex.
Matches (0)
No matches.

How to use

  1. Type your regex pattern in the pattern box. Add any flags (g, i, m, etc.) you need.
  2. Paste or type the test text you want to run it against.
  3. Matches highlight in real time. Scroll down to see each match and any capture groups.