Web Toolkit

Regex Tester

Test and debug regular expressions in real-time.

Regex Legend

.

Any character except newline

\w

Any word character (alphanumeric & underscore)

\d

Any digit (0-9)

\s

Any whitespace character (spaces, tabs, newlines)

\W

Any non-word character

\D

Any non-digit character

\S

Any 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