Back

Regex Tester

/ /
0 Matches found Invalid Regex

Cheat Sheet

. Any character
\w Word character
\d Digit
\s Whitespace
[abc] Any of a, b, or c
[^abc] Not a, b, or c
[a-z] Char between a-z

Quantifiers

* 0 or more
+ 1 or more
? 0 or 1
{3} Exactly 3

Anchors

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