Email address
/^[\w.-]+@[\w-]+(\.[\w-]+)+$/
Common email format validation
URL
/https?:\/\/[\w-]+(\.[\w-]+)+(:\d+)?(\/[^\s]*)?/i
HTTP/HTTPS URL
UUID v4
/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i
Universally unique identifier (version 4)
US phone number
/^(\+1[-.\s]?)?\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$/
US numbers with optional country code
URL slug
/^[a-z0-9]+(-[a-z0-9]+)*$/
Lowercase hyphenated slug
Hex color
/^#?([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i
#RGB, #RRGGBB or #RRGGBBAA
Date (ISO 8601)
/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/
YYYY-MM-DD date format
Time (24-hour)
/^([01]\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/
HH:MM or HH:MM:SS
IPv4 address
/^(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}$/
Dotted-quad IPv4
IPv6 address
/^(([0-9a-f]{1,4}:){7}[0-9a-f]{1,4}|::1|::)$/i
Simplified full-form IPv6