--- code/trunk/testdata/testinput2 2010/01/06 10:26:55 487 +++ code/trunk/testdata/testinput2 2010/01/11 15:29:42 488 @@ -344,10 +344,25 @@ *** Failers a -/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 /^(a\1?){4}$/I + aaaa aaaaaa + +/Perl does not fail these two for the final subjects. Neither did PCRE until/ +/release 8.01. The problem is in backtracking into a subpattern that contains/ +/a recursive reference to itself. PCRE has now made these into atomic patterns./ + +/^(xa|=?\1a){2}$/ + xa=xaa + ** Failers + xa=xaaa + +/^(xa|=?\1a)+$/ + xa=xaa + ** Failers + xa=xaaa /These are syntax tests from Perl 5.005/I @@ -3186,4 +3201,7 @@ /(?i)a(?s-i)b|c/BZ +/^(ab(c\1)d|x){2}$/BZ + xabcxd + /-- End of testinput2 --/