in reply to Regex question
$s="http://blah/foo/stuff/more.txt"; print +(split('/',$s))[-2]; # stuff [download]