Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Regex Bug?

by graff (Chancellor)
on May 26, 2002 at 05:58 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-19 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found