Regular expression tester

Online tool for testing regular expression.

Regular expressions
Flags
i - case-insensitive
m - multiline
g - all matches
s - . will include line breaks
Source text
Replace with (optional)
You can use replacement pattern $& for full match and replacement patterns $1, $2, ..., $n for capturing groups.
Result