$path =~ s{(.*/).*/}{$1}; [download]
In reply to Re: Regular Expression Help by ikegami in thread Regular Expression Help by Anonymous Monk