Pattern
/
/
Test String
Match Highlighting
0 matchesEnter a pattern and test string above…
Character Classes
.Any character (except newline)
\dDigit [0-9]
\DNon-digit
\wWord char [a-zA-Z0-9_]
\WNon-word char
\sWhitespace
\SNon-whitespace
Quantifiers
*0 or more
+1 or more
?0 or 1 (optional)
{n}Exactly n
{n,}n or more
{n,m}Between n and m
Anchors & Boundaries
^Start of string/line
$End of string/line
\bWord boundary
\BNon-word boundary
Groups & Lookarounds
(abc)Capture group
(?:abc)Non-capture group
(?=abc)Positive lookahead
(?!abc)Negative lookahead
a|bAlternation (a or b)