Help for this page

Select Code to Download


  1. or download this
    while ('abc' =~ /(.)/g) {
       print($1);
    }
    
  2. or download this
    while ('abc' =~ /(?=(.))/g) {
       print($1);
    }
    
  3. or download this
    $_ = 'abc';
    
    ...
    /xg) {
       print("Match\n");
    }
    
  4. or download this
    pos=0 len=0
    Match
    ...
    Match
    pos=3 len=1
    Match