Loadingβ¦
Loadingβ¦
100+ ready-to-use regex patterns for email, phone, URL, dates, IP, and more. Copy and test instantly.
Loading tool...
Remove ads and work faster? Go Premium.
Unlock PremiumTest and debug regular expressions with real-time match highlighting, capture groups, and flags support β all processed client-side in your browser.
Developer ToolsChoose from common regex patterns or build your own with real-time testing.
Developer ToolsAuto-generate JSON Schema (Draft-07 / 2020-12) from any JSON object with nested definitions.
Developer ToolsFormat, beautify, and validate JSON data with syntax highlighting.
Validates standard email format
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$RFC 5322 compliant email validation
(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?: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]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])Alphanumeric username, 3-16 chars
^[a-zA-Z0-9_]{3,16}$US phone number with optional formatting
^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$E.164 international phone format
^\+?[1-9]\d{1,14}$Indian mobile number
^(\+91[\-\s]?)?[0]?(91)?[789]\d{9}$HTTP/HTTPS URLs
https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)Valid IPv4 address
^(?:(?: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]?)$IPv6 address (full form)
^(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$MAC address with : or - separator
^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$Min 8 chars, uppercase, lowercase, number, special
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$MD5 hash string
^[a-fA-F0-9]{32}$SHA-256 hash string
^[a-fA-F0-9]{64}$ISO 8601 date format
^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$US date format
^(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/\d{4}$European date format
^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[0-2])\/\d{4}$24-hour time format
^([01]?[0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9])?$12-hour time with AM/PM
^(0?[1-9]|1[0-2]):[0-5][0-9]\s?(AM|PM|am|pm)$Visa, Mastercard, Amex, Discover
^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|3[47][0-9]{13}|6(?:011|5[0-9]{2})[0-9]{12})$Credit card security code
^[0-9]{3,4}$Positive or negative integer
^-?\d+$Decimal number
^-?\d*\.?\d+$US dollar format
^\$?\d{1,3}(,\d{3})*(\.\d{2})?$Percentage value
^-?\d+(\.\d+)?%$Hex color code
^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$URL-friendly slug
^[a-z0-9]+(?:-[a-z0-9]+)*$Only letters and numbers
^[a-zA-Z0-9]+$Letters, numbers, spaces only
^[a-zA-Z0-9\s]+$Match HTML tags
<([a-z]+)([^<]+)*(?:>(.*)<\/\1>|\s+\/>)UUID version 4
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$US Social Security Number
^(?!000|666|9\d{2})\d{3}-(?!00)\d{2}-(?!0000)\d{4}$US ZIP code with optional +4
^\d{5}(-\d{4})?$Indian postal code
^[1-9][0-9]{5}$UK postcode format
^([A-Z]{1,2}\d[A-Z\d]? ?\d[A-Z]{2}|GIR ?0AA)$Extract file extension
\.[a-zA-Z0-9]+$Common image extensions
\.(jpg|jpeg|png|gif|webp|svg|bmp)$Valid JavaScript variable
^[a-zA-Z_$][a-zA-Z0-9_$]*$. Any character\\d Digit [0-9]\\w Word char [a-zA-Z0-9_]\\s Whitespace* 0 or more+ 1 or more? 0 or 1{n,m} n to m times^ Start of string$ End of string\\b Word boundary(?=...) Lookahead