Okay, admittedly I am not the greatest with regexs but I should have been able to figure this out. In short I am using LWP to download images on a page and then I have Image::Magick resizing them. My problem comes when I have an image to download that is relative to the URL for instance:
The page I want to "spider" is at
http://www.domain.com/...s/that/whatever.html
The tags on that page look like this:
<img src="../image.gif">
Basically I need a regex to take
http://www.domain.com/...s/that/whatever.html
and turn it into
http://www.domain.com/1/two/this/
so the image can be grabbed. Like I said, I am terrible with regexes so this is probably something simple...
The page I want to "spider" is at
http://www.domain.com/...s/that/whatever.html
The tags on that page look like this:
<img src="../image.gif">
Basically I need a regex to take
http://www.domain.com/...s/that/whatever.html
and turn it into
http://www.domain.com/1/two/this/
so the image can be grabbed. Like I said, I am terrible with regexes so this is probably something simple...