Test and debug regular expressions with real-time matching, capture groups, and common pattern examples
Matches email addresses
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}
Matches HTTP/HTTPS URLs
https?:\/\/[^\s]+
Matches US phone numbers
\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}
Matches dates in YYYY-MM-DD format
\d{4}-\d{2}-\d{2}
Matches IPv4 addresses
\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b
Matches hex color codes
#[a-fA-F0-9]{6}|#[a-fA-F0-9]{3}