Create a regex pattern based on the printf formatting of 'name'