Regex Tester
Test and debug regular expressions in real-time.
Regex Legend
.Any character except newline
\wAny word character (alphanumeric & underscore)
\dAny digit (0-9)
\sAny whitespace character (spaces, tabs, newlines)
\WAny non-word character
\DAny non-digit character
\SAny non-whitespace character
[abc]Any character in the set (a, b, or c)
[^abc]Any character not in the set
[a-z]Any character in the range a to z
^Start of the string
$End of the string
*Zero or more of the preceding character
+One or more of the preceding character
?Zero or one of the preceding character
{n}Exactly n of the preceding character
{n,}n or more of the preceding character
{n,m}Between n and m of the preceding character
(...)Group
|Or