/[pcre]/code/trunk/testdata/testoutput11
ViewVC logotype

Contents of /code/trunk/testdata/testoutput11

Parent Directory Parent Directory | Revision Log Revision Log


Revision 448 - (show annotations) (download)
Tue Sep 15 19:11:48 2009 UTC (5 years, 1 month ago) by ph10
File size: 6643 byte(s)
Re-organize tests to make is possible to test 5.10 features against Perl.

1 /\H\h\V\v/
2 X X\x0a
3 0: X X\x0a
4 X\x09X\x0b
5 0: X\x09X\x0b
6 ** Failers
7 No match
8 \xa0 X\x0a
9 No match
10
11 /\H*\h+\V?\v{3,4}/
12 \x09\x20\xa0X\x0a\x0b\x0c\x0d\x0a
13 0: \x09 \xa0X\x0a\x0b\x0c\x0d
14 \x09\x20\xa0\x0a\x0b\x0c\x0d\x0a
15 0: \x09 \xa0\x0a\x0b\x0c\x0d
16 \x09\x20\xa0\x0a\x0b\x0c
17 0: \x09 \xa0\x0a\x0b\x0c
18 ** Failers
19 No match
20 \x09\x20\xa0\x0a\x0b
21 No match
22
23 /\H{3,4}/
24 XY ABCDE
25 0: ABCD
26 XY PQR ST
27 0: PQR
28
29 /.\h{3,4}./
30 XY AB PQRS
31 0: B P
32
33 /\h*X\h?\H+Y\H?Z/
34 >XNNNYZ
35 0: XNNNYZ
36 > X NYQZ
37 0: X NYQZ
38 ** Failers
39 No match
40 >XYZ
41 No match
42 > X NY Z
43 No match
44
45 /\v*X\v?Y\v+Z\V*\x0a\V+\x0b\V{2,3}\x0c/
46 >XY\x0aZ\x0aA\x0bNN\x0c
47 0: XY\x0aZ\x0aA\x0bNN\x0c
48 >\x0a\x0dX\x0aY\x0a\x0bZZZ\x0aAAA\x0bNNN\x0c
49 0: \x0a\x0dX\x0aY\x0a\x0bZZZ\x0aAAA\x0bNNN\x0c
50
51 /(foo)\Kbar/
52 foobar
53 0: bar
54 1: foo
55
56 /(foo)(\Kbar|baz)/
57 foobar
58 0: bar
59 1: foo
60 2: bar
61 foobaz
62 0: foobaz
63 1: foo
64 2: baz
65
66 /(foo\Kbar)baz/
67 foobarbaz
68 0: barbaz
69 1: foobar
70
71 /abc\K|def\K/g+
72 Xabcdefghi
73 0:
74 0+ defghi
75 0:
76 0+ ghi
77
78 /ab\Kc|de\Kf/g+
79 Xabcdefghi
80 0: c
81 0+ defghi
82 0: f
83 0+ ghi
84
85 /(?=C)/g+
86 ABCDECBA
87 0:
88 0+ CDECBA
89 0:
90 0+ CBA
91
92 /^abc\K/+
93 abcdef
94 0:
95 0+ def
96 ** Failers
97 No match
98 defabcxyz
99 No match
100
101 /^(a(b))\1\g1\g{1}\g-1\g{-1}\g{-02}Z/
102 ababababbbabZXXXX
103 0: ababababbbabZ
104 1: ab
105 2: b
106
107 /(?<A>tom|bon)-\g{A}/
108 tom-tom
109 0: tom-tom
110 1: tom
111 bon-bon
112 0: bon-bon
113 1: bon
114
115 /(^(a|b\g{-1}))/
116 bacxxx
117 No match
118
119 /(?|(abc)|(xyz))\1/
120 abcabc
121 0: abcabc
122 1: abc
123 xyzxyz
124 0: xyzxyz
125 1: xyz
126 ** Failers
127 No match
128 abcxyz
129 No match
130 xyzabc
131 No match
132
133 /(?|(abc)|(xyz))(?1)/
134 abcabc
135 0: abcabc
136 1: abc
137 xyzabc
138 0: xyzabc
139 1: xyz
140 ** Failers
141 No match
142 xyzxyz
143 No match
144
145 /^X(?5)(a)(?|(b)|(q))(c)(d)(Y)/
146 XYabcdY
147 0: XYabcdY
148 1: a
149 2: b
150 3: c
151 4: d
152 5: Y
153
154 /^X(?7)(a)(?|(b|(r)(s))|(q))(c)(d)(Y)/
155 XYabcdY
156 0: XYabcdY
157 1: a
158 2: b
159 3: <unset>
160 4: <unset>
161 5: c
162 6: d
163 7: Y
164
165 /^X(?7)(a)(?|(b|(?|(r)|(t))(s))|(q))(c)(d)(Y)/
166 XYabcdY
167 0: XYabcdY
168 1: a
169 2: b
170 3: <unset>
171 4: <unset>
172 5: c
173 6: d
174 7: Y
175
176 /(?'abc'\w+):\k<abc>{2}/
177 a:aaxyz
178 0: a:aa
179 1: a
180 ab:ababxyz
181 0: ab:abab
182 1: ab
183 ** Failers
184 No match
185 a:axyz
186 No match
187 ab:abxyz
188 No match
189
190 /(?'abc'\w+):\g{abc}{2}/
191 a:aaxyz
192 0: a:aa
193 1: a
194 ab:ababxyz
195 0: ab:abab
196 1: ab
197 ** Failers
198 No match
199 a:axyz
200 No match
201 ab:abxyz
202 No match
203
204 /^(?<ab>a)? (?(<ab>)b|c) (?('ab')d|e)/x
205 abd
206 0: abd
207 1: a
208 ce
209 0: ce
210
211 /^(a.)\g-1Z/
212 aXaXZ
213 0: aXaXZ
214 1: aX
215
216 /^(a.)\g{-1}Z/
217 aXaXZ
218 0: aXaXZ
219 1: aX
220
221 /^(?(DEFINE) (?<A> a) (?<B> b) ) (?&A) (?&B) /x
222 abcd
223 0: ab
224
225 /(?<NAME>(?&NAME_PAT))\s+(?<ADDR>(?&ADDRESS_PAT))
226 (?(DEFINE)
227 (?<NAME_PAT>[a-z]+)
228 (?<ADDRESS_PAT>\d+)
229 )/x
230 metcalfe 33
231 0: metcalfe 33
232 1: metcalfe
233 2: 33
234
235 /(?(DEFINE)(?<byte>2[0-4]\d|25[0-5]|1\d\d|[1-9]?\d))\b(?&byte)(\.(?&byte)){3}/
236 1.2.3.4
237 0: 1.2.3.4
238 1: <unset>
239 2: .4
240 131.111.10.206
241 0: 131.111.10.206
242 1: <unset>
243 2: .206
244 10.0.0.0
245 0: 10.0.0.0
246 1: <unset>
247 2: .0
248 ** Failers
249 No match
250 10.6
251 No match
252 455.3.4.5
253 No match
254
255 /\b(?&byte)(\.(?&byte)){3}(?(DEFINE)(?<byte>2[0-4]\d|25[0-5]|1\d\d|[1-9]?\d))/
256 1.2.3.4
257 0: 1.2.3.4
258 1: .4
259 131.111.10.206
260 0: 131.111.10.206
261 1: .206
262 10.0.0.0
263 0: 10.0.0.0
264 1: .0
265 ** Failers
266 No match
267 10.6
268 No match
269 455.3.4.5
270 No match
271
272 /^(\w++|\s++)*$/
273 now is the time for all good men to come to the aid of the party
274 0: now is the time for all good men to come to the aid of the party
275 1: party
276 *** Failers
277 No match
278 this is not a line with only words and spaces!
279 No match
280
281 /(\d++)(\w)/
282 12345a
283 0: 12345a
284 1: 12345
285 2: a
286 *** Failers
287 No match
288 12345+
289 No match
290
291 /a++b/
292 aaab
293 0: aaab
294
295 /(a++b)/
296 aaab
297 0: aaab
298 1: aaab
299
300 /(a++)b/
301 aaab
302 0: aaab
303 1: aaa
304
305 /([^()]++|\([^()]*\))+/
306 ((abc(ade)ufh()()x
307 0: abc(ade)ufh()()x
308 1: x
309
310 /\(([^()]++|\([^()]+\))+\)/
311 (abc)
312 0: (abc)
313 1: abc
314 (abc(def)xyz)
315 0: (abc(def)xyz)
316 1: xyz
317 *** Failers
318 No match
319 ((()aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
320 No match
321
322 /^([^()]|\((?1)*\))*$/
323 abc
324 0: abc
325 1: c
326 a(b)c
327 0: a(b)c
328 1: c
329 a(b(c))d
330 0: a(b(c))d
331 1: d
332 *** Failers)
333 No match
334 a(b(c)d
335 No match
336
337 /^>abc>([^()]|\((?1)*\))*<xyz<$/
338 >abc>123<xyz<
339 0: >abc>123<xyz<
340 1: 3
341 >abc>1(2)3<xyz<
342 0: >abc>1(2)3<xyz<
343 1: 3
344 >abc>(1(2)3)<xyz<
345 0: >abc>(1(2)3)<xyz<
346 1: (1(2)3)
347
348 /^(?:((.)(?1)\2|)|((.)(?3)\4|.))$/i
349 1221
350 0: 1221
351 1: 1221
352 2: 1
353 Satanoscillatemymetallicsonatas
354 0: Satanoscillatemymetallicsonatas
355 1: <unset>
356 2: <unset>
357 3: Satanoscillatemymetallicsonatas
358 4: S
359 AmanaplanacanalPanama
360 0: AmanaplanacanalPanama
361 1: <unset>
362 2: <unset>
363 3: AmanaplanacanalPanama
364 4: A
365 AblewasIereIsawElba
366 0: AblewasIereIsawElba
367 1: <unset>
368 2: <unset>
369 3: AblewasIereIsawElba
370 4: A
371 *** Failers
372 No match
373 Thequickbrownfox
374 No match
375
376 /^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/
377 12
378 0: 12
379 1: 12
380 (((2+2)*-3)-7)
381 0: (((2+2)*-3)-7)
382 1: (((2+2)*-3)-7)
383 2: -
384 -12
385 0: -12
386 1: -12
387 *** Failers
388 No match
389 ((2+2)*-3)-7)
390 No match
391
392 /^(x(y|(?1){2})z)/
393 xyz
394 0: xyz
395 1: xyz
396 2: y
397 xxyzxyzz
398 0: xxyzxyzz
399 1: xxyzxyzz
400 2: xyzxyz
401 *** Failers
402 No match
403 xxyzz
404 No match
405 xxyzxyzxyzz
406 No match
407
408 /((< (?: (?(R) \d++ | [^<>]*+) | (?2)) * >))/x
409 <>
410 0: <>
411 1: <>
412 2: <>
413 <abcd>
414 0: <abcd>
415 1: <abcd>
416 2: <abcd>
417 <abc <123> hij>
418 0: <abc <123> hij>
419 1: <abc <123> hij>
420 2: <abc <123> hij>
421 <abc <def> hij>
422 0: <def>
423 1: <def>
424 2: <def>
425 <abc<>def>
426 0: <abc<>def>
427 1: <abc<>def>
428 2: <abc<>def>
429 <abc<>
430 0: <>
431 1: <>
432 2: <>
433 *** Failers
434 No match
435 <abc
436 No match
437
438 /^a+(*FAIL)/
439 aaaaaa
440 No match
441
442 /a+b?c+(*FAIL)/
443 aaabccc
444 No match
445
446 /a+b?(*PRUNE)c+(*FAIL)/
447 aaabccc
448 No match
449
450 /a+b?(*COMMIT)c+(*FAIL)/
451 aaabccc
452 No match
453
454 /a+b?(*SKIP)c+(*FAIL)/
455 aaabcccaaabccc
456 No match
457
458 /^(?:aaa(*THEN)\w{6}|bbb(*THEN)\w{5}|ccc(*THEN)\w{4}|\w{3})/
459 aaaxxxxxx
460 0: aaaxxxxxx
461 aaa++++++
462 0: aaa
463 bbbxxxxx
464 0: bbbxxxxx
465 bbb+++++
466 0: bbb
467 cccxxxx
468 0: cccxxxx
469 ccc++++
470 0: ccc
471 dddddddd
472 0: ddd
473
474 /^(aaa(*THEN)\w{6}|bbb(*THEN)\w{5}|ccc(*THEN)\w{4}|\w{3})/
475 aaaxxxxxx
476 0: aaaxxxxxx
477 1: aaaxxxxxx
478 aaa++++++
479 0: aaa
480 1: aaa
481 bbbxxxxx
482 0: bbbxxxxx
483 1: bbbxxxxx
484 bbb+++++
485 0: bbb
486 1: bbb
487 cccxxxx
488 0: cccxxxx
489 1: cccxxxx
490 ccc++++
491 0: ccc
492 1: ccc
493 dddddddd
494 0: ddd
495 1: ddd
496
497 /a+b?(*THEN)c+(*FAIL)/
498 aaabccc
499 No match
500
501 /(A (A|B(*ACCEPT)|C) D)(E)/x
502 ABX
503 0: AB
504 1: AB
505 2: B
506 AADE
507 0: AADE
508 1: AAD
509 2: A
510 3: E
511 ACDE
512 0: ACDE
513 1: ACD
514 2: C
515 3: E
516 ** Failers
517 No match
518 AD
519 No match
520
521 / End of testinput11 /

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12