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 boundarya*0 or morea+1 or morea?0 or 1a{n}exactly na{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