Best free regex validator for 2025. Test your regular expressions with real-time matching, explore 20+ common patterns (email, phone, URL, password), and learn regex syntax. Trusted by 100K+ developers worldwide.
No matches found
Validates email addresses with proper format
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$US phone number with various formats
^\+?1?[-.\s]?\(?([0-9]{3})\)?[-.\s]?([0-9]{3})[-.\s]?([0-9]{4})$International phone number format
^\+[1-9]\d{1,14}$Validates HTTP/HTTPS URLs
^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$Password with uppercase, lowercase, number, and special char
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$Visa credit card numbers
^4[0-9]{12}(?:[0-9]{3})?$MasterCard credit card numbers
^5[1-5][0-9]{14}$ISO date format validation
^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$24-hour time format
^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$Validates IPv4 addresses
^(?:(?: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]?)$Validates IPv6 addresses
^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$CSS hex color codes (3 or 6 digits)
^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$RGB color format validation
^rgb\(\s*(0|[1-9]\d?|1\d\d?|2[0-4]\d|25[0-5])\s*,\s*(0|[1-9]\d?|1\d\d?|2[0-4]\d|25[0-5])\s*,\s*(0|[1-9]\d?|1\d\d?|2[0-4]\d|25[0-5])\s*\)$Username with alphanumeric and underscore
^[a-zA-Z0-9_]{3,20}$US SSN format (XXX-XX-XXXX)
^\d{3}-\d{2}-\d{4}$US ZIP code with optional +4
^\d{5}(-\d{4})?$Only letters and numbers allowed
^[a-zA-Z0-9]+$No whitespace characters allowed
^\S+$Decimal number with 1-2 decimal places
^\d+\.\d{1,2}$Positive integers only (no leading zeros)
^[1-9]\d*$