Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Regex Bug?

by I0 (Priest)
on May 26, 2002 at 15:20 UTC ( #169399=note: print w/replies, xml ) Need Help??


in reply to Regex Bug?

.*? is a minimal match, try $url =~ s/(.*?)\?(.*)/$1/gs; or just  $url =~ s/\?.*//gs;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://169399]
help
Chatterbox?
[Discipulus]: thanks! use List::Util 1.29 qw(pairmap ... just works!
Discipulus is preparing another of his CUFP..

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2017-05-25 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?