Regex Tester
Write a regular expression, paste in real text, and watch every match highlight live — with full capture-group detail for each hit.
More Developer Tools Tools
| # | Index | Full match | Groups |
|---|---|---|---|
How to Use Regex Tester
Type a pattern into the Pattern field, tick the flags you need (g, i, m, s), then paste or type your test string underneath. Matches highlight directly inside the text as you type, and a table below lists every match's position, full text, and any capture groups. An invalid pattern shows a clear inline error instead of breaking the page. Everything runs in your browser — the pattern and test string are never sent to a server.
About Regex Tester
Details & Tips
Frequently Asked Questions
What flavour of regex does this tool use?
Why does it say "0 matches" even though I can see the text in my string?
What does the "g" flag actually change if the tool already finds every match?
My pattern is valid but the page seems to hang — what happened?
How do I match a literal dot, parenthesis, or other special character?
What is the difference between `(...)` and `(?:...)`?
Does the "m" flag change what `.` matches?
Is my test string or pattern sent to a server?
Can I test named capture groups like `(?<year>\d{4})`?
Why do empty matches only advance by one character?
Can I use this to build patterns for PHP, Python, or another language?
Part of These Collections
Also Available As
regex tester, regular expression tester, regex tool, test regex online, regex match highlighter, regex capture groups, javascript regex tester
Explore More Tools
View all toolsFound a Problem?
Let us know if something with Regex Tester isn't working as expected.
Thanks — we'll take a look.