Developer ToolsPrivate by design
Regex Tester
Enter a regular expression and test string to see every match highlighted, along with capture groups, using JavaScript regex syntax.
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.
Related tools
Keep the boring tools boring.
If this saved you five minutes of nonsense, you can help keep the free tools running.
Buy the toolbox a coffee