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