| 344 |
*** Failers |
*** Failers |
| 345 |
a |
a |
| 346 |
|
|
| 347 |
/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 |
| 348 |
|
|
| 349 |
/^(a\1?){4}$/I |
/^(a\1?){4}$/I |
| 350 |
|
aaaa |
| 351 |
aaaaaa |
aaaaaa |
| 352 |
|
|
| 353 |
|
/Perl does not fail these two for the final subjects. Neither did PCRE until/ |
| 354 |
|
/release 8.01. The problem is in backtracking into a subpattern that contains/ |
| 355 |
|
/a recursive reference to itself. PCRE has now made these into atomic patterns./ |
| 356 |
|
|
| 357 |
|
/^(xa|=?\1a){2}$/ |
| 358 |
|
xa=xaa |
| 359 |
|
** Failers |
| 360 |
|
xa=xaaa |
| 361 |
|
|
| 362 |
|
/^(xa|=?\1a)+$/ |
| 363 |
|
xa=xaa |
| 364 |
|
** Failers |
| 365 |
|
xa=xaaa |
| 366 |
|
|
| 367 |
/These are syntax tests from Perl 5.005/I |
/These are syntax tests from Perl 5.005/I |
| 368 |
|
|
| 3190 |
/()i(?(1)a)/SI |
/()i(?(1)a)/SI |
| 3191 |
ia |
ia |
| 3192 |
|
|
| 3193 |
|
/(?i)a(?-i)b|c/BZ |
| 3194 |
|
XabX |
| 3195 |
|
XAbX |
| 3196 |
|
CcC |
| 3197 |
|
** Failers |
| 3198 |
|
XABX |
| 3199 |
|
|
| 3200 |
|
/(?i)a(?s)b|c/BZ |
| 3201 |
|
|
| 3202 |
|
/(?i)a(?s-i)b|c/BZ |
| 3203 |
|
|
| 3204 |
|
/^(ab(c\1)d|x){2}$/BZ |
| 3205 |
|
xabcxd |
| 3206 |
|
|
| 3207 |
/-- End of testinput2 --/ |
/-- End of testinput2 --/ |