Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Regex Bug?

by graff (Chancellor)
on May 26, 2002 at 05:58 UTC ( #169338=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -v
    This is perl, v5.6.1 built for i586-linux
    ...
     print $u,$/;
     $u=~s/(.*?)\?(.*?)/$1/gs;
     print $u,$/;'
    
  2. or download this
    http://www.domain.com/hi.html?a=b&c=d
    http://www.domain.com/hi.htmla=b&c=d
    
  3. or download this
    $ perl -e '$u="http://www.domain.com/hi.html?a=b&c=d";
     print $u,$/;
    ...
    
    http://www.domain.com/hi.html?a=b&c=d
    http://www.domain.com/hi.html
    
  4. or download this
    $ perl -e '$u="http://www.domain.com/hi.html?a=b&c=d";
     print $u,$/;
    ...
    
    http://www.domain.com/hi.html?a=b&c=d
    http://www.domain.com/hi.html :: a=b&c=d
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://169338]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2022-12-04 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?