Regex Tester
Test and validate your regular expressions in real-time. Enter your regex pattern and test string to see the matches.
0 matches found
Common Regex Patterns
Email Address
/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/
URL
/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/
Phone Number
/^\+?[\d\s-]{10,}$/
Date (YYYY-MM-DD)
/^\d{4}-\d{2}-\d{2}$/
Tips
- Use
^
to match the start of a string - Use
$
to match the end of a string - Use
.
to match any character - Use
*
to match zero or more occurrences - Use
+
to match one or more occurrences - Use
?
to match zero or one occurrence - Use
\d
to match any digit - Use
\w
to match any word character