About this tool
Type a pattern and some text to see matches highlighted instantly, along with captured groups. Optionally preview a replacement.
How to use Regex Tester
- Enter your pattern and flags.
- Paste the text to test.
- Review highlighted matches, groups and the replacement result.
Frequently asked questions
Which regex flavor is used?
JavaScript (ECMAScript). Other languages may differ slightly.
What do the flags mean?
g finds all matches, i ignores case, m makes ^ and $ match per line, s lets . match newlines.