Test regular expressions against text using Python re, PCRE, or ECMAScript (JavaScript) engines — with live match highlighting and named-group capture.
re
Paste sample text below, then select the part(s) you want to match and click “Add selection”. Repeat for as many examples as you want, then click Generate.
Click building blocks to add them in order. Edit literal text inline.
Type what you're looking for in plain English. We'll suggest matching patterns.
i
m
s
x
u
g
$1 $2
\1
\g<name>