π Regex Tester
Test and debug regular expressions with real-time matching, highlighting, and detailed statistics.
Used by 75k+ developers this month
π‘ Regex Pattern Guide
Character Classes
\d digits, \w word chars, \s whitespace, . any character
Quantifiers
+ one or more, * zero or more, ? optional, {n} exactly n
Anchors
^ start of line, $ end of line, \b word boundary
Flags
i ignore case, m multiline, s dot matches newline, g global
π Common Patterns
\d+
One or more digits
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}
Email address
https?://[^\s]+
URL
\b\d{3}-\d{3}-\d{4}\b
Phone number (US)
#[a-fA-F0-9]{6}
Hex color code
\b[A-Z]{2,}\b
Uppercase words