This tool runs in your browser and needs JavaScript. Please enable it to use the tool.
Pattern
/
g
i
m
s
u
Test text
Matches
Capture groups
#
Match
Groups
Replace with
(optional; $1, $<name>, $&)
Copy