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

Contents of /code/trunk/testdata/testoutput5

Parent Directory Parent Directory | Revision Log Revision Log


Revision 161 - (show annotations)
Thu May 3 10:28:07 2007 UTC (12 years, 11 months ago) by ph10
File size: 28993 byte(s)
Use the pcretest "Z" option so all tests can be run with all link sizes.
1 /\x{100}/8DZM
2 Memory allocation (code space): 10
3 ------------------------------------------------------------------
4 Bra 0
5 \x{100}
6 Ket
7 End
8 ------------------------------------------------------------------
9 Capturing subpattern count = 0
10 Options: utf8
11 First char = 196
12 Need char = 128
13
14 /\x{1000}/8DZM
15 Memory allocation (code space): 11
16 ------------------------------------------------------------------
17 Bra 0
18 \x{1000}
19 Ket
20 End
21 ------------------------------------------------------------------
22 Capturing subpattern count = 0
23 Options: utf8
24 First char = 225
25 Need char = 128
26
27 /\x{10000}/8DZM
28 Memory allocation (code space): 12
29 ------------------------------------------------------------------
30 Bra 0
31 \x{10000}
32 Ket
33 End
34 ------------------------------------------------------------------
35 Capturing subpattern count = 0
36 Options: utf8
37 First char = 240
38 Need char = 128
39
40 /\x{100000}/8DZM
41 Memory allocation (code space): 12
42 ------------------------------------------------------------------
43 Bra 0
44 \x{100000}
45 Ket
46 End
47 ------------------------------------------------------------------
48 Capturing subpattern count = 0
49 Options: utf8
50 First char = 244
51 Need char = 128
52
53 /\x{1000000}/8DZM
54 Memory allocation (code space): 13
55 ------------------------------------------------------------------
56 Bra 0
57 \x{1000000}
58 Ket
59 End
60 ------------------------------------------------------------------
61 Capturing subpattern count = 0
62 Options: utf8
63 First char = 249
64 Need char = 128
65
66 /\x{4000000}/8DZM
67 Memory allocation (code space): 14
68 ------------------------------------------------------------------
69 Bra 0
70 \x{4000000}
71 Ket
72 End
73 ------------------------------------------------------------------
74 Capturing subpattern count = 0
75 Options: utf8
76 First char = 252
77 Need char = 128
78
79 /\x{7fffFFFF}/8DZM
80 Memory allocation (code space): 14
81 ------------------------------------------------------------------
82 Bra 0
83 \x{7fffffff}
84 Ket
85 End
86 ------------------------------------------------------------------
87 Capturing subpattern count = 0
88 Options: utf8
89 First char = 253
90 Need char = 191
91
92 /[\x{ff}]/8DZM
93 Memory allocation (code space): 10
94 ------------------------------------------------------------------
95 Bra 0
96 \x{ff}
97 Ket
98 End
99 ------------------------------------------------------------------
100 Capturing subpattern count = 0
101 Options: utf8
102 First char = 195
103 Need char = 191
104
105 /[\x{100}]/8DZM
106 Memory allocation (code space): 15
107 ------------------------------------------------------------------
108 Bra 0
109 [\x{100}]
110 Ket
111 End
112 ------------------------------------------------------------------
113 Capturing subpattern count = 0
114 Options: utf8
115 No first char
116 No need char
117
118 /\x{ffffffff}/8
119 Failed: character value in \x{...} sequence is too large at offset 11
120
121 /\x{100000000}/8
122 Failed: character value in \x{...} sequence is too large at offset 12
123
124 /^\x{100}a\x{1234}/8
125 \x{100}a\x{1234}bcd
126 0: \x{100}a\x{1234}
127
128 /\x80/8DZ
129 ------------------------------------------------------------------
130 Bra 0
131 \x{80}
132 Ket
133 End
134 ------------------------------------------------------------------
135 Capturing subpattern count = 0
136 Options: utf8
137 First char = 194
138 Need char = 128
139
140 /\xff/8DZ
141 ------------------------------------------------------------------
142 Bra 0
143 \x{ff}
144 Ket
145 End
146 ------------------------------------------------------------------
147 Capturing subpattern count = 0
148 Options: utf8
149 First char = 195
150 Need char = 191
151
152 /\x{0041}\x{2262}\x{0391}\x{002e}/DZ8
153 ------------------------------------------------------------------
154 Bra 0
155 A\x{2262}\x{391}.
156 Ket
157 End
158 ------------------------------------------------------------------
159 Capturing subpattern count = 0
160 Options: utf8
161 First char = 'A'
162 Need char = '.'
163 \x{0041}\x{2262}\x{0391}\x{002e}
164 0: A\x{2262}\x{391}.
165
166 /\x{D55c}\x{ad6d}\x{C5B4}/DZ8
167 ------------------------------------------------------------------
168 Bra 0
169 \x{d55c}\x{ad6d}\x{c5b4}
170 Ket
171 End
172 ------------------------------------------------------------------
173 Capturing subpattern count = 0
174 Options: utf8
175 First char = 237
176 Need char = 180
177 \x{D55c}\x{ad6d}\x{C5B4}
178 0: \x{d55c}\x{ad6d}\x{c5b4}
179
180 /\x{65e5}\x{672c}\x{8a9e}/DZ8
181 ------------------------------------------------------------------
182 Bra 0
183 \x{65e5}\x{672c}\x{8a9e}
184 Ket
185 End
186 ------------------------------------------------------------------
187 Capturing subpattern count = 0
188 Options: utf8
189 First char = 230
190 Need char = 158
191 \x{65e5}\x{672c}\x{8a9e}
192 0: \x{65e5}\x{672c}\x{8a9e}
193
194 /\x{80}/DZ8
195 ------------------------------------------------------------------
196 Bra 0
197 \x{80}
198 Ket
199 End
200 ------------------------------------------------------------------
201 Capturing subpattern count = 0
202 Options: utf8
203 First char = 194
204 Need char = 128
205
206 /\x{084}/DZ8
207 ------------------------------------------------------------------
208 Bra 0
209 \x{84}
210 Ket
211 End
212 ------------------------------------------------------------------
213 Capturing subpattern count = 0
214 Options: utf8
215 First char = 194
216 Need char = 132
217
218 /\x{104}/DZ8
219 ------------------------------------------------------------------
220 Bra 0
221 \x{104}
222 Ket
223 End
224 ------------------------------------------------------------------
225 Capturing subpattern count = 0
226 Options: utf8
227 First char = 196
228 Need char = 132
229
230 /\x{861}/DZ8
231 ------------------------------------------------------------------
232 Bra 0
233 \x{861}
234 Ket
235 End
236 ------------------------------------------------------------------
237 Capturing subpattern count = 0
238 Options: utf8
239 First char = 224
240 Need char = 161
241
242 /\x{212ab}/DZ8
243 ------------------------------------------------------------------
244 Bra 0
245 \x{212ab}
246 Ket
247 End
248 ------------------------------------------------------------------
249 Capturing subpattern count = 0
250 Options: utf8
251 First char = 240
252 Need char = 171
253
254 /.{3,5}X/DZ8
255 ------------------------------------------------------------------
256 Bra 0
257 Any{3}
258 Any{0,2}
259 X
260 Ket
261 End
262 ------------------------------------------------------------------
263 Capturing subpattern count = 0
264 Partial matching not supported
265 Options: utf8
266 No first char
267 Need char = 'X'
268 \x{212ab}\x{212ab}\x{212ab}\x{861}X
269 0: \x{212ab}\x{212ab}\x{212ab}\x{861}X
270
271
272 /.{3,5}?/DZ8
273 ------------------------------------------------------------------
274 Bra 0
275 Any{3}
276 Any{0,2}?
277 Ket
278 End
279 ------------------------------------------------------------------
280 Capturing subpattern count = 0
281 Partial matching not supported
282 Options: utf8
283 No first char
284 No need char
285 \x{212ab}\x{212ab}\x{212ab}\x{861}
286 0: \x{212ab}\x{212ab}\x{212ab}
287
288 /-- These tests are here rather than in testinput4 because Perl 5.6 has some
289 problems with UTF-8 support, in the area of \x{..} where the value is < 255.
290 It grumbles about invalid UTF-8 strings. --/
291
292 /^[a\x{c0}]b/8
293 \x{c0}b
294 0: \x{c0}b
295
296 /^([a\x{c0}]*?)aa/8
297 a\x{c0}aaaa/
298 0: a\x{c0}aa
299 1: a\x{c0}
300
301 /^([a\x{c0}]*?)aa/8
302 a\x{c0}aaaa/
303 0: a\x{c0}aa
304 1: a\x{c0}
305 a\x{c0}a\x{c0}aaa/
306 0: a\x{c0}a\x{c0}aa
307 1: a\x{c0}a\x{c0}
308
309 /^([a\x{c0}]*)aa/8
310 a\x{c0}aaaa/
311 0: a\x{c0}aaaa
312 1: a\x{c0}aa
313 a\x{c0}a\x{c0}aaa/
314 0: a\x{c0}a\x{c0}aaa
315 1: a\x{c0}a\x{c0}a
316
317 /^([a\x{c0}]*)a\x{c0}/8
318 a\x{c0}aaaa/
319 0: a\x{c0}
320 1:
321 a\x{c0}a\x{c0}aaa/
322 0: a\x{c0}a\x{c0}
323 1: a\x{c0}
324
325 /-- --/
326
327 /(?<=\C)X/8
328 Failed: \C not allowed in lookbehind assertion at offset 6
329
330 /-- This one is here not because it's different to Perl, but because the way
331 the captured single-byte is displayed. (In Perl it becomes a character, and you
332 can't tell the difference.) --/
333
334 /X(\C)(.*)/8
335 X\x{1234}
336 0: X\x{1234}
337 1: \xe1
338 2: \x88\xb4
339 X\nabc
340 0: X\x{0a}abc
341 1: \x{0a}
342 2: abc
343
344 /^[ab]/8DZ
345 ------------------------------------------------------------------
346 Bra 0
347 ^
348 [ab]
349 Ket
350 End
351 ------------------------------------------------------------------
352 Capturing subpattern count = 0
353 Options: anchored utf8
354 No first char
355 No need char
356 bar
357 0: b
358 *** Failers
359 No match
360 c
361 No match
362 \x{ff}
363 No match
364 \x{100}
365 No match
366
367 /^[^ab]/8DZ
368 ------------------------------------------------------------------
369 Bra 0
370 ^
371 [\x00-`c-\xff] (neg)
372 Ket
373 End
374 ------------------------------------------------------------------
375 Capturing subpattern count = 0
376 Options: anchored utf8
377 No first char
378 No need char
379 c
380 0: c
381 \x{ff}
382 0: \x{ff}
383 \x{100}
384 0: \x{100}
385 *** Failers
386 0: *
387 aaa
388 No match
389
390 /[^ab\xC0-\xF0]/8SDZ
391 ------------------------------------------------------------------
392 Bra 0
393 [\x00-`c-\xbf\xf1-\xff] (neg)
394 Ket
395 End
396 ------------------------------------------------------------------
397 Capturing subpattern count = 0
398 Options: utf8
399 No first char
400 No need char
401 Starting byte set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a
402 \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19
403 \x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4
404 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y
405 Z [ \ ] ^ _ ` c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ \x7f
406 \xc2 \xc3 \xc4 \xc5 \xc6 \xc7 \xc8 \xc9 \xca \xcb \xcc \xcd \xce \xcf \xd0
407 \xd1 \xd2 \xd3 \xd4 \xd5 \xd6 \xd7 \xd8 \xd9 \xda \xdb \xdc \xdd \xde \xdf
408 \xe0 \xe1 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8 \xe9 \xea \xeb \xec \xed \xee
409 \xef \xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7 \xf8 \xf9 \xfa \xfb \xfc \xfd
410 \xfe \xff
411 \x{f1}
412 0: \x{f1}
413 \x{bf}
414 0: \x{bf}
415 \x{100}
416 0: \x{100}
417 \x{1000}
418 0: \x{1000}
419 *** Failers
420 0: *
421 \x{c0}
422 No match
423 \x{f0}
424 No match
425
426 /Ā{3,4}/8SDZ
427 ------------------------------------------------------------------
428 Bra 0
429 \x{100}{3}
430 \x{100}?
431 Ket
432 End
433 ------------------------------------------------------------------
434 Capturing subpattern count = 0
435 Partial matching not supported
436 Options: utf8
437 First char = 196
438 Need char = 128
439 Study returned NULL
440 \x{100}\x{100}\x{100}\x{100\x{100}
441 0: \x{100}\x{100}\x{100}
442
443 /(\x{100}+|x)/8SDZ
444 ------------------------------------------------------------------
445 Bra 0
446 Bra 1
447 \x{100}+
448 Alt
449 x
450 Ket
451 Ket
452 End
453 ------------------------------------------------------------------
454 Capturing subpattern count = 1
455 Partial matching not supported
456 Options: utf8
457 No first char
458 No need char
459 Starting byte set: x \xc4
460
461 /(\x{100}*a|x)/8SDZ
462 ------------------------------------------------------------------
463 Bra 0
464 Bra 1
465 \x{100}*+
466 a
467 Alt
468 x
469 Ket
470 Ket
471 End
472 ------------------------------------------------------------------
473 Capturing subpattern count = 1
474 Partial matching not supported
475 Options: utf8
476 No first char
477 No need char
478 Starting byte set: a x \xc4
479
480 /(\x{100}{0,2}a|x)/8SDZ
481 ------------------------------------------------------------------
482 Bra 0
483 Bra 1
484 \x{100}{0,2}
485 a
486 Alt
487 x
488 Ket
489 Ket
490 End
491 ------------------------------------------------------------------
492 Capturing subpattern count = 1
493 Partial matching not supported
494 Options: utf8
495 No first char
496 No need char
497 Starting byte set: a x \xc4
498
499 /(\x{100}{1,2}a|x)/8SDZ
500 ------------------------------------------------------------------
501 Bra 0
502 Bra 1
503 \x{100}
504 \x{100}{0,1}
505 a
506 Alt
507 x
508 Ket
509 Ket
510 End
511 ------------------------------------------------------------------
512 Capturing subpattern count = 1
513 Partial matching not supported
514 Options: utf8
515 No first char
516 No need char
517 Starting byte set: x \xc4
518
519 /\x{100}*(\d+|"(?1)")/8
520 1234
521 0: 1234
522 1: 1234
523 "1234"
524 0: "1234"
525 1: "1234"
526 \x{100}1234
527 0: \x{100}1234
528 1: 1234
529 "\x{100}1234"
530 0: \x{100}1234
531 1: 1234
532 \x{100}\x{100}12ab
533 0: \x{100}\x{100}12
534 1: 12
535 \x{100}\x{100}"12"
536 0: \x{100}\x{100}"12"
537 1: "12"
538 *** Failers
539 No match
540 \x{100}\x{100}abcd
541 No match
542
543 /\x{100}/8DZ
544 ------------------------------------------------------------------
545 Bra 0
546 \x{100}
547 Ket
548 End
549 ------------------------------------------------------------------
550 Capturing subpattern count = 0
551 Options: utf8
552 First char = 196
553 Need char = 128
554
555 /\x{100}*/8DZ
556 ------------------------------------------------------------------
557 Bra 0
558 \x{100}*
559 Ket
560 End
561 ------------------------------------------------------------------
562 Capturing subpattern count = 0
563 Partial matching not supported
564 Options: utf8
565 No first char
566 No need char
567
568 /a\x{100}*/8DZ
569 ------------------------------------------------------------------
570 Bra 0
571 a
572 \x{100}*
573 Ket
574 End
575 ------------------------------------------------------------------
576 Capturing subpattern count = 0
577 Partial matching not supported
578 Options: utf8
579 First char = 'a'
580 No need char
581
582 /ab\x{100}*/8DZ
583 ------------------------------------------------------------------
584 Bra 0
585 ab
586 \x{100}*
587 Ket
588 End
589 ------------------------------------------------------------------
590 Capturing subpattern count = 0
591 Partial matching not supported
592 Options: utf8
593 First char = 'a'
594 Need char = 'b'
595
596 /a\x{100}\x{101}*/8DZ
597 ------------------------------------------------------------------
598 Bra 0
599 a\x{100}
600 \x{101}*
601 Ket
602 End
603 ------------------------------------------------------------------
604 Capturing subpattern count = 0
605 Partial matching not supported
606 Options: utf8
607 First char = 'a'
608 Need char = 128
609
610 /a\x{100}\x{101}+/8DZ
611 ------------------------------------------------------------------
612 Bra 0
613 a\x{100}
614 \x{101}+
615 Ket
616 End
617 ------------------------------------------------------------------
618 Capturing subpattern count = 0
619 Partial matching not supported
620 Options: utf8
621 First char = 'a'
622 Need char = 129
623
624 /\x{100}*A/8DZ
625 ------------------------------------------------------------------
626 Bra 0
627 \x{100}*+
628 A
629 Ket
630 End
631 ------------------------------------------------------------------
632 Capturing subpattern count = 0
633 Partial matching not supported
634 Options: utf8
635 No first char
636 Need char = 'A'
637 A
638 0: A
639
640 /\x{100}*\d(?R)/8DZ
641 ------------------------------------------------------------------
642 Bra 0
643 \x{100}*+
644 \d
645 Once
646 Recurse
647 Ket
648 Ket
649 End
650 ------------------------------------------------------------------
651 Capturing subpattern count = 0
652 Partial matching not supported
653 Options: utf8
654 No first char
655 No need char
656
657 /[^\x{c4}]/DZ
658 ------------------------------------------------------------------
659 Bra 0
660 [^\xc4]
661 Ket
662 End
663 ------------------------------------------------------------------
664 Capturing subpattern count = 0
665 No options
666 No first char
667 No need char
668
669 /[^\x{c4}]/8DZ
670 ------------------------------------------------------------------
671 Bra 0
672 [\x00-\xc3\xc5-\xff] (neg)
673 Ket
674 End
675 ------------------------------------------------------------------
676 Capturing subpattern count = 0
677 Options: utf8
678 No first char
679 No need char
680
681 /[\x{100}]/8DZM
682 Memory allocation (code space): 15
683 ------------------------------------------------------------------
684 Bra 0
685 [\x{100}]
686 Ket
687 End
688 ------------------------------------------------------------------
689 Capturing subpattern count = 0
690 Options: utf8
691 No first char
692 No need char
693 \x{100}
694 0: \x{100}
695 Z\x{100}
696 0: \x{100}
697 \x{100}Z
698 0: \x{100}
699 *** Failers
700 No match
701
702 /[Z\x{100}]/8DZM
703 Memory allocation (code space): 47
704 ------------------------------------------------------------------
705 Bra 0
706 [Z\x{100}]
707 Ket
708 End
709 ------------------------------------------------------------------
710 Capturing subpattern count = 0
711 Options: utf8
712 No first char
713 No need char
714 Z\x{100}
715 0: Z
716 \x{100}
717 0: \x{100}
718 \x{100}Z
719 0: \x{100}
720 *** Failers
721 No match
722
723 /[\x{200}-\x{100}]/8
724 Failed: range out of order in character class at offset 15
725
726 /[Ā-Ą]/8
727 \x{100}
728 0: \x{100}
729 \x{104}
730 0: \x{104}
731 *** Failers
732 No match
733 \x{105}
734 No match
735 \x{ff}
736 No match
737
738 /[z-\x{100}]/8DZ
739 ------------------------------------------------------------------
740 Bra 0
741 [z-\x{100}]
742 Ket
743 End
744 ------------------------------------------------------------------
745 Capturing subpattern count = 0
746 Options: utf8
747 No first char
748 No need char
749
750 /[z\Qa-d]Ā\E]/8DZ
751 ------------------------------------------------------------------
752 Bra 0
753 [\-\]adz\x{100}]
754 Ket
755 End
756 ------------------------------------------------------------------
757 Capturing subpattern count = 0
758 Options: utf8
759 No first char
760 No need char
761 \x{100}
762 0: \x{100}
763 Ā
764 0: \x{100}
765
766 /[\xFF]/DZ
767 ------------------------------------------------------------------
768 Bra 0
769 \xff
770 Ket
771 End
772 ------------------------------------------------------------------
773 Capturing subpattern count = 0
774 No options
775 First char = 255
776 No need char
777 >\xff<
778 0: \xff
779
780 /[\xff]/DZ8
781 ------------------------------------------------------------------
782 Bra 0
783 \x{ff}
784 Ket
785 End
786 ------------------------------------------------------------------
787 Capturing subpattern count = 0
788 Options: utf8
789 First char = 195
790 Need char = 191
791 >\x{ff}<
792 0: \x{ff}
793
794 /[^\xFF]/DZ
795 ------------------------------------------------------------------
796 Bra 0
797 [^\xff]
798 Ket
799 End
800 ------------------------------------------------------------------
801 Capturing subpattern count = 0
802 No options
803 No first char
804 No need char
805
806 /[^\xff]/8DZ
807 ------------------------------------------------------------------
808 Bra 0
809 [\x00-\xfe] (neg)
810 Ket
811 End
812 ------------------------------------------------------------------
813 Capturing subpattern count = 0
814 Options: utf8
815 No first char
816 No need char
817
818 /[Ä-Ü]/8
819 Ö # Matches without Study
820 0: \x{d6}
821 \x{d6}
822 0: \x{d6}
823
824 /[Ä-Ü]/8S
825 Ö <-- Same with Study
826 0: \x{d6}
827 \x{d6}
828 0: \x{d6}
829
830 /[\x{c4}-\x{dc}]/8
831 Ö # Matches without Study
832 0: \x{d6}
833 \x{d6}
834 0: \x{d6}
835
836 /[\x{c4}-\x{dc}]/8S
837 Ö <-- Same with Study
838 0: \x{d6}
839 \x{d6}
840 0: \x{d6}
841
842 /[]/8
843 Failed: invalid UTF-8 string at offset 2
844
845 //8
846 Failed: invalid UTF-8 string at offset 0
847
848 /xxx/8
849 Failed: invalid UTF-8 string at offset 1
850
851 /xxx/8?DZ
852 ------------------------------------------------------------------
853 Bra 0
854 \X{c0}\X{c0}\X{c0}xxx
855 Ket
856 End
857 ------------------------------------------------------------------
858 Capturing subpattern count = 0
859 Options: utf8 no_utf8_check
860 First char = 195
861 Need char = 'x'
862
863 /abc/8
864 ]
865 Error -10
866
867 Error -10
868
869 Error -10
870 \?
871 No match
872
873 /anything/8
874 \xc0\x80
875 Error -10
876 \xc1\x8f
877 Error -10
878 \xe0\x9f\x80
879 Error -10
880 \xf0\x8f\x80\x80
881 Error -10
882 \xf8\x87\x80\x80\x80
883 Error -10
884 \xfc\x83\x80\x80\x80\x80
885 Error -10
886 \xfe\x80\x80\x80\x80\x80
887 Error -10
888 \xff\x80\x80\x80\x80\x80
889 Error -10
890 \xc3\x8f
891 No match
892 \xe0\xaf\x80
893 No match
894 \xe1\x80\x80
895 No match
896 \xf0\x9f\x80\x80
897 No match
898 \xf1\x8f\x80\x80
899 No match
900 \xf8\x88\x80\x80\x80
901 No match
902 \xf9\x87\x80\x80\x80
903 No match
904 \xfc\x84\x80\x80\x80\x80
905 No match
906 \xfd\x83\x80\x80\x80\x80
907 No match
908
909 /\x{100}abc(xyz(?1))/8DZ
910 ------------------------------------------------------------------
911 Bra 0
912 \x{100}abc
913 Bra 1
914 xyz
915 Once
916 Recurse
917 Ket
918 Ket
919 Ket
920 End
921 ------------------------------------------------------------------
922 Capturing subpattern count = 1
923 Options: utf8
924 First char = 196
925 Need char = 'z'
926
927 /[^\x{100}]abc(xyz(?1))/8DZ
928 ------------------------------------------------------------------
929 Bra 0
930 [^\x{100}]
931 abc
932 Bra 1
933 xyz
934 Once
935 Recurse
936 Ket
937 Ket
938 Ket
939 End
940 ------------------------------------------------------------------
941 Capturing subpattern count = 1
942 Options: utf8
943 No first char
944 Need char = 'z'
945
946 /[ab\x{100}]abc(xyz(?1))/8DZ
947 ------------------------------------------------------------------
948 Bra 0
949 [ab\x{100}]
950 abc
951 Bra 1
952 xyz
953 Once
954 Recurse
955 Ket
956 Ket
957 Ket
958 End
959 ------------------------------------------------------------------
960 Capturing subpattern count = 1
961 Options: utf8
962 No first char
963 Need char = 'z'
964
965 /(\x{100}(b(?2)c))?/DZ8
966 ------------------------------------------------------------------
967 Bra 0
968 Brazero
969 Bra 1
970 \x{100}
971 Bra 2
972 b
973 Once
974 Recurse
975 Ket
976 c
977 Ket
978 Ket
979 Ket
980 End
981 ------------------------------------------------------------------
982 Capturing subpattern count = 2
983 Options: utf8
984 No first char
985 No need char
986
987 /(\x{100}(b(?2)c)){0,2}/DZ8
988 ------------------------------------------------------------------
989 Bra 0
990 Brazero
991 Bra 0
992 Bra 1
993 \x{100}
994 Bra 2
995 b
996 Once
997 Recurse
998 Ket
999 c
1000 Ket
1001 Ket
1002 Brazero
1003 Bra 1
1004 \x{100}
1005 Bra 2
1006 b
1007 Once
1008 Recurse
1009 Ket
1010 c
1011 Ket
1012 Ket
1013 Ket
1014 Ket
1015 End
1016 ------------------------------------------------------------------
1017 Capturing subpattern count = 2
1018 Options: utf8
1019 No first char
1020 No need char
1021
1022 /(\x{100}(b(?1)c))?/DZ8
1023 ------------------------------------------------------------------
1024 Bra 0
1025 Brazero
1026 Bra 1
1027 \x{100}
1028 Bra 2
1029 b
1030 Once
1031 Recurse
1032 Ket
1033 c
1034 Ket
1035 Ket
1036 Ket
1037 End
1038 ------------------------------------------------------------------
1039 Capturing subpattern count = 2
1040 Options: utf8
1041 No first char
1042 No need char
1043
1044 /(\x{100}(b(?1)c)){0,2}/DZ8
1045 ------------------------------------------------------------------
1046 Bra 0
1047 Brazero
1048 Bra 0
1049 Bra 1
1050 \x{100}
1051 Bra 2
1052 b
1053 Once
1054 Recurse
1055 Ket
1056 c
1057 Ket
1058 Ket
1059 Brazero
1060 Bra 1
1061 \x{100}
1062 Bra 2
1063 b
1064 Once
1065 Recurse
1066 Ket
1067 c
1068 Ket
1069 Ket
1070 Ket
1071 Ket
1072 End
1073 ------------------------------------------------------------------
1074 Capturing subpattern count = 2
1075 Options: utf8
1076 No first char
1077 No need char
1078
1079 /\W/8
1080 A.B
1081 0: .
1082 A\x{100}B
1083 0: \x{100}
1084
1085 /\w/8
1086 \x{100}X
1087 0: X
1088
1089 /a\x{1234}b/P8
1090 a\x{1234}b
1091 0: a\x{1234}b
1092
1093 /^\ሴ/8DZ
1094 ------------------------------------------------------------------
1095 Bra 0
1096 ^
1097 \x{1234}
1098 Ket
1099 End
1100 ------------------------------------------------------------------
1101 Capturing subpattern count = 0
1102 Options: anchored utf8
1103 No first char
1104 No need char
1105
1106 /\777/I
1107 Failed: octal value is greater than \377 (not in UTF-8 mode) at offset 3
1108
1109 /\777/8I
1110 Capturing subpattern count = 0
1111 Options: utf8
1112 First char = 199
1113 Need char = 191
1114 \x{1ff}
1115 0: \x{1ff}
1116 \777
1117 0: \x{1ff}
1118
1119 /\x{100}*\d/8DZ
1120 ------------------------------------------------------------------
1121 Bra 0
1122 \x{100}*+
1123 \d
1124 Ket
1125 End
1126 ------------------------------------------------------------------
1127 Capturing subpattern count = 0
1128 Partial matching not supported
1129 Options: utf8
1130 No first char
1131 No need char
1132
1133 /\x{100}*\s/8DZ
1134 ------------------------------------------------------------------
1135 Bra 0
1136 \x{100}*+
1137 \s
1138 Ket
1139 End
1140 ------------------------------------------------------------------
1141 Capturing subpattern count = 0
1142 Partial matching not supported
1143 Options: utf8
1144 No first char
1145 No need char
1146
1147 /\x{100}*\w/8DZ
1148 ------------------------------------------------------------------
1149 Bra 0
1150 \x{100}*+
1151 \w
1152 Ket
1153 End
1154 ------------------------------------------------------------------
1155 Capturing subpattern count = 0
1156 Partial matching not supported
1157 Options: utf8
1158 No first char
1159 No need char
1160
1161 /\x{100}*\D/8DZ
1162 ------------------------------------------------------------------
1163 Bra 0
1164 \x{100}*
1165 \D
1166 Ket
1167 End
1168 ------------------------------------------------------------------
1169 Capturing subpattern count = 0
1170 Partial matching not supported
1171 Options: utf8
1172 No first char
1173 No need char
1174
1175 /\x{100}*\S/8DZ
1176 ------------------------------------------------------------------
1177 Bra 0
1178 \x{100}*
1179 \S
1180 Ket
1181 End
1182 ------------------------------------------------------------------
1183 Capturing subpattern count = 0
1184 Partial matching not supported
1185 Options: utf8
1186 No first char
1187 No need char
1188
1189 /\x{100}*\W/8DZ
1190 ------------------------------------------------------------------
1191 Bra 0
1192 \x{100}*
1193 \W
1194 Ket
1195 End
1196 ------------------------------------------------------------------
1197 Capturing subpattern count = 0
1198 Partial matching not supported
1199 Options: utf8
1200 No first char
1201 No need char
1202
1203 /\x{100}+\x{200}/8DZ
1204 ------------------------------------------------------------------
1205 Bra 0
1206 \x{100}++
1207 \x{200}
1208 Ket
1209 End
1210 ------------------------------------------------------------------
1211 Capturing subpattern count = 0
1212 Partial matching not supported
1213 Options: utf8
1214 First char = 196
1215 Need char = 128
1216
1217 /\x{100}+X/8DZ
1218 ------------------------------------------------------------------
1219 Bra 0
1220 \x{100}++
1221 X
1222 Ket
1223 End
1224 ------------------------------------------------------------------
1225 Capturing subpattern count = 0
1226 Partial matching not supported
1227 Options: utf8
1228 First char = 196
1229 Need char = 'X'
1230
1231 /X+\x{200}/8DZ
1232 ------------------------------------------------------------------
1233 Bra 0
1234 X++
1235 \x{200}
1236 Ket
1237 End
1238 ------------------------------------------------------------------
1239 Capturing subpattern count = 0
1240 Partial matching not supported
1241 Options: utf8
1242 First char = 'X'
1243 Need char = 128
1244
1245 /()()()()()()()()()()
1246 ()()()()()()()()()()
1247 ()()()()()()()()()()
1248 ()()()()()()()()()()
1249 A (x) (?41) B/8x
1250 AxxB
1251 Matched, but too many substrings
1252 0: AxxB
1253 1:
1254 2:
1255 3:
1256 4:
1257 5:
1258 6:
1259 7:
1260 8:
1261 9:
1262 10:
1263 11:
1264 12:
1265 13:
1266 14:
1267
1268 /^[\x{100}\E-\Q\E\x{150}]/B8
1269 ------------------------------------------------------------------
1270 0 14 Bra 0
1271 3 ^
1272 4 [\x{100}-\x{150}]
1273 14 14 Ket
1274 17 End
1275 ------------------------------------------------------------------
1276
1277 /^[\QĀ\E-\QŐ\E]/B8
1278 ------------------------------------------------------------------
1279 0 14 Bra 0
1280 3 ^
1281 4 [\x{100}-\x{150}]
1282 14 14 Ket
1283 17 End
1284 ------------------------------------------------------------------
1285
1286 /^[\QĀ\E-\QŐ\E/B8
1287 Failed: missing terminating ] for character class at offset 15
1288
1289 /^abc./mgx8<any>
1290 abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x{0085}abc7 \x{2028}abc8 \x{2029}abc9 JUNK
1291 0: abc1
1292 0: abc2
1293 0: abc3
1294 0: abc4
1295 0: abc5
1296 0: abc6
1297 0: abc7
1298 0: abc8
1299 0: abc9
1300
1301 /abc.$/mgx8<any>
1302 abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x{0085} abc7\x{2028} abc8\x{2029} abc9
1303 0: abc1
1304 0: abc2
1305 0: abc3
1306 0: abc4
1307 0: abc5
1308 0: abc6
1309 0: abc7
1310 0: abc8
1311 0: abc9
1312
1313 /^a\Rb/8
1314 a\nb
1315 0: a\x{0a}b
1316 a\rb
1317 0: a\x{0d}b
1318 a\r\nb
1319 0: a\x{0d}\x{0a}b
1320 a\x0bb
1321 0: a\x{0b}b
1322 a\x0cb
1323 0: a\x{0c}b
1324 a\x{85}b
1325 0: a\x{85}b
1326 a\x{2028}b
1327 0: a\x{2028}b
1328 a\x{2029}b
1329 0: a\x{2029}b
1330 ** Failers
1331 No match
1332 a\n\rb
1333 No match
1334
1335 /^a\R*b/8
1336 ab
1337 0: ab
1338 a\nb
1339 0: a\x{0a}b
1340 a\rb
1341 0: a\x{0d}b
1342 a\r\nb
1343 0: a\x{0d}\x{0a}b
1344 a\x0bb
1345 0: a\x{0b}b
1346 a\x0c\x{2028}\x{2029}b
1347 0: a\x{0c}\x{2028}\x{2029}b
1348 a\x{85}b
1349 0: a\x{85}b
1350 a\n\rb
1351 0: a\x{0a}\x{0d}b
1352 a\n\r\x{85}\x0cb
1353 0: a\x{0a}\x{0d}\x{85}\x{0c}b
1354
1355 /^a\R+b/8
1356 a\nb
1357 0: a\x{0a}b
1358 a\rb
1359 0: a\x{0d}b
1360 a\r\nb
1361 0: a\x{0d}\x{0a}b
1362 a\x0bb
1363 0: a\x{0b}b
1364 a\x0c\x{2028}\x{2029}b
1365 0: a\x{0c}\x{2028}\x{2029}b
1366 a\x{85}b
1367 0: a\x{85}b
1368 a\n\rb
1369 0: a\x{0a}\x{0d}b
1370 a\n\r\x{85}\x0cb
1371 0: a\x{0a}\x{0d}\x{85}\x{0c}b
1372 ** Failers
1373 No match
1374 ab
1375 No match
1376
1377 /^a\R{1,3}b/8
1378 a\nb
1379 0: a\x{0a}b
1380 a\n\rb
1381 0: a\x{0a}\x{0d}b
1382 a\n\r\x{85}b
1383 0: a\x{0a}\x{0d}\x{85}b
1384 a\r\n\r\nb
1385 0: a\x{0d}\x{0a}\x{0d}\x{0a}b
1386 a\r\n\r\n\r\nb
1387 0: a\x{0d}\x{0a}\x{0d}\x{0a}\x{0d}\x{0a}b
1388 a\n\r\n\rb
1389 0: a\x{0a}\x{0d}\x{0a}\x{0d}b
1390 a\n\n\r\nb
1391 0: a\x{0a}\x{0a}\x{0d}\x{0a}b
1392 ** Failers
1393 No match
1394 a\n\n\n\rb
1395 No match
1396 a\r
1397 No match
1398
1399 / End of testinput5 /

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5