π» Developer Tools
Regex Tester
Enter a regular expression and test string to see every match highlighted, along with capture groups, using JavaScript regex syntax.
//
0 matches
How to use this tool
- 1Type your regex pattern and select flags (g, i, m, s).
- 2Paste your test text below.
- 3Matches are highlighted live, with capture groups listed underneath.
Frequently asked questions
- Which regex flavor does this use?
- This tool uses JavaScript's native RegExp engine, the same one used in browsers and Node.js.
- Why isn't my pattern matching anything?
- Check that the global flag (g) is set if you expect multiple matches, and that special characters are escaped correctly.