Matches will be highlighted here...
๐ง Email Address
^[a-zA-Z0-9._%+-]+@...
๐ URL
https?://(www.)?...
๐ฑ Phone Number
^(\+\d{1,3})?...
๐ Strong Password
^(?=.*[a-z])...
๐จ HEX Color
^#([A-Fa-f0-9]{6}|...)
๐ IP Address
^(\d{1,3}\.){3}...
๐
Date (YYYY-MM-DD)
^\d{4}-\d{2}-\d{2}$
๐ All Caps Words
\b[A-Z]{2,}\b
๐ Slug / Username
^[a-z][a-z0-9_]*$
๐ข Numbers
\b\d+\.?\d*\b
๐ UUID
^[a-fA-F0-9]{8}-...
๐ท๏ธ HTML Tags
<[^>]+>
Regex Quick Reference
What do the common regex symbols mean? โผ
. matches any character, * means zero or more, + means one or more, ? means zero or one, ^ matches start, $ matches end, [] is a character class, () is a group, | is OR, \d matches digits, \w matches word characters, \s matches whitespace.
What are regex flags? โผ
g (global) finds all matches instead of stopping at first. i (ignoreCase) makes matching case-insensitive. m (multiline) makes ^ and $ match line boundaries. s (dotAll) makes . match newlines too. u enables Unicode mode.
How do I use capture groups? โผ
Wrap parts of your pattern in () to create capture groups. For example (\d{4})-(\d{2})-(\d{2}) captures year, month, day separately. In the replace field use $1, $2, $3 to reference captured groups.