in reply to Get the filename from the end of a URL

This might work:
$url = 'http://www.fubar.com/fileXXX.txt'; $url =~ m{^[\w\/\:\.]+\/([\w\.]+)$}; $file = $1;