Welcome! Log In Create A New Profile

Advanced

Re: Nginx getting last variables on exploded uri

Jonathan Matthews
March 15, 2014 01:50PM
On 15 Mar 2014 17:30, "gokhanege" <nginx-forum@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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx getting last variables on exploded uri

gokhanege March 15, 2014 01:30PM

Re: Nginx getting last variables on exploded uri

Igor Sysoev March 15, 2014 01:44PM

Re: Nginx getting last variables on exploded uri

gokhanege March 15, 2014 02:11PM

Re: Nginx getting last variables on exploded uri

Jonathan Matthews March 15, 2014 01:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 122
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 254 on July 05, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready