Help for this page

Select Code to Download


  1. or download this
    my $re1 = qr{
        (?<target> x (?<digits> \d+ ) (?!\d) )
    ...
    my $re1_short = qr
        / (x(\d+)(?!\d)) (?=((?<=(?!( ab\2(?!\d) )).(?=(?-2)).
            |(?=(?-1))..)))/sx;
    
  2. or download this
    my $re2 = qr{
        (?<char> . )
    ...
    }msx;
    my $re2_short = qr
        /(.)(?=((?<=(?!\1).(?=(?-1)).|(?=\1)..)))/sx;
    
  3. or download this
    my $re3 = qr{
        (?= (?<lookback>
    ...
    }msx;
    my $re3_short = qr
        /(?=((?<=(?!( ab+c ))(?=(?-2)).|(?=(?-1)).))) (x\d+) /sx;
    
  4. or download this
    my $re4 = qr{
        (?= (?<lookback>
    ...
    }msx;
    my $re4_short = qr
        /(?=((?<= a |(?=(?-1)).))) (\d.) /sx;
    
  5. or download this
    #!/usr/bin/env perl
    use warnings;
    ...
    }
    
    done_testing;