A complete reference for JavaScript regular expression syntax. Click any token to try it in the regex tester.
.
\d
\D
\w
\W
\s
\S
[abc]
[^abc]
[a-z]
*
+
?
{n}
{n,}
{n,m}
*?
+?
??
^
$
\b
\B
(abc)
(?:abc)
(?<name>abc)
\1
\k<name>
(a|b)
(?=abc)
(?!abc)
(?<=abc)
(?<!abc)
\\
\n
\r
\t
\0
\xhh
\uhhhh
g
i
m
s
u
v
d
$1, $2...
$<name>
$&
$`
$'
$$