Back to All Tools

Regex Tester

Test JavaScript regular expressions with live highlighted matches, capture groups, flag toggles, and a quick cheatsheet.

Runs entirely in your browser — nothing is uploaded
//gm
Reach jane@example.com or sam.smith@dev.io for support.
jane@example.com $1=jane$2=example.com
smith@dev.io $1=smith$2=dev.io
Reach or sam. for support.
\ddigit 0-9
\wword char [A-Za-z0-9_]
\swhitespace
.any char (except newline)
^ $start / end of string
\bword boundary
a*0 or more
a+1 or more
a?0 or 1
a{n}exactly n
a{n,m}n to m
(x|y)alternation
(?:…)non-capturing group
(?<name>…)named group
[abc]char class
[^abc]negated class
(?=…)look-ahead
(?!…)negative look-ahead