On Sat, Feb 23, 2013 at 02:05:56AM +0400, Valentin V. Bartenev wrote:
> On Saturday 23 February 2013 00:11:26 Francis Daly wrote:

> >                location ~ ^(?<script_name>.+\.php)(?<path_info>/.*|$) {

>    location ~ ^(?<script_name>.+\.php)(?<path_info>/.*)?$ {
> 
> looks better.

Agreed.

And it means I don't have to think about whether AB|C groups as (AB)|(C)
or (A)(B|C) in this regex implementation :-)

> % pcretest -b -d -m -s+ 

Using smaller Memory allocation numbers is an extra bonus.

Cheers,

        f
-- 
Francis Daly        [email protected]

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to