Regex Tester
g global
i ignore case
m multiline
s dotall
u unicode
Enter a pattern and test string to see matches
Email Address
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}
URL
https?://(www\.)?[\w-]+(\.[\w-]+)+...
Phone (US)
\d{3}[-.]?\d{3}[-.]?\d{4}
Date (YYYY-MM-DD)
\d{4}-\d{2}-\d{2}
Hex Color
#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})
IPv4 Address
(?:25[0-5]|2[0-4]\d|[01]?\d\d?)...
ZIP Code (US)
\d{5}(-\d{4})?
Capitalized Word
[A-Z][a-z]+
Number (int or decimal)
\b\d+\.?\d*\b
HTML Tag (with content)
<([a-z][a-z0-9]*)\b[^>]*>...