Best Free Regex Tester
Test a regular expression against your text live, with match and group highlighting.
How it works
- Enter a pattern. Type your regular expression and any flags (g, i, m, s, u).
- Paste test text. Add the text to run it against; matches highlight live as you type.
- Read the matches. See the count, the highlighted matches, and any capture groups.
About this tool
Build and check a regular expression against real text and watch the matches highlight as you type. Enter the pattern and flags, paste your test text, and every match is marked inline with the capture groups listed below - so you can see immediately whether the regex does what you intend. It uses your browser’s own JavaScript regex engine, so the behaviour matches what you’ll get in JS, and nothing is sent anywhere. Advanced options explain the flags (global, ignore-case, multiline, dotall, unicode).
What people use it for
- Check a regex matches what you expect before shipping it
- Debug a pattern that isn’t catching the right text
- See capture groups for a complex expression
- Learn regex by experimenting with instant feedback