Regex Tester
Write a pattern and see matches highlighted as you type. Uses the JavaScript regex engine.
/
/g
Test string
Matches
0 matchesMatch details
Replace
Quick reference
\ddigit ·\wword character ·\swhitespace ·.any character*0 or more ·+1 or more ·?optional ·{2,5}between 2 and 5^start ·$end ·\bword boundary(…)capture group ·(?<name>…)named group ·(?:…)non-capturing(?=…)lookahead ·(?<=…)lookbehind
Replacement tokens
$1, $2… insert numbered groups. $<name> inserts a named group, $& the whole match.