Regex Tester
Test regular expressions with live matching, capture groups, and detailed explanations. Perfect for developers working with pattern matching and text processing.
Regular Expression
//g
Match Summary
0 matches
Pattern:
/\b\w+@\w+\.\w+\b/g
Test String
76 characters
Match Results
No matches found. Try adjusting your pattern or test string.
Regex Quick Reference
Character Classes
- •
.
- Any character - •
\d
- Digit (0-9) - •
\w
- Word character - •
\s
- Whitespace - •
[abc]
- Character set - •
[^abc]
- Negated set
Quantifiers
- •
*
- Zero or more - •
+
- One or more - •
?
- Zero or one - •
{n}
- Exactly n - •
{n,m}
- Between n and m - •
{n,}
- n or more
Anchors
- •
^
- Start of string - •
$
- End of string - •
\b
- Word boundary - •
\B
- Non-word boundary
Groups & Alternation
- •
(abc)
- Capture group - •
(?:abc)
- Non-capture group - •
(?<name>abc)
- Named group - •
a|b
- Alternation