Match placeholders in the replacement string with matched subgroups.

`goreplace '(Happy) (Christmas|Xmas)' -r '$1 ☃☃ $2 ☃☃'`

So `Happy Christmas` turns into `Happy ☃☃ Christmas ☃☃`.

(There's a bunch of changes made by `go fmt`, I hope you don't care.)