Help for this page

Select Code to Download


  1. or download this
    $m = ' more gibberish"h" \n URL="http://[10.0.0.3]?id=80943lkjh875kjrv
    +f09u548gfpi"\n gibber\n';
    
    ...
    if ($m =~ $u) {
        print "<$1><$2>\n";
    }else{ print "no match u\n";}
    
  2. or download this
    [tmp]> perl testResp2.pl 
    <><>
    [tmp]>
    
  3. or download this
    $u= qr/.*(?=U)(?:URL="([^"]*)")?/s # moves to just before 'U'
    
  4. or download this
    $m = ' more gib U berish"h" \n URL="http://[10.0.0.3]?id=80943lkjh875k
    +jrvf09u548gfpi"\n gibber\n';
    
    ...
    if ($m =~ $u) {
        print "<$1>\n";
    }else{ print "no match u\n";}
    
  5. or download this
    $p= qr/RESPONSE\sid="([^"]+?)"
           .*                    #random XML
    ...
           .*                    #random XML
           (?:.*(?=U)(?:URL="([^"]+?)")?)*
          /sx;