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

Contents of /code/trunk/testdata/testinput5

Parent Directory Parent Directory | Revision Log Revision Log


Revision 428 - (show annotations) (download)
Mon Aug 31 17:10:26 2009 UTC (4 years, 7 months ago) by ph10
File size: 10822 byte(s)
Further partial match change: add PCRE_PARTIAL_HARD and make more intuitive.

1 /\x{100}/8DZ
2
3 /\x{1000}/8DZ
4
5 /\x{10000}/8DZ
6
7 /\x{100000}/8DZ
8
9 /\x{1000000}/8DZ
10
11 /\x{4000000}/8DZ
12
13 /\x{7fffFFFF}/8DZ
14
15 /[\x{ff}]/8DZ
16
17 /[\x{100}]/8DZ
18
19 /\x{ffffffff}/8
20
21 /\x{100000000}/8
22
23 /^\x{100}a\x{1234}/8
24 \x{100}a\x{1234}bcd
25
26 /\x80/8DZ
27
28 /\xff/8DZ
29
30 /\x{0041}\x{2262}\x{0391}\x{002e}/DZ8
31 \x{0041}\x{2262}\x{0391}\x{002e}
32
33 /\x{D55c}\x{ad6d}\x{C5B4}/DZ8
34 \x{D55c}\x{ad6d}\x{C5B4}
35
36 /\x{65e5}\x{672c}\x{8a9e}/DZ8
37 \x{65e5}\x{672c}\x{8a9e}
38
39 /\x{80}/DZ8
40
41 /\x{084}/DZ8
42
43 /\x{104}/DZ8
44
45 /\x{861}/DZ8
46
47 /\x{212ab}/DZ8
48
49 /.{3,5}X/DZ8
50 \x{212ab}\x{212ab}\x{212ab}\x{861}X
51
52
53 /.{3,5}?/DZ8
54 \x{212ab}\x{212ab}\x{212ab}\x{861}
55
56 /-- These tests are here rather than in testinput4 because Perl 5.6 has some
57 problems with UTF-8 support, in the area of \x{..} where the value is < 255.
58 It grumbles about invalid UTF-8 strings. --/
59
60 /^[a\x{c0}]b/8
61 \x{c0}b
62
63 /^([a\x{c0}]*?)aa/8
64 a\x{c0}aaaa/
65
66 /^([a\x{c0}]*?)aa/8
67 a\x{c0}aaaa/
68 a\x{c0}a\x{c0}aaa/
69
70 /^([a\x{c0}]*)aa/8
71 a\x{c0}aaaa/
72 a\x{c0}a\x{c0}aaa/
73
74 /^([a\x{c0}]*)a\x{c0}/8
75 a\x{c0}aaaa/
76 a\x{c0}a\x{c0}aaa/
77
78 /-- --/
79
80 /(?<=\C)X/8
81 Should produce an error diagnostic
82
83 /-- This one is here not because it's different to Perl, but because the way
84 the captured single-byte is displayed. (In Perl it becomes a character, and you
85 can't tell the difference.) --/
86
87 /X(\C)(.*)/8
88 X\x{1234}
89 X\nabc
90
91 /^[ab]/8DZ
92 bar
93 *** Failers
94 c
95 \x{ff}
96 \x{100}
97
98 /^[^ab]/8DZ
99 c
100 \x{ff}
101 \x{100}
102 *** Failers
103 aaa
104
105 /[^ab\xC0-\xF0]/8SDZ
106 \x{f1}
107 \x{bf}
108 \x{100}
109 \x{1000}
110 *** Failers
111 \x{c0}
112 \x{f0}
113
114 /Ā{3,4}/8SDZ
115 \x{100}\x{100}\x{100}\x{100\x{100}
116
117 /(\x{100}+|x)/8SDZ
118
119 /(\x{100}*a|x)/8SDZ
120
121 /(\x{100}{0,2}a|x)/8SDZ
122
123 /(\x{100}{1,2}a|x)/8SDZ
124
125 /\x{100}*(\d+|"(?1)")/8
126 1234
127 "1234"
128 \x{100}1234
129 "\x{100}1234"
130 \x{100}\x{100}12ab
131 \x{100}\x{100}"12"
132 *** Failers
133 \x{100}\x{100}abcd
134
135 /\x{100}/8DZ
136
137 /\x{100}*/8DZ
138
139 /a\x{100}*/8DZ
140
141 /ab\x{100}*/8DZ
142
143 /a\x{100}\x{101}*/8DZ
144
145 /a\x{100}\x{101}+/8DZ
146
147 /\x{100}*A/8DZ
148 A
149
150 /\x{100}*\d(?R)/8DZ
151
152 /[^\x{c4}]/DZ
153
154 /[^\x{c4}]/8DZ
155
156 /[\x{100}]/8DZ
157 \x{100}
158 Z\x{100}
159 \x{100}Z
160 *** Failers
161
162 /[Z\x{100}]/8DZ
163 Z\x{100}
164 \x{100}
165 \x{100}Z
166 *** Failers
167
168 /[\x{200}-\x{100}]/8
169
170 /[Ā-Ą]/8
171 \x{100}
172 \x{104}
173 *** Failers
174 \x{105}
175 \x{ff}
176
177 /[z-\x{100}]/8DZ
178
179 /[z\Qa-d]Ā\E]/8DZ
180 \x{100}
181 Ā
182
183 /[\xFF]/DZ
184 >\xff<
185
186 /[\xff]/DZ8
187 >\x{ff}<
188
189 /[^\xFF]/DZ
190
191 /[^\xff]/8DZ
192
193 /[Ä-Ü]/8
194 Ö # Matches without Study
195 \x{d6}
196
197 /[Ä-Ü]/8S
198 Ö <-- Same with Study
199 \x{d6}
200
201 /[\x{c4}-\x{dc}]/8
202 Ö # Matches without Study
203 \x{d6}
204
205 /[\x{c4}-\x{dc}]/8S
206 Ö <-- Same with Study
207 \x{d6}
208
209 /[]/8
210
211 //8
212
213 /xxx/8
214
215 /xxx/8?DZ
216
217 /abc/8
218 ]
219
220
221 \?
222
223 /anything/8
224 \xc0\x80
225 \xc1\x8f
226 \xe0\x9f\x80
227 \xf0\x8f\x80\x80
228 \xf8\x87\x80\x80\x80
229 \xfc\x83\x80\x80\x80\x80
230 \xfe\x80\x80\x80\x80\x80
231 \xff\x80\x80\x80\x80\x80
232 \xc3\x8f
233 \xe0\xaf\x80
234 \xe1\x80\x80
235 \xf0\x9f\x80\x80
236 \xf1\x8f\x80\x80
237 \xf8\x88\x80\x80\x80
238 \xf9\x87\x80\x80\x80
239 \xfc\x84\x80\x80\x80\x80
240 \xfd\x83\x80\x80\x80\x80
241 \?\xf8\x88\x80\x80\x80
242 \?\xf9\x87\x80\x80\x80
243 \?\xfc\x84\x80\x80\x80\x80
244 \?\xfd\x83\x80\x80\x80\x80
245
246 /\x{100}abc(xyz(?1))/8DZ
247
248 /[^\x{100}]abc(xyz(?1))/8DZ
249
250 /[ab\x{100}]abc(xyz(?1))/8DZ
251
252 /(\x{100}(b(?2)c))?/DZ8
253
254 /(\x{100}(b(?2)c)){0,2}/DZ8
255
256 /(\x{100}(b(?1)c))?/DZ8
257
258 /(\x{100}(b(?1)c)){0,2}/DZ8
259
260 /\W/8
261 A.B
262 A\x{100}B
263
264 /\w/8
265 \x{100}X
266
267 /a\x{1234}b/P8
268 a\x{1234}b
269
270 /^\ሴ/8DZ
271
272 /\777/I
273
274 /\777/8I
275 \x{1ff}
276 \777
277
278 /\x{100}*\d/8DZ
279
280 /\x{100}*\s/8DZ
281
282 /\x{100}*\w/8DZ
283
284 /\x{100}*\D/8DZ
285
286 /\x{100}*\S/8DZ
287
288 /\x{100}*\W/8DZ
289
290 /\x{100}+\x{200}/8DZ
291
292 /\x{100}+X/8DZ
293
294 /X+\x{200}/8DZ
295
296 /()()()()()()()()()()
297 ()()()()()()()()()()
298 ()()()()()()()()()()
299 ()()()()()()()()()()
300 A (x) (?41) B/8x
301 AxxB
302
303 /^[\x{100}\E-\Q\E\x{150}]/BZ8
304
305 /^[\QĀ\E-\QŐ\E]/BZ8
306
307 /^[\QĀ\E-\QŐ\E/BZ8
308
309 /^abc./mgx8<any>
310 abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x{0085}abc7 \x{2028}abc8 \x{2029}abc9 JUNK
311
312 /abc.$/mgx8<any>
313 abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x{0085} abc7\x{2028} abc8\x{2029} abc9
314
315 /^a\Rb/8<bsr_unicode>
316 a\nb
317 a\rb
318 a\r\nb
319 a\x0bb
320 a\x0cb
321 a\x{85}b
322 a\x{2028}b
323 a\x{2029}b
324 ** Failers
325 a\n\rb
326
327 /^a\R*b/8<bsr_unicode>
328 ab
329 a\nb
330 a\rb
331 a\r\nb
332 a\x0bb
333 a\x0c\x{2028}\x{2029}b
334 a\x{85}b
335 a\n\rb
336 a\n\r\x{85}\x0cb
337
338 /^a\R+b/8<bsr_unicode>
339 a\nb
340 a\rb
341 a\r\nb
342 a\x0bb
343 a\x0c\x{2028}\x{2029}b
344 a\x{85}b
345 a\n\rb
346 a\n\r\x{85}\x0cb
347 ** Failers
348 ab
349
350 /^a\R{1,3}b/8<bsr_unicode>
351 a\nb
352 a\n\rb
353 a\n\r\x{85}b
354 a\r\n\r\nb
355 a\r\n\r\n\r\nb
356 a\n\r\n\rb
357 a\n\n\r\nb
358 ** Failers
359 a\n\n\n\rb
360 a\r
361
362 /\H\h\V\v/8
363 X X\x0a
364 X\x09X\x0b
365 ** Failers
366 \x{a0} X\x0a
367
368 /\H*\h+\V?\v{3,4}/8
369 \x09\x20\x{a0}X\x0a\x0b\x0c\x0d\x0a
370 \x09\x20\x{a0}\x0a\x0b\x0c\x0d\x0a
371 \x09\x20\x{a0}\x0a\x0b\x0c
372 ** Failers
373 \x09\x20\x{a0}\x0a\x0b
374
375 /\H\h\V\v/8
376 \x{3001}\x{3000}\x{2030}\x{2028}
377 X\x{180e}X\x{85}
378 ** Failers
379 \x{2009} X\x0a
380
381 /\H*\h+\V?\v{3,4}/8
382 \x{1680}\x{180e}\x{2007}X\x{2028}\x{2029}\x0c\x0d\x0a
383 \x09\x{205f}\x{a0}\x0a\x{2029}\x0c\x{2028}\x0a
384 \x09\x20\x{202f}\x0a\x0b\x0c
385 ** Failers
386 \x09\x{200a}\x{a0}\x{2028}\x0b
387
388 /[\h]/8BZ
389 >\x{1680}
390
391 /[\h]{3,}/8BZ
392 >\x{1680}\x{180e}\x{2000}\x{2003}\x{200a}\x{202f}\x{205f}\x{3000}<
393
394 /[\v]/8BZ
395
396 /[\H]/8BZ
397
398 /[\V]/8BZ
399
400 /.*$/8<any>
401 \x{1ec5}
402
403 /-- This tests the stricter UTF-8 check according to RFC 3629. --/
404
405 /X/8
406 \x{0}\x{d7ff}\x{e000}\x{10ffff}
407 \x{d800}
408 \x{d800}\?
409 \x{da00}
410 \x{da00}\?
411 \x{dfff}
412 \x{dfff}\?
413 \x{110000}
414 \x{110000}\?
415 \x{2000000}
416 \x{2000000}\?
417 \x{7fffffff}
418 \x{7fffffff}\?
419
420 /a\Rb/I8<bsr_anycrlf>
421 a\rb
422 a\nb
423 a\r\nb
424 ** Failers
425 a\x{85}b
426 a\x0bb
427
428 /a\Rb/I8<bsr_unicode>
429 a\rb
430 a\nb
431 a\r\nb
432 a\x{85}b
433 a\x0bb
434 ** Failers
435 a\x{85}b\<bsr_anycrlf>
436 a\x0bb\<bsr_anycrlf>
437
438 /a\R?b/I8<bsr_anycrlf>
439 a\rb
440 a\nb
441 a\r\nb
442 ** Failers
443 a\x{85}b
444 a\x0bb
445
446 /a\R?b/I8<bsr_unicode>
447 a\rb
448 a\nb
449 a\r\nb
450 a\x{85}b
451 a\x0bb
452 ** Failers
453 a\x{85}b\<bsr_anycrlf>
454 a\x0bb\<bsr_anycrlf>
455
456 /.*a.*=.b.*/8<ANY>
457 QQQ\x{2029}ABCaXYZ=!bPQR
458 ** Failers
459 a\x{2029}b
460 \x61\xe2\x80\xa9\x62
461
462 /[[:a\x{100}b:]]/8
463
464 /a[^]b/<JS>8
465 a\x{1234}b
466 a\nb
467 ** Failers
468 ab
469
470 /a[^]+b/<JS>8
471 aXb
472 a\nX\nX\x{1234}b
473 ** Failers
474 ab
475
476 /(\x{de})\1/
477 \x{de}\x{de}
478 \x{123}
479
480 /X/8f<any>
481 A\x{1ec5}ABCXYZ
482
483 /(*UTF8)\x{1234}/
484 abcd\x{1234}pqr
485
486 /(*CRLF)(*UTF8)(*BSR_UNICODE)a\Rb/I
487
488 /Xa{2,4}b/8
489 X\P
490 Xa\P
491 Xaa\P
492 Xaaa\P
493 Xaaaa\P
494
495 /Xa{2,4}?b/8
496 X\P
497 Xa\P
498 Xaa\P
499 Xaaa\P
500 Xaaaa\P
501
502 /Xa{2,4}+b/8
503 X\P
504 Xa\P
505 Xaa\P
506 Xaaa\P
507 Xaaaa\P
508
509 /X\x{123}{2,4}b/8
510 X\P
511 X\x{123}\P
512 X\x{123}\x{123}\P
513 X\x{123}\x{123}\x{123}\P
514 X\x{123}\x{123}\x{123}\x{123}\P
515
516 /X\x{123}{2,4}?b/8
517 X\P
518 X\x{123}\P
519 X\x{123}\x{123}\P
520 X\x{123}\x{123}\x{123}\P
521 X\x{123}\x{123}\x{123}\x{123}\P
522
523 /X\x{123}{2,4}+b/8
524 X\P
525 X\x{123}\P
526 X\x{123}\x{123}\P
527 X\x{123}\x{123}\x{123}\P
528 X\x{123}\x{123}\x{123}\x{123}\P
529
530 /X\x{123}{2,4}b/8
531 Xx\P
532 X\x{123}x\P
533 X\x{123}\x{123}x\P
534 X\x{123}\x{123}\x{123}x\P
535 X\x{123}\x{123}\x{123}\x{123}x\P
536
537 /X\x{123}{2,4}?b/8
538 Xx\P
539 X\x{123}x\P
540 X\x{123}\x{123}x\P
541 X\x{123}\x{123}\x{123}x\P
542 X\x{123}\x{123}\x{123}\x{123}x\P
543
544 /X\x{123}{2,4}+b/8
545 Xx\P
546 X\x{123}x\P
547 X\x{123}\x{123}x\P
548 X\x{123}\x{123}\x{123}x\P
549 X\x{123}\x{123}\x{123}\x{123}x\P
550
551 /X\d{2,4}b/8
552 X\P
553 X3\P
554 X33\P
555 X333\P
556 X3333\P
557
558 /X\d{2,4}?b/8
559 X\P
560 X3\P
561 X33\P
562 X333\P
563 X3333\P
564
565 /X\d{2,4}+b/8
566 X\P
567 X3\P
568 X33\P
569 X333\P
570 X3333\P
571
572 /X\D{2,4}b/8
573 X\P
574 Xa\P
575 Xaa\P
576 Xaaa\P
577 Xaaaa\P
578
579 /X\D{2,4}?b/8
580 X\P
581 Xa\P
582 Xaa\P
583 Xaaa\P
584 Xaaaa\P
585
586 /X\D{2,4}+b/8
587 X\P
588 Xa\P
589 Xaa\P
590 Xaaa\P
591 Xaaaa\P
592
593 /X\D{2,4}b/8
594 X\P
595 X\x{123}\P
596 X\x{123}\x{123}\P
597 X\x{123}\x{123}\x{123}\P
598 X\x{123}\x{123}\x{123}\x{123}\P
599
600 /X\D{2,4}?b/8
601 X\P
602 X\x{123}\P
603 X\x{123}\x{123}\P
604 X\x{123}\x{123}\x{123}\P
605 X\x{123}\x{123}\x{123}\x{123}\P
606
607 /X\D{2,4}+b/8
608 X\P
609 X\x{123}\P
610 X\x{123}\x{123}\P
611 X\x{123}\x{123}\x{123}\P
612 X\x{123}\x{123}\x{123}\x{123}\P
613
614 /X[abc]{2,4}b/8
615 X\P
616 Xa\P
617 Xaa\P
618 Xaaa\P
619 Xaaaa\P
620
621 /X[abc]{2,4}?b/8
622 X\P
623 Xa\P
624 Xaa\P
625 Xaaa\P
626 Xaaaa\P
627
628 /X[abc]{2,4}+b/8
629 X\P
630 Xa\P
631 Xaa\P
632 Xaaa\P
633 Xaaaa\P
634
635 /X[abc\x{123}]{2,4}b/8
636 X\P
637 X\x{123}\P
638 X\x{123}\x{123}\P
639 X\x{123}\x{123}\x{123}\P
640 X\x{123}\x{123}\x{123}\x{123}\P
641
642 /X[abc\x{123}]{2,4}?b/8
643 X\P
644 X\x{123}\P
645 X\x{123}\x{123}\P
646 X\x{123}\x{123}\x{123}\P
647 X\x{123}\x{123}\x{123}\x{123}\P
648
649 /X[abc\x{123}]{2,4}+b/8
650 X\P
651 X\x{123}\P
652 X\x{123}\x{123}\P
653 X\x{123}\x{123}\x{123}\P
654 X\x{123}\x{123}\x{123}\x{123}\P
655
656 /X[^a]{2,4}b/8
657 X\P
658 Xz\P
659 Xzz\P
660 Xzzz\P
661 Xzzzz\P
662
663 /X[^a]{2,4}?b/8
664 X\P
665 Xz\P
666 Xzz\P
667 Xzzz\P
668 Xzzzz\P
669
670 /X[^a]{2,4}+b/8
671 X\P
672 Xz\P
673 Xzz\P
674 Xzzz\P
675 Xzzzz\P
676
677 /X[^a]{2,4}b/8
678 X\P
679 X\x{123}\P
680 X\x{123}\x{123}\P
681 X\x{123}\x{123}\x{123}\P
682 X\x{123}\x{123}\x{123}\x{123}\P
683
684 /X[^a]{2,4}?b/8
685 X\P
686 X\x{123}\P
687 X\x{123}\x{123}\P
688 X\x{123}\x{123}\x{123}\P
689 X\x{123}\x{123}\x{123}\x{123}\P
690
691 /X[^a]{2,4}+b/8
692 X\P
693 X\x{123}\P
694 X\x{123}\x{123}\P
695 X\x{123}\x{123}\x{123}\P
696 X\x{123}\x{123}\x{123}\x{123}\P
697
698 /(Y)X\1{2,4}b/8
699 YX\P
700 YXY\P
701 YXYY\P
702 YXYYY\P
703 YXYYYY\P
704
705 /(Y)X\1{2,4}?b/8
706 YX\P
707 YXY\P
708 YXYY\P
709 YXYYY\P
710 YXYYYY\P
711
712 /(Y)X\1{2,4}+b/8
713 YX\P
714 YXY\P
715 YXYY\P
716 YXYYY\P
717 YXYYYY\P
718
719 /(\x{123})X\1{2,4}b/8
720 \x{123}X\P
721 \x{123}X\x{123}\P
722 \x{123}X\x{123}\x{123}\P
723 \x{123}X\x{123}\x{123}\x{123}\P
724 \x{123}X\x{123}\x{123}\x{123}\x{123}\P
725
726 /(\x{123})X\1{2,4}?b/8
727 \x{123}X\P
728 \x{123}X\x{123}\P
729 \x{123}X\x{123}\x{123}\P
730 \x{123}X\x{123}\x{123}\x{123}\P
731 \x{123}X\x{123}\x{123}\x{123}\x{123}\P
732
733 /(\x{123})X\1{2,4}+b/8
734 \x{123}X\P
735 \x{123}X\x{123}\P
736 \x{123}X\x{123}\x{123}\P
737 \x{123}X\x{123}\x{123}\x{123}\P
738 \x{123}X\x{123}\x{123}\x{123}\x{123}\P
739
740 /\bthe cat\b/8
741 the cat\P
742 the cat\P\P
743
744 / End of testinput5 /

Properties

Name Value
svn:keywords "Author Date Id Revision Url"

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12