Regex Tester

Test and debug regular expressions in real-time

Regular Expression

/ /
g

Test String

Highlighted Matches (0 matches)

Common Patterns

Quick Reference

Character Classes

\d - Digit (0-9)
\w - Word character
\s - Whitespace
. - Any character

Quantifiers

* - 0 or more
+ - 1 or more
? - 0 or 1
{n} - Exactly n
{n,m} - Between n and m

Anchors

^ - Start of string
$ - End of string
\b - Word boundary