857 |
a |
a |
858 |
No match |
No match |
859 |
|
|
860 |
/This one is here because I think Perl 5.005_02 gets the setting of $1 wrong/I |
/This one is here because Perl behaves differently; see also the following/I |
861 |
Capturing subpattern count = 0 |
Capturing subpattern count = 0 |
862 |
No options |
No options |
863 |
First char = 'T' |
First char = 'T' |
869 |
Options: anchored |
Options: anchored |
870 |
No first char |
No first char |
871 |
No need char |
No need char |
872 |
|
aaaa |
873 |
|
No match |
874 |
aaaaaa |
aaaaaa |
875 |
0: aaaaaa |
No match |
876 |
1: aa |
|
877 |
|
/Perl does not fail these two for the final subjects. Neither did PCRE until/ |
878 |
|
/release 8.01. The problem is in backtracking into a subpattern that contains/ |
879 |
|
No match |
880 |
|
/a recursive reference to itself. PCRE has now made these into atomic patterns./ |
881 |
|
No match |
882 |
|
|
883 |
|
/^(xa|=?\1a){2}$/ |
884 |
|
xa=xaa |
885 |
|
0: xa=xaa |
886 |
|
1: =xaa |
887 |
|
** Failers |
888 |
|
No match |
889 |
|
xa=xaaa |
890 |
|
No match |
891 |
|
|
892 |
|
/^(xa|=?\1a)+$/ |
893 |
|
xa=xaa |
894 |
|
0: xa=xaa |
895 |
|
1: =xaa |
896 |
|
** Failers |
897 |
|
No match |
898 |
|
xa=xaaa |
899 |
|
No match |
900 |
|
|
901 |
/These are syntax tests from Perl 5.005/I |
/These are syntax tests from Perl 5.005/I |
902 |
Capturing subpattern count = 0 |
Capturing subpattern count = 0 |
10560 |
End |
End |
10561 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
10562 |
|
|
10563 |
|
/^(ab(c\1)d|x){2}$/BZ |
10564 |
|
------------------------------------------------------------------ |
10565 |
|
Bra |
10566 |
|
^ |
10567 |
|
Once |
10568 |
|
CBra 1 |
10569 |
|
ab |
10570 |
|
CBra 2 |
10571 |
|
c |
10572 |
|
\1 |
10573 |
|
Ket |
10574 |
|
d |
10575 |
|
Alt |
10576 |
|
x |
10577 |
|
Ket |
10578 |
|
Ket |
10579 |
|
Once |
10580 |
|
CBra 1 |
10581 |
|
ab |
10582 |
|
CBra 2 |
10583 |
|
c |
10584 |
|
\1 |
10585 |
|
Ket |
10586 |
|
d |
10587 |
|
Alt |
10588 |
|
x |
10589 |
|
Ket |
10590 |
|
Ket |
10591 |
|
$ |
10592 |
|
Ket |
10593 |
|
End |
10594 |
|
------------------------------------------------------------------ |
10595 |
|
xabcxd |
10596 |
|
0: xabcxd |
10597 |
|
1: abcxd |
10598 |
|
2: cx |
10599 |
|
|
10600 |
/-- End of testinput2 --/ |
/-- End of testinput2 --/ |