Map using regular expresion limited to {2} chars

Valentin V. Bartenev ne at vbart.ru
Fri Sep 14 10:58:25 UTC 2012


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



More information about the nginx mailing list