Regex Tester
Enter a regular expression and a test string to see live matches and capture groups.
match(es)
@
· groups:
How to use the Regex Tester
- 1 Type your regular expression and flags.
- 2 Paste the text to test against.
- 3 See every match, its index and capture groups.
About the Regex Tester
Regular expressions are powerful but easy to get wrong. This tester runs your pattern against sample text and lists every match and group so you can refine it quickly.
It uses the browser’s native JavaScript regex engine and runs entirely on your device.
Frequently asked questions
Which flavor of regex?
JavaScript (ECMAScript) regular expressions, with flags like g, i, m and s.
Are capture groups shown?
Yes, each match lists its position and any capture groups.