//
🔎
Enter a test string above to see matches
Enter a pattern and test string

📖 Quick Reference

Character Classes
.Any character except newline
\dDigit [0-9]
\wWord char [a-zA-Z0-9_]
\sWhitespace
[abc]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,m}Between n and m times
*?Lazy (fewest chars)
Anchors & Boundaries
^Start of string/line
$End of string/line
\bWord boundary
\BNon-word boundary
Groups
(abc)Capturing group
(?:abc)Non-capturing group
a|ba or b
(?=abc)Lookahead
(?!abc)Negative lookahead