Test regex patterns with capture groups ($1, $2) and a live replacement preview.
Use $1, $2... to reference capture groups and $$ for a literal dollar sign. Enable the g flag to replace all occurrences.