| Nginx-ru mailing list archive (nginx-ru@sysoev.ru) [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
 Re: Странности с регэкспами в локейшне
 
 Hello.
2013/01/17 20:11:59 +0400 Михаил Монашёв <postmaster@xxxxxxxxxxxxx> => To 
Валентин Бартенев :
> Да, она есть. Видимо она и стирает $1;
Не порверял, но интересно, раболтает ли в nginx.conf named capture, которое
может с этим помочь:
  You can dispense with numbers altogether and create named capture groups.
  The notation is "(?<name>...)" to declare and "\g{name}" to reference. 
  You can refer to them by absolute number (using "$1" instead of "\g1", etc);
  or by name via the "%+" hash, using "$+{name}".
(perlre)
Thank you.
--
Peter Vereshagin <peter@xxxxxxxxxxxxxx> (http://vereshagin.org) pgp: 1754B9C1
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
 |