Regex Tester

Test regular expressions

gGlobal (find all matches)
iCase insensitive
mMultiline (^ and $ match line breaks)

Matches: 0

Regex Hints

Character Classes

.Any char except newline
\wWord char (a-z, 0-9, _)
\dDigit (0–9)
\sWhitespace
\WNon-word char
\DNon-digit
\SNon-whitespace
[abc]Any of a, b, or c

Quantifiers

*Zero or more
+One or more
?Zero or one
{n}Exactly n times
{n,m}Between n and m

Anchors & Boundaries

^Start of string
$End of string
\bWord boundary
\BNon-word boundary

Groups & Alternation

(abc)Capture group
(?:abc)Non-capturing group
a|ba or b

Command Palette

Search for a command to run...