build
ohmytoolz
← Back to Tools
Regex Tester
Test and debug regular expressions with real-time matching
Regular Expression Pattern:
Test Text:
Test Pattern
Clear All
Common Patterns:
Email
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
URL
https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)
Phone (US)
\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})
IPv4
^(?:(?: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]?)$
Date (YYYY-MM-DD)
^[0-9]{4}-[0-9]{2}-[0-9]{2}$
Hex Color
^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$