version 1.1.1.4, 2013/07/22 08:25:57
|
version 1.1.1.5, 2014/06/15 19:46:06
|
Line 1
|
Line 1
|
/-- This set of tests is for features that are compatible with all versions of |
/-- This set of tests is for features that are compatible with all versions of |
Perl >= 5.10, in non-UTF-8 mode. It should run clean for both the 8-bit and | Perl >= 5.10, in non-UTF-8 mode. It should run clean for the 8-bit, 16-bit, |
16-bit PCRE libraries. --/ | and 32-bit PCRE libraries. --/ |
| |
| < forbid 89?=ABCDEFfGILMNPTUWXZ< |
|
|
/the quick brown fox/ |
/the quick brown fox/ |
the quick brown fox |
the quick brown fox |
Line 1483
|
Line 1485
|
abc\100\x30 |
abc\100\x30 |
abc\100\060 |
abc\100\060 |
abc\100\60 |
abc\100\60 |
|
|
|
/^A\8B\9C$/ |
|
A8B9C |
|
*** Failers |
|
A\08B\09C |
|
|
|
/^(A)(B)(C)(D)(E)(F)(G)(H)(I)\8\9$/ |
|
ABCDEFGHIHI |
|
|
/abc\81/ | /^[A\8B\9C]+$/ |
abc\081 | A8B9C |
abc\0\x38\x31 | *** Failers |
| A8B9C\x00 |
|
|
/abc\91/ |
|
abc\091 |
|
abc\0\x39\x31 |
|
|
|
/(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)\12\123/ |
/(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)\12\123/ |
abcdefghijkllS |
abcdefghijkllS |
|
|
Line 3654
|
Line 3661
|
/a*/g |
/a*/g |
abbab |
abbab |
|
|
/^[a-\d]/ |
|
abcde |
|
-things |
|
0digit |
|
*** Failers |
|
bcdef |
|
|
|
/^[\d-a]/ |
/^[\d-a]/ |
abcde |
abcde |
-things |
-things |
Line 4221
|
Line 4221
|
ab |
ab |
bc |
bc |
|
|
/^(?=(a)){0}b(?1)/ |
|
backgammon |
|
|
|
/^(?=(?1))?[az]([abc])d/ |
/^(?=(?1))?[az]([abc])d/ |
abd |
abd |
zcdxx |
zcdxx |
Line 5607 AbcdCBefgBhiBqz
|
Line 5604 AbcdCBefgBhiBqz
|
/^a*\w{4}/i |
/^a*\w{4}/i |
aaaa |
aaaa |
aaa |
aaa |
|
|
|
/(?(?=ab)ab)/+ |
|
ca |
|
cd |
|
|
|
/(?:(?<n>foo)|(?<n>bar))\k<n>/J |
|
foofoo |
|
barbar |
|
|
|
/(?<n>A)(?:(?<n>foo)|(?<n>bar))\k<n>/J |
|
AfooA |
|
AbarA |
|
** Failers |
|
Afoofoo |
|
Abarbar |
|
|
|
/^(\d+)\s+IN\s+SOA\s+(\S+)\s+(\S+)\s*\(\s*$/ |
|
1 IN SOA non-sp1 non-sp2( |
|
|
|
/^ (?:(?<A>A)|(?'B'B)(?<A>A)) (?('A')x) (?(<B>)y)$/xJ |
|
Ax |
|
BAxy |
|
|
|
/^A\xZ/ |
|
A\0Z |
|
|
|
/^A\o{123}B/ |
|
A\123B |
|
|
|
/ ^ a + + b $ /x |
|
aaaab |
|
|
|
/ ^ a + #comment |
|
+ b $ /x |
|
aaaab |
|
|
|
/ ^ a + #comment |
|
#comment |
|
+ b $ /x |
|
aaaab |
|
|
|
/ ^ (?> a + ) b $ /x |
|
aaaab |
|
|
|
/ ^ ( a + ) + + \w $ /x |
|
aaaab |
|
|
|
/(?:a\Kb)*+/+ |
|
ababc |
|
|
|
/(?>a\Kb)*/+ |
|
ababc |
|
|
|
/(?:a\Kb)*/+ |
|
ababc |
|
|
|
/(a\Kb)*+/+ |
|
ababc |
|
|
|
/(a\Kb)*/+ |
|
ababc |
|
|
/-- End of testinput1 --/ |
/-- End of testinput1 --/ |