Regex Tester
Test regular expressions against sample text in real time, with match highlighting, capture groups, and code snippets.
//g
Flags
Presets
Test String0 chars
Matches0
Enter a pattern and a test string above to see match results.
Replacement
Replacement Result
The replacement result will appear here.//g
Matching uses the JavaScript RegExp engine, the same one running in your browser.
Turn off the Global flag to test .exec()-style single-match behavior instead of finding every match.
All matching runs locally in your browser; nothing is sent to external servers.