Regex Tester + Explainer
Live regex matching, flags, common patterns library, and plain-English token explainer.
100% client-side — your data never leaves this device.
Common patterns
//
Flags
Highlighted matches
2 matchesContact us at hello@example.com or support@test.org for help.
Match details
- hello@example.comindex 14
- support@test.orgindex 35
Pattern explainer
Plain-English breakdown of tokens (approximate — complex regex may need extra care).
- \b — Word boundary
- \w — Word character (letter, digit, or _)
- + — One or more of the previous token
- “@” — Literal character
- \w — Word character (letter, digit, or _)
- + — One or more of the previous token
- \. — Escaped literal “.”
- \w — Word character (letter, digit, or _)
- + — One or more of the previous token
- \b — Word boundary
How to use the regex tester
Enter a JavaScript-compatible regular expression, toggle flags (g, i, m, s, u, y), or pick a common pattern (email, URL, phone, IPv4…). Matches highlight instantly with group details and a token-by-token explainer. Everything runs in your browser.