Test and debug regular expressions with live match highlighting. See every match, capture group, and index instantly as you type. Replace mode included.
$& full match
$1 group 1
$2 group 2
$` before match
$' after match
Click any pattern to load it into the editor above.
g
i
m
^ and $ match each lines
. also matches newlinesu
\d digit\D non-digit\w word char\W non-word\s whitespace\S non-space. any char^ start$ end\b word boundary* 0 or more+ 1 or more? 0 or 1{n,m} n to m[abc] char class(a|b) alternation(?:) non-capture(?=) lookahead