Nginx getting last variables on exploded uri

Jonathan Matthews contact at jpluscplusm.com
Sat Mar 15 17:47:42 UTC 2014


On 15 Mar 2014 17:30, "gokhanege" <nginx-forum at nginx.us> wrote:
>
> Where is the problem? I cound not found it.

Your problem is that all of your .* matches are greedy, whereas you
(probably) want only the last to be greedy. Have a Google for how to do
that with regular expressions.

You also might want to replace /some/ of your "(.*)" with "([^-]*)" if they
should /never/ contain hyphens.

HTH,
J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140315/361bdee7/attachment.html>


More information about the nginx mailing list