โ† Tools

Regex Tester + Explainer

Local only

Live regex matching, flags, common patterns library, and plain-English token explainer.

Your tool inputs are processed in this browser. We do not upload them to our servers.

Common patterns

//
Flags

Highlighted matches

2 matches
Contact 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).

  1. \b โ€” Word boundary
  2. \w โ€” Word character (letter, digit, or _)
  3. + โ€” One or more of the previous token
  4. โ€œ@โ€ โ€” Literal character
  5. \w โ€” Word character (letter, digit, or _)
  6. + โ€” One or more of the previous token
  7. \. โ€” Escaped literal โ€œ.โ€
  8. \w โ€” Word character (letter, digit, or _)
  9. + โ€” One or more of the previous token
  10. \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.

Keep working

Related tools