Regex Tester

Test, debug, and master your regular expressions in real-time.

73 characters
2 matches in 0.29ms
Contact us at support@example.com or sales@test.org for more information.
Match 1Index: 14
"support@example.com"
Match 2Index: 37
"sales@test.org"

Regex Cheat Sheet

Character Classes

.Any character except newline
\dDigit [0-9]
\wWord character [a-zA-Z0-9_]
\sWhitespace character
[abc]Any character in the set
[^abc]Any character NOT in the set

Quantifiers

*0 or more
+1 or more
?0 or 1
{n}Exactly n times
{n,}n or more times
{n,m}Between n and m times

Anchors

^Start of string / line
$End of string / line
\bWord boundary

Groups & Logic

(...)Capturing group
(?:...)Non-capturing group
a|bEither a or b
Tip: Hover over matches for match indices

Why use this tool?

  • Instant real-time matching feedback
  • Support for all modern JavaScript flags
  • Detailed capture group inspection
  • Zero latency local processing