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