RegEx Tester
Build and test JavaScript regular expressions in real time, see every match and capture group, and try replacements.
How to use RegEx Tester
- Enter your pattern and flags (g, i, m, …).
- Type or paste the test string below.
- Watch matches highlight live and inspect the capture groups.
Frequently asked questions
- Can I test a find-and-replace?
- Yes — enter a replacement string with $1, $2 group references to preview the output.