tools

Regex Tester

100% local v1.1.4

Build a JavaScript regular expression and see matches highlighted live, with capture groups and an optional replace preview.

Test string

0 matches

Matches

0 total

Matches will appear here.

Cheat sheet
\d \w \sdigit · word · whitespace
\D \W \Snegated classes
[abc] [^abc]set · negated set
[a-z]range
. *any · zero or more
+ ?one or more · optional
{n} {n,m}exact · range count
^ $start · end of input/line
\b \Bword boundary
(abc)capture group
(?:abc)non-capturing
(?<name>abc)named capture
a|balternation
(?=abc)lookahead
(?!abc)negative lookahead
(?<=abc)lookbehind