in reply to
Why is this regex greedy?
I'd suggest you use
m{.*/(.*)}
to get whatever is after the last '/' (assuming there are no newlines in your data). Or perhaps a module like
File::Basename
_____________________________________________________
Jeff
japhy
Pinyan,
P.L., P.M., P.O.D, X.S.
:
Perl
,
regex
, and
perl
hacker
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
Comment on
Re: Why is this regex greedy?
Download
Code
In Section
Seekers of Perl Wisdom