guzzle/guzzle — pull request #434 by natmchugh (2013-10-04 22:14:06+00:00)
Title: 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.