Re: [EMAIL PROTECTED] Looking for RewriteRule regex aid

2008-02-28 Thread wi
This was exactly what I needed. Thanks. I was in the vicinity, but the piece that I was missing was the initial (\d+). cheers Wayne On Thu, Feb 28, 2008 at 3:30 AM, Krist van Besien <[EMAIL PROTECTED]> wrote: > On Thu, Feb 28, 2008 at 7:23 AM, wi <[EMAIL PROTECTED]> wrote: > > > > Hi all > > >

Re: [EMAIL PROTECTED] Looking for RewriteRule regex aid

2008-02-28 Thread Krist van Besien
On Thu, Feb 28, 2008 at 7:23 AM, wi <[EMAIL PROTECTED]> wrote: > Hi all > > I have a need to create a RewriteRule that will take something like > > /clubhouse/1234567/mediafile.jpg > > and turn it into > > /clubhouse/1/2/3/4/5/6/7/mediafile.jpg > > It seems like a relatively simple thing, but

Re: [EMAIL PROTECTED] Looking for RewriteRule regex aid

2008-02-28 Thread J. Peng
for example you have sources url like this: /12318/a.jpg do you need: /1/2/3/18/a.jpg or: /12/3/1/8/a.jpg or: /1/2/3/1/8/a.jpg or: /12/3/18/a.jpg ?? number between 1 .. 18, it's almost impossible to write a regex to do that. On Thu, Feb 28, 2008 at 2:23 PM, wi <[EMAIL PROTECTED]> wrote: > Hi

Re: [EMAIL PROTECTED] Looking for RewriteRule regex aid

2008-02-28 Thread Sean Allen
As a rewrite rule that could get very hairy. If you are running a server where you use something like mod_perl or mod_python i would set up a handler and do in said language, be MUCH easier. On Feb 28, 2008, at 1:23 AM, wi wrote: Hi all I have a need to create a RewriteRule that will take

[EMAIL PROTECTED] Looking for RewriteRule regex aid

2008-02-27 Thread wi
Hi all I have a need to create a RewriteRule that will take something like /clubhouse/1234567/mediafile.jpg and turn it into /clubhouse/1/2/3/4/5/6/7/mediafile.jpg It seems like a relatively simple thing, but the number of digits in the source URI could be anything between 1 and 18, so the reg