Regex Tester

Test regular expressions with live matching and capture groups.

/ /
Quick Reference
. Any character
\d Digit [0-9]
\D Non-digit
\w Word char [a-zA-Z0-9_]
\W Non-word char
\s Whitespace
\S Non-whitespace
\b Word boundary
^ Start of string
$ End of string
* 0 or more
+ 1 or more
? 0 or 1
{n} Exactly n
{n,m} n to m
(...) Capture group
(?:...) Non-capture group
(?<n>...) Named group
(?=...) Positive lookahead
(?!...) Negative lookahead
[abc] Character class
[^abc] Negated class
a|b Alternation
\1 Back reference