Regex Tester
Test and debug regular expressions with live matching, explanations, and common patterns
Regular Expression
//g
Test String
0 matches found
The quick brown fox jumps over the lazy dog.
Email: test@example.com
Phone: (555) 123-4567
Test Cases
Add test cases to validate your regex against multiple inputs
Quick Reference
.Matches any single character except newline
*Matches 0 or more of the preceding element
+Matches 1 or more of the preceding element
?Makes the preceding element optional (0 or 1)
^Matches the start of a string (or line in multiline mode)
$Matches the end of a string (or line in multiline mode)
\dMatches any digit (0-9)
\DMatches any non-digit character
\wMatches word characters (letters, digits, underscore)
\WMatches non-word characters
\sMatches whitespace (space, tab, newline)
\SMatches non-whitespace characters
\bMatches a word boundary
\BMatches a non-word boundary
|Alternation - matches either pattern
[]Character class - matches any character inside