Regex Tester
Test and validate regular expressions with real-time matching and explanations
Regular Expression Pattern
Flags: g (global), i (ignore case), m (multiline), s (dotall), u (unicode), y (sticky)
Valid Pattern
2 matches
Test String
Test Results
Highlighted Matches
Contact us at john@example.com or support@test.org for help.
Match Details
Match 1
Position: 14Full Match: "john@example.com"
Match 2
Position: 34Full Match: "support@test.org"
Common Regex Patterns
Matches email addresses
\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\bURL
Matches HTTP/HTTPS URLs
https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)Phone Number
Matches US phone numbers
\(?\d{3}\)?[-\s]?\d{3}[-\s]?\d{4}Date (YYYY-MM-DD)
Matches dates in YYYY-MM-DD format
\d{4}-\d{2}-\d{2}IPv4 Address
Matches IPv4 addresses
\b(?:(?: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]?)\bHex Color
Matches hex color codes
#[a-fA-F0-9]{6}|#[a-fA-F0-9]{3}Features
• Real-time pattern validation
• Match highlighting
• Capture group details
• Named group support
• Common pattern library
• Flag support (g, i, m, s, u, y)
• Match position tracking
• Copy matches functionality
• Sample text loading