Test and experiment with regular expressions in real-time
Find all matches
Case insensitive
^$ match line breaks
. matches newlines
Unicode matching
Match from lastIndex
Enter a regex pattern and test string to see results
Matches most common email address formats
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}
Matches HTTP and HTTPS URLs
https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)
Matches US phone numbers with optional parentheses and separators
\(?([0-9]{3})\)?[-\s]?([0-9]{3})[-\s]?([0-9]{4})