Test and debug regular expressions with real-time match highlighting. Supports all JavaScript regex flags (g, i, m, s, u).
Try it Free →See matches highlighted in the test string instantly as you type or modify your regex.
Toggle global (g), case-insensitive (i), multiline (m), dotAll (s), and unicode (u) flags.
Shows match count, captured groups, index positions, and named groups for each match.
Recent patterns are saved locally so you can reuse them.
All testing is local in your browser. No data is sent anywhere.
Your regex is color-coded to distinguish metacharacters, quantifiers, and character classes.
Type or paste your regular expression in the regex input field.
Toggle the flags you need: g (global), i (case-insensitive), m (multiline), s (dotAll), u (unicode).
Type or paste the text you want to test your regex against.
Matches are highlighted instantly. Click any match to see details like groups and index.