Updated regular expression in the template