add setRegex method as described in the docs

#426 Add a public UriTemplate::setRegex() method

@phpnw13 hackathon thought I'd pick off an easy issue after a few drinks. There is of course some performance trade off in having the regex setable as can no longer use strpos to discount obvious bad matches but don't think this will be too great and there is always option of pecl extension for high performance applications.