How to rewrite these
Glen Lumanau
glen at lumanau.web.id
Sat Feb 20 17:40:49 MSK 2010
The spaces fixed the problem :)
By the way, if i have only 1, 2, 3, 4, 5 digits of numbers, it's not
redirected
-----Original Message-----
From: Mauro Stettler [mailto:mauro.stettler at gmail.com]
Sent: 20 Februari 2010 21:36
To: nginx at nginx.org
Subject: Re: How to rewrite these
the spaces: "] {" -> "]{".
may i ask why you catch three times two numbers instead of one time six?
On Sat, Feb 20, 2010 at 22:06, Glen Lumanau <glen at lumanau.web.id> wrote:
> Thank's for your prompt reply..
>
> However i tried this
>
> rewrite "/news/([0-9] {2})([0-9] {2})([0-9] {2})/$"
> http://app.mydomain.com/redirect/application/$1$2$3;
>
> but it doesn't work. What I've missed?
>
>
> -----Original Message-----
> From: Edho P Arief [mailto:edhoprima at gmail.com]
> Sent: 20 Februari 2010 20:56
> To: nginx at nginx.org
> Subject: Re: How to rewrite these
>
> On Sat, Feb 20, 2010 at 8:45 PM, Glen Lumanau <glen at lumanau.web.id> wrote:
>> Is that posibble to detect if (.+) is numbers only?
>>
>
> yes.
>
> the method should be mentioned in any guide about regular expressions.
> Which includes this [1] and this [2].
>
> [1] http://www.regextester.com/pregsyntax.html
>
> [2] http://www.regular-expressions.info/reference.html
>
> --
> O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx at nginx.org
http://nginx.org/mailman/listinfo/nginx
More information about the nginx
mailing list