Regex Tester
Enter a pattern and test string. Matches are highlighted as you type, with a full list of captures and their positions.
Frequently asked questions
Which regex flags are supported?
Global (g), case-insensitive (i), multiline (m) and dotAll (s) are supported. Toggle them with the checkboxes.
Does the tester upload my text?
Never. The regular expression engine built into your browser does all the work locally.
Why does my pattern match only once?
Enable the global (g) flag. Without it, JavaScript returns only the first match.
Can I use lookahead and lookbehind?
Yes, if your browser supports them. Modern Chrome, Edge, Firefox and Safari support lookahead; lookbehind support varies.