Change template regular expression

Make it more simple