// regular expression
/ /
// test string
Ready — enter a regex pattern and test string
// matches 0 matches
No matches yet — enter a pattern above

// character classes

.Any character except newline
\wWord character [a-zA-Z0-9_]
\dDigit [0-9]
\sWhitespace character
\WNon-word character
\DNon-digit character
[abc]Character set a, b, or c
[^abc]Not a, b, or c

// quantifiers

*0 or more
+1 or more
?0 or 1 (optional)
{n}Exactly n times
{n,}n or more times
{n,m}Between n and m times
*?Lazy (non-greedy)

// anchors & groups

^Start of string/line
$End of string/line
\bWord boundary
(abc)Capture group
(?:abc)Non-capture group
a|bMatch a or b
(?=abc)Positive lookahead