in reply to Replacing multiple matches

I've got a better solution. html::template (or hell, text::template or template)