Help for this page

Select Code to Download


  1. or download this
    while ($str =~ /($re)/g) {
       print("$1\n");
    }
    
  2. or download this
    use re 'eval';
    
    ...
       (?{ print("$1\n"); })
       (?!)
    /x;
    
  3. or download this
    my $str = 'aabcdabcabce';
    my $re  = qr/a[^a]*/;
    
  4. or download this
    a
    abcd
    abc
    abce
    
  5. or download this
    a
    abcd
    ...
    abc
    ab
    a