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