Ctrl+Enter to test | Esc to clear
Match Details
Email Address
[\w.+-]+@[\w-]+\.[\w.]+
URL
https?:\/\/[^\s<>\"]+
IPv4 Address
\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b
Phone Number (US)
\b\d{3}[-.]?\d{3}[-.]?\d{4}\b
Hex Color
#([0-9a-fA-F]{3}){1,2}\b
Date (YYYY-MM-DD)
\b\d{4}[-/]\d{2}[-/]\d{2}\b
HTML Tag
<([a-z][a-z0-9]*)\b[^>]*>(.*?)<\/\1>
Proper Names
\b[A-Z][a-z]+(?:\s[A-Z][a-z]+)+
.Any char
\dDigit [0-9]
\wWord char
\sWhitespace
\bWord boundary
^Start of line
$End of line
*0 or more
+1 or more
?0 or 1
{n,m}n to m times
[abc]Char class
[^abc]Negated class
(abc)Capture group
(?:abc)Non-capture
a|bAlternation
(?=abc)Lookahead
(?!abc)Neg lookahead
(?<=a)Lookbehind
(?<!a)Neg lookbehind
(?<name>)Named group
\1Backreference
*?Lazy star
+?Lazy plus