Regex Tester
Test and validate regular expressions with real-time matching, group capture, and replacement features. Perfect for pattern validation and text processing.
Regex Tester
Test regular expressions with real-time matching and replacement. Supports all JavaScript regex flags and features.
Valid
/
/g
0 matches
Enter a regex pattern to see matches
Common Patterns
Quick Reference
Character Classes
\d - Digits (0-9)
\w - Word characters
\s - Whitespace
. - Any character
Quantifiers
* - 0 or more
+ - 1 or more
? - 0 or 1
{n,m} - Between n and m
Anchors
^ - Start of line
$ - End of line
\b - Word boundary
Tips
• Use parentheses () to create groups
• Use (?:) for non-capturing groups
• Use (?<name>) for named groups
• Escape special characters with \
• Use online regex visualizers for complex patterns