Problems? Is your data what you think it is? | |
PerlMonks |
Re: Regex Bug?by I0 (Priest) |
on May 26, 2002 at 15:20 UTC ( [id://169399]=note: print w/replies, xml ) | Need Help?? |
.*? is a minimal match, try $url =~ s/(.*?)\?(.*)/$1/gs;
or just $url =~ s/\?.*//gs;
In Section
Seekers of Perl Wisdom
|
|