in reply to regex a url

You can do this without a regex quite easily. How about this:
$uri = 'http://www.merchandisemarket.net/shop/s_images/aaa_small.gif'; $i = rindex($uri, '/') + 1; # Starting at the chara +cter one after the last slash, $filename = substr($uri, $i, length($uri)-$i); # get a substring with +the rest of the string

kelan


Yak it up with Fullscreen ChatterBox