Help for this page

Select Code to Download


  1. or download this
    # Match any /\d./ that is *not* preceded by an /a/
    
    ...
            { push @results, $+{target} // $2 }
        is_deeply \@results, ["2 ","4x","3a"];
    }
    
  2. or download this
    my $re5 = qr{
        (?<lookback>
    ...
    }msx;
    my $re5_short = qr
        /((?<! a |(?!(?-1)).)) (\d.) /sx;