HttpRewriteModule and use more than 10 variables

Hi,

In a rewrite, is it possible to use more than 9 variables ?

How i can use $10, $11, … ?

rewrite
“^/img/([0-9a-zA-Z]{1})([0-9a-zA-Z]{7})([0-9a-zA-Z]{1})([0-9a-zA-Z]{7})/([0-9]{4})([0-9]{2})([0-9]{2})/([0-9a-fA-F]{8})([0-9a-fA-F]{4})([0-9a-fA-F]{4})([0-9a-fA-F]{4})([0-9a-fA-F]{12}).*$”
/$1/$2/$3/$4/$5/$6/$7/$8/$9/$10/$11/$12.image;

Thk

On Tuesday 31 January 2012 14:16:37 Yoann QUERET wrote:

Hi,

In a rewrite, is it possible to use more than 9 variables ?

Yes, it’s possible.

How i can use $10, $11, … ?

Use named captures instead.

wbr, Valentin V. Bartenev

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs