Match placeholders in the replacement string with matched subgroups.
Merge pull request #19 from tcard/master

Match placeholders in the replacement string with matched subgroups.