Quote:
Originally Posted by Comfy.n
I can't see what the problem was, but I'm glad it's fixed, lol. 
|
It used a regular expression based on the template. In OP's case the template contains a ? which is a special character in a regexp. So the fix is to escape all special characters in the template before converting it into a regex.