| 3 |
It also checks the non-Perl syntax the PCRE supports (Python, .NET, |
It also checks the non-Perl syntax the PCRE supports (Python, .NET, |
| 4 |
Oniguruma). Finally, there are some tests where PCRE and Perl differ, |
Oniguruma). Finally, there are some tests where PCRE and Perl differ, |
| 5 |
either because PCRE can't be compatible, or there is a possible Perl |
either because PCRE can't be compatible, or there is a possible Perl |
| 6 |
bug. --/ |
bug. |
| 7 |
|
|
| 8 |
|
NOTE: This is a non-UTF-8 set of tests. When UTF-8 is needed, use test |
| 9 |
|
5, and if Unicode Property Support is needed, use test 13. --/ |
| 10 |
|
|
| 11 |
/-- Originally, the Perl >= 5.10 things were in here too, but now I have |
/-- Originally, the Perl >= 5.10 things were in here too, but now I have |
| 12 |
separated many (most?) of them out into test 11. However, there may still |
separated many (most?) of them out into test 11. However, there may still |
| 12521 |
ax1z |
ax1z |
| 12522 |
0: ax1z |
0: ax1z |
| 12523 |
|
|
|
/^a\X41z/<JS> |
|
|
aX41z |
|
|
0: aX41z |
|
|
*** Failers |
|
|
No match |
|
|
aAz |
|
|
No match |
|
|
|
|
| 12524 |
/^a\u0041z/<JS> |
/^a\u0041z/<JS> |
| 12525 |
aAz |
aAz |
| 12526 |
0: aAz |
0: aAz |
| 12586 |
End |
End |
| 12587 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 12588 |
|
|
|
/(?<=ab\Cde)X/8 |
|
|
Failed: \C not allowed in lookbehind assertion at offset 10 |
|
|
|
|
| 12589 |
/a[\NB]c/ |
/a[\NB]c/ |
| 12590 |
Failed: \N is not supported in a class at offset 3 |
Failed: \N is not supported in a class at offset 3 |
| 12591 |
|
|
| 12592 |
/a[B-\Nc]/ |
/a[B-\Nc]/ |
| 12593 |
Failed: \N is not supported in a class at offset 5 |
Failed: \N is not supported in a class at offset 5 |
| 12594 |
|
|
| 12595 |
|
/(a)(?2){0,1999}?(b)/ |
| 12596 |
|
Failed: too many forward references at offset 15 |
| 12597 |
|
|
| 12598 |
|
/(a)(?(DEFINE)(b))(?2){0,1999}?(?2)/ |
| 12599 |
|
|
| 12600 |
/-- End of testinput2 --/ |
/-- End of testinput2 --/ |