regex
ray
▌
x-ray vision for regular expressions
copy as ▾
JavaScript
/pattern/flags literal
Python
re.compile(r"…", re.I | re.M)
Go
regexp.MustCompile(`(?im)…`)
cheatsheet
/
/
g
i
m
s
u
y
test string
matches
0
replace
Type a pattern above — every match appears here with its numbered and named capture groups.
replace with
output
auto-demo · click or press any key to take over