Re: Regex Bug?
by
I0
on
May 26, 2002 at 15:20 UTC
http://www.perlmonks.org?node_id=169399
in reply to
Regex Bug?
.*?
is a minimal match, try
$url =~ s/(.*?)\?(.*)/$1/gs;
or just
$url =~ s/\?.*//gs;
Comment on
Re: Regex Bug?
Select
or
Download
Code
In Section
Seekers of Perl Wisdom