in reply to regex a url

Sure! Here it is in one line:

my ($filename) = "http://www.merchandisemarket.net/shop/s_images/aaa_small.gif" =~ m{http://www.merchandisemarket.net/shop/s_images/(aaa_small.gif)};

Hey! It does do what he was asking for!

Hope this helps!

:-)