Loading...
Create, test, and debug regular expressions with powerful tools
No matches found
^[\w\.-]+@[\w\.-]+\.[a-zA-Z]{2,}$Matches valid email addresses
https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)Matches HTTP/HTTPS URLs
^(\+?1-?)?\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$Matches US phone numbers
^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|3[47][0-9]{13}|3[0-9]{13}|6(?:011|5[0-9]{2})[0-9]{12})$Major credit card formats
^(?:(?: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]?)$IPv4 addresses
^(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/(19|20)\d\d$US date format
^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$Hexadecimal color codes
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$Strong password requirements
^[a-zA-Z0-9_-]{3,16}$Alphanumeric username 3-16 chars
<\/?[\w\s="/.':-]+\/?>HTML tags with attributes
"([^"\\]|\\.)*"JSON string values
\.[a-zA-Z]([a-zA-Z0-9_-]+)?CSS class selectors