Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "?" $request_uri



On Tue, Nov 20, 2007 at 04:18:57PM +0300, Andrey Ignatov wrote:
> re all
> 
>      :
> 
> -------------------------------------
> if ($request_uri ~ "^/v/?video=([0-9]+)$") {
>       set $clip_id    $1;
>       rewrite ^.*$    /video.phtml?clip_id=$clip_id last;
> }
> -------------------------------------
> 
>  :
pcretest'   ;)

$ pcretest
PCRE version 7.0 18-Dec-2006

  re> #^/v/?video=([0-9]+)$#
data> /v/?video=28
No match
data>
  re> #^\/v\/\?video=([0-9]+)$#
data> /v/?video=28
 0: /v/?video=28
 1: 28
data>
 
> 2007/11/20 12:43:14 [debug] 30732#0: *13 http script var
> 2007/11/20 12:43:14 [debug] 30732#0: *13 http script var: "/v/?video=28"
> 2007/11/20 12:43:14 [debug] 30732#0: *13 http script regex: 
> "^/v/?video=([0-9]+)$"
> 2007/11/20 12:43:14 [debug] 30732#0: *13 http script if
> 2007/11/20 12:43:14 [debug] 30732#0: *13 http script if: false
> 
> .. regexp  .
>       ?

regexp 

-- 
Dmitriy Yermakov, CCS SUT
dyer@xxxxxx



 




Copyright © Lexa Software, 1996-2009.