AW: Map using regular expresion limited to {2} chars

Frank Ruske F.Ruske at flyeralarm.de
Sat Sep 15 14:43:23 UTC 2012


Thank you. Did not saw that in the docs. My fault

Regards Frank

________________________________________
Von: nginx-bounces at nginx.org [nginx-bounces at nginx.org] im Auftrag von Valentin V. Bartenev [ne at vbart.ru]
Gesendet: Freitag, 14. September 2012 12:58
An: nginx at nginx.org
Betreff: Re: Map using regular expresion limited to {2} chars

On Friday 14 September 2012 13:21:06 Frank Ruske wrote:
[...]
> But when i try it this way:
>
> map $uri $myclient {
>     default            noclient;
>     ~/(?<suffix>[a-z]{2})/  $suffix;
> }
>
> i get the following error:
> nginx: [emerg] invalid number of the map parameters www.vm:17
>
[...]
>
> Any ideas? Thank you!
>

If a regular expression includes the characters “}” or “;”, the whole
expressions should be enclosed in single or double quotes.

 wbr, Valentin V. Bartenev

--
http://nginx.org/en/donation.html
http://nginx.com/support.html

_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list