wkit

Regex Tester

Regular Expression Tester
Test and debug regular expressions with real-time matching and visualization
Enter a pattern to start testing
Quick Reference

Character Classes

. - Any character
\d - Digit (0-9)
\w - Word character
\s - Whitespace
[abc] - Character set
[^abc] - Negated set

Quantifiers

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

Anchors & Groups

^ - Start of string
$ - End of string
\b - Word boundary
(abc) - Capture group
(?:abc) - Non-capture
a|b - Alternation