.* Regex Tester

0 matches
//g
Test text
Common patternsClick to load
Cheat sheet
. any character
\d \D digit / not digit
\w \W word char / not
\s \S space / not
[abc] any of a, b, c
[^abc] none of them
[a-z] range
^ $ start / end
\b word boundary
a* a+ a? 0+, 1+, 0 or 1
a{3} a{2,5} exact / range
a*? lazy (as few as possible)
(abc) capture group
(?:abc) group, no capture
(?<name>x) named group
a|b a or b
(?=x) followed by x
(?!x) not followed by x
(?<=x) preceded by x
\1 back-reference