replace {placeholder}'s with regex

this way, a path like "/{template}/v1/{template}.{extension}" is handled correctly. 
without regex, just the first {template} is replaced.