Change template regular expression