Developer Tools

Regex Tester

Test JavaScript regular expressions with live match highlighting and replace preview.

//

Flags: g (global), i (ignore case), m (multiline), s (dotall), u (unicode)

Common patterns:

2 matches found

Highlighted Matches

Contact us at hello@toolsmadeeasy.com or support@example.org.
Notes: visit https://toolsmadeeasy.com for more.
#MatchIndex
1hello@toolsmadeeasy.com14
2support@example.org.41

Regex Cheat Sheet

  • \d — Digit (0–9)
  • \w — Word char (a-z, A-Z, 0-9, _)
  • \s — Whitespace
  • . — Any character (except newline)
  • ^ / $ — Start / end of line
  • * — 0 or more
  • + — 1 or more
  • ? — 0 or 1 (or non-greedy)
  • {n,m} — Between n and m occurrences
  • [abc] — Any of a, b, c
  • (group) — Capture group
  • (?:group) — Non-capturing group
  • | — OR

Keep exploring

Related tools

Browse all 38+ tools