Welcome! Log In Create A New Profile

Advanced

Re: Regex positional capture in map

Francis Daly
November 03, 2014 06:06PM
On Mon, Nov 03, 2014 at 03:03:22PM +0100, B.R. wrote:

Hi there,

I think this is a documentation bug.

> map's documentation
> <http://nginx.org/en/docs/http/ngx_http_map_module.html#map> states:
> A regular expression can contain named and positional captures that can
> later be used in other directives along with the resulting variable.

Strictly, those words are true -- you *can* use the named or positional
captures in other directives. It does not say that you can use them in
this same directive. (Or at least, it is possible to read it that way,
if you really wanted to.)

But practically, it should state that the resulting value can be a string,
or can be a variable or a named capture, but cannot be a positional
capture. (Or whatever the actual restrictions are.)

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Regex positional capture in map

B.R. November 03, 2014 09:06AM

Re: Regex positional capture in map

B.R. November 03, 2014 09:20AM

Re: Regex positional capture in map

Igor Sysoev November 03, 2014 09:24AM

Re: Regex positional capture in map

B.R. November 03, 2014 05:04PM

Re: Regex positional capture in map

Maxim Dounin November 03, 2014 07:24PM

Re: Regex positional capture in map

B.R. November 04, 2014 02:48AM

Re: Regex positional capture in map

Francis Daly November 03, 2014 06:06PM



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