Regex Tester

Enter a pattern, choose flags, test against text, view matches and capture groups, and preview replacements.

Notes: Use `$1`, `$2` etc. in replacement. If `g` flag is not set, only first match is replaced.