multiple named captures in map regex
Cole Tierney
cole.putnamhill at comcast.net
Wed Mar 30 13:05:37 UTC 2016
Thank you, Francis!
That’s great.
Cole
> On Mon, Mar 28, 2016 at 11:30:32PM -0400, Cole Tierney wrote:
>
> Hi there,
>
> > Is it possible to have more than one named capture in a map regex?
>
> In a map regex, yes.
>
> In a "value" part of a map, no.
>
> http://nginx.org/r/map <http://nginx.org/r/map> says
>
> The resulting value can be a string or another variable
>
> > When I try the following in a map:
> > ~^/(?<a>.)(?<b>.) $a$b;
>
> You can use $a and $b outside the map; but where you have "$a$b", you
> must instead have exactly one string or one variable.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160330/7e01591f/attachment.html>
More information about the nginx
mailing list