🌙
← Back
Regex Tester
Test JavaScript regular expressions with live highlighting
Pattern
/
/
g · global
i · ignore case
m · multiline
s · dotall
u · unicode
y · sticky
Test string
0
match(es)
Matches
No matches yet.
Quick reference
Anchors
^
start of line
$
end of line
\b
word boundary
Character classes
\d
digit
\w
word char
\s
whitespace
.
any char
[abc]
any of a, b, c
[^a]
not a
Quantifiers
*
0 or more
+
1 or more
?
0 or 1
{n,m}
between n and m
*?
lazy
Groups
(x)
capture
(?:x)
non-capturing
(?<n>x)
named
x|y
or
(?=x)
lookahead
(?!x)
negative lookahead