($basename) = $a =~ m#([^/]+)$#; [download]
In reply to Re^2: strip substring from long string by Roy Johnson in thread strip substring from long string by Anonymous Monk