in reply to A question on Regex
if($mystring =~ m!([^/]+$)!){ #note the $ character added [download]