Regex for URL substitutions ?

Patrick
07/19/2006 06:36 pm
I wonder if it would be possible to use regex search and replace type notation for URL substitutions or perhaps have a few more options for URL substitutions.

An example would be a site that has thumnails in the url:

www.foobar.com/Foobarpic.jpg

And the actual picture is in the URL:

www.foobar.com/pictures/F/Foobarpic.jpg
(note the path is dependant on the first letter of the pic name).

I don't see anyway I can do this with the existing URL substitutions with 3 parameters.


Oleg Chernavin
07/20/2006 05:03 am
This may not help, but if there is another letter right after the F, then the following may help:

URL:
http://www.foobar.com/Foobarpic.jpg
Replace:
.com/**o*
With:
.com/**/**o*

Best regards,
Oleg Chernavin
MP Staff
Patrick
07/20/2006 02:38 pm
> This may not help, but if there is another letter right after the F, then the following may help:
>
> URL:
> http://www.foobar.com/Foobarpic.jpg
> Replace:
> .com/**o*
> With:
> .com/**/**o*

The problem is that the letter after f varies too - so I cannot see anyway to do it with the current url substiitution parameters.
Oleg Chernavin
07/21/2006 05:01 am
Then you can add several rules:

URL:
http://www.foobar.com/F*.jpg
Replace:
.com/F*
With:
.com/F/F*
URL:
http://www.foobar.com/A*.jpg
Replace:
.com/A*
With:
.com/A/A*

and so on.

Oleg.