Back to Portfolio
Regex Tester & Explainer
Test regular expressions with live highlighting and plain English explanations
Regular Expression Pattern
Flags
g - Global
i - Case Insensitive
m - Multiline
s - Dot All
u - Unicode
y - Sticky
Test String
Common Patterns
Email Address
Matches standard email addresses
URL
Matches HTTP and HTTPS URLs
US Phone Number
Matches US phone numbers in various formats
ISO Date
Matches ISO 8601 date format (YYYY-MM-DD)
IPv4 Address
Matches valid IPv4 addresses
Hex Color
Matches 3 or 6 digit hex color codes
UUID
Matches UUID (v4) format
Username
Matches usernames (3-16 chars, alphanumeric, underscore, hyphen)
Strong Password
At least 8 chars with uppercase, lowercase, number, and special char
HTML Tag
Matches HTML tags with content or self-closing
Enter a pattern to begin
Pattern is empty