Welcome! Log In Create A New Profile

Advanced

Re: PCRE named captures sill counted in numerical variables list

B.R.
April 03, 2014 09:44AM
​Thanks Maxim,

I just understood my mistake: I was confusing (once again, I think) named
captures and subpatterns...

What I wanted to use was the OR logic capability of captures while actually
not capturing them...
The starting question mark of both syntax confused me...

If anyone is intereted in it, the intended (and working) syntax is:
location ~* "^/([[:alpha:]]{1,8}(?:-[[:alpha:]]{1,8})?)(/.*[^/])?/?$" {
try_files $uri $uri/ $2/?lang=$1&$args;
}

Working on multi-language URIs on webserver-side... ;o)
---
*B. R.*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

PCRE named captures sill counted in numerical variables list

B.R. April 03, 2014 09:10AM

Re: PCRE named captures sill counted in numerical variables list

Maxim Dounin April 03, 2014 09:22AM

Re: PCRE named captures sill counted in numerical variables list

B.R. April 03, 2014 09:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 182
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready