fix #16: only first occurrence of a match group parameter is replaced
Merge pull request #24 from tolot27/5bec27b43ccdc94537575f26dd93d5e49b14e5d1

fixes #16 (only first occurrence of a match group parameter is replaced)