version 1.1.1.4, 2013/07/22 08:25:57
|
version 1.1.1.5, 2014/06/15 19:46:05
|
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 2149 No match
|
Line 2151 No match
|
abc\100\60 |
abc\100\60 |
0: abc@0 |
0: abc@0 |
1: abc |
1: abc |
|
|
|
/^A\8B\9C$/ |
|
A8B9C |
|
0: A8B9C |
|
*** Failers |
|
No match |
|
A\08B\09C |
|
No match |
|
|
|
/^(A)(B)(C)(D)(E)(F)(G)(H)(I)\8\9$/ |
|
ABCDEFGHIHI |
|
0: ABCDEFGHIHI |
|
1: A |
|
2: B |
|
3: C |
|
4: D |
|
5: E |
|
6: F |
|
7: G |
|
8: H |
|
9: I |
|
|
/abc\81/ | /^[A\8B\9C]+$/ |
abc\081 | A8B9C |
0: abc\x0081 | 0: A8B9C |
abc\0\x38\x31 | *** Failers |
0: abc\x0081 | No match |
| A8B9C\x00 |
| No match |
|
|
/abc\91/ |
|
abc\091 |
|
0: abc\x0091 |
|
abc\0\x39\x31 |
|
0: abc\x0091 |
|
|
|
/(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 |
0: abcdefghijkllS |
0: abcdefghijkllS |
Line 5972 No match
|
Line 5991 No match
|
0: |
0: |
0: |
0: |
|
|
/^[a-\d]/ |
|
abcde |
|
0: a |
|
-things |
|
0: - |
|
0digit |
|
0: 0 |
|
*** Failers |
|
No match |
|
bcdef |
|
No match |
|
|
|
/^[\d-a]/ |
/^[\d-a]/ |
abcde |
abcde |
0: a |
0: a |
Line 6006 No match
|
Line 6013 No match
|
|
|
/[\s]+/ |
/[\s]+/ |
> \x09\x0a\x0c\x0d\x0b< |
> \x09\x0a\x0c\x0d\x0b< |
0: \x09\x0a\x0c\x0d | 0: \x09\x0a\x0c\x0d\x0b |
|
|
/\s+/ |
/\s+/ |
> \x09\x0a\x0c\x0d\x0b< |
> \x09\x0a\x0c\x0d\x0b< |
0: \x09\x0a\x0c\x0d | 0: \x09\x0a\x0c\x0d\x0b |
|
|
/ab/x |
/ab/x |
ab |
ab |
No match | 0: ab |
|
|
/(?!\A)x/m |
/(?!\A)x/m |
a\nxb\n |
a\nxb\n |
Line 6904 No match
|
Line 6911 No match
|
bc |
bc |
0: b |
0: b |
|
|
/^(?=(a)){0}b(?1)/ |
|
backgammon |
|
0: ba |
|
|
|
/^(?=(?1))?[az]([abc])d/ |
/^(?=(?1))?[az]([abc])d/ |
abd |
abd |
0: abd |
0: abd |
Line 9199 No match
|
Line 9202 No match
|
0: aaaa |
0: aaaa |
aaa |
aaa |
No match |
No match |
|
|
|
/(?(?=ab)ab)/+ |
|
ca |
|
0: |
|
0+ ca |
|
cd |
|
0: |
|
0+ cd |
|
|
|
/(?:(?<n>foo)|(?<n>bar))\k<n>/J |
|
foofoo |
|
0: foofoo |
|
1: foo |
|
barbar |
|
0: barbar |
|
1: <unset> |
|
2: bar |
|
|
|
/(?<n>A)(?:(?<n>foo)|(?<n>bar))\k<n>/J |
|
AfooA |
|
0: AfooA |
|
1: A |
|
2: foo |
|
AbarA |
|
0: AbarA |
|
1: A |
|
2: <unset> |
|
3: bar |
|
** Failers |
|
No match |
|
Afoofoo |
|
No match |
|
Abarbar |
|
No match |
|
|
|
/^(\d+)\s+IN\s+SOA\s+(\S+)\s+(\S+)\s*\(\s*$/ |
|
1 IN SOA non-sp1 non-sp2( |
|
0: 1 IN SOA non-sp1 non-sp2( |
|
1: 1 |
|
2: non-sp1 |
|
3: non-sp2 |
|
|
|
/^ (?:(?<A>A)|(?'B'B)(?<A>A)) (?('A')x) (?(<B>)y)$/xJ |
|
Ax |
|
0: Ax |
|
1: A |
|
BAxy |
|
0: BAxy |
|
1: <unset> |
|
2: B |
|
3: A |
|
|
|
/^A\xZ/ |
|
A\0Z |
|
0: A\x00Z |
|
|
|
/^A\o{123}B/ |
|
A\123B |
|
0: ASB |
|
|
|
/ ^ a + + b $ /x |
|
aaaab |
|
0: aaaab |
|
|
|
/ ^ a + #comment |
|
+ b $ /x |
|
aaaab |
|
0: aaaab |
|
|
|
/ ^ a + #comment |
|
#comment |
|
+ b $ /x |
|
aaaab |
|
0: aaaab |
|
|
|
/ ^ (?> a + ) b $ /x |
|
aaaab |
|
0: aaaab |
|
|
|
/ ^ ( a + ) + + \w $ /x |
|
aaaab |
|
0: aaaab |
|
1: aaaa |
|
|
|
/(?:a\Kb)*+/+ |
|
ababc |
|
0: b |
|
0+ c |
|
|
|
/(?>a\Kb)*/+ |
|
ababc |
|
0: b |
|
0+ c |
|
|
|
/(?:a\Kb)*/+ |
|
ababc |
|
0: b |
|
0+ c |
|
|
|
/(a\Kb)*+/+ |
|
ababc |
|
0: b |
|
0+ c |
|
1: ab |
|
|
|
/(a\Kb)*/+ |
|
ababc |
|
0: b |
|
0+ c |
|
1: ab |
|
|
/-- End of testinput1 --/ |
/-- End of testinput1 --/ |