/[pcre]/code/branches/pcre16/testdata/testoutput5
ViewVC logotype

Contents of /code/branches/pcre16/testdata/testoutput5

Parent Directory Parent Directory | Revision Log Revision Log


Revision 801 - (show annotations)
Mon Dec 12 16:23:37 2011 UTC (8 years, 5 months ago) by ph10
File size: 49608 byte(s)
Merge changes from trunk r755 to r800 into the 16-bit branch.
1 /-- This set of tests checks the API, internals, and non-Perl stuff for UTF-8
2 support, excluding Unicode properties. --/
3
4 /\x{100}/8DZ
5 ------------------------------------------------------------------
6 Bra
7 \x{100}
8 Ket
9 End
10 ------------------------------------------------------------------
11 Capturing subpattern count = 0
12 Options: utf8
13 First char = 196
14 Need char = 128
15
16 /\x{1000}/8DZ
17 ------------------------------------------------------------------
18 Bra
19 \x{1000}
20 Ket
21 End
22 ------------------------------------------------------------------
23 Capturing subpattern count = 0
24 Options: utf8
25 First char = 225
26 Need char = 128
27
28 /\x{10000}/8DZ
29 ------------------------------------------------------------------
30 Bra
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}/8DZ
41 ------------------------------------------------------------------
42 Bra
43 \x{100000}
44 Ket
45 End
46 ------------------------------------------------------------------
47 Capturing subpattern count = 0
48 Options: utf8
49 First char = 244
50 Need char = 128
51
52 /\x{10ffff}/8DZ
53 ------------------------------------------------------------------
54 Bra
55 \x{10ffff}
56 Ket
57 End
58 ------------------------------------------------------------------
59 Capturing subpattern count = 0
60 Options: utf8
61 First char = 244
62 Need char = 191
63
64 /\x{110000}/8DZ
65 Failed: character value in \x{...} sequence is too large at offset 9
66
67 /[\x{ff}]/8DZ
68 ------------------------------------------------------------------
69 Bra
70 \x{ff}
71 Ket
72 End
73 ------------------------------------------------------------------
74 Capturing subpattern count = 0
75 Options: utf8
76 First char = 195
77 Need char = 191
78
79 /[\x{100}]/8DZ
80 ------------------------------------------------------------------
81 Bra
82 \x{100}
83 Ket
84 End
85 ------------------------------------------------------------------
86 Capturing subpattern count = 0
87 Options: utf8
88 First char = 196
89 Need char = 128
90
91 /\x{ffffffff}/8
92 Failed: character value in \x{...} sequence is too large at offset 11
93
94 /\x{100000000}/8
95 Failed: character value in \x{...} sequence is too large at offset 12
96
97 /\x{d800}/8
98 Failed: disallowed UTF-8/16 code point (>= 0xd800 && <= 0xdfff) at offset 7
99
100 /\x{dfff}/8
101 Failed: disallowed UTF-8/16 code point (>= 0xd800 && <= 0xdfff) at offset 7
102
103 /\x{d7ff}/8
104
105 /\x{e000}/8
106
107 /^\x{100}a\x{1234}/8
108 \x{100}a\x{1234}bcd
109 0: \x{100}a\x{1234}
110
111 /\x80/8DZ
112 ------------------------------------------------------------------
113 Bra
114 \x{80}
115 Ket
116 End
117 ------------------------------------------------------------------
118 Capturing subpattern count = 0
119 Options: utf8
120 First char = 194
121 Need char = 128
122
123 /\xff/8DZ
124 ------------------------------------------------------------------
125 Bra
126 \x{ff}
127 Ket
128 End
129 ------------------------------------------------------------------
130 Capturing subpattern count = 0
131 Options: utf8
132 First char = 195
133 Need char = 191
134
135 /\x{0041}\x{2262}\x{0391}\x{002e}/DZ8
136 ------------------------------------------------------------------
137 Bra
138 A\x{2262}\x{391}.
139 Ket
140 End
141 ------------------------------------------------------------------
142 Capturing subpattern count = 0
143 Options: utf8
144 First char = 'A'
145 Need char = '.'
146 \x{0041}\x{2262}\x{0391}\x{002e}
147 0: A\x{2262}\x{391}.
148
149 /\x{D55c}\x{ad6d}\x{C5B4}/DZ8
150 ------------------------------------------------------------------
151 Bra
152 \x{d55c}\x{ad6d}\x{c5b4}
153 Ket
154 End
155 ------------------------------------------------------------------
156 Capturing subpattern count = 0
157 Options: utf8
158 First char = 237
159 Need char = 180
160 \x{D55c}\x{ad6d}\x{C5B4}
161 0: \x{d55c}\x{ad6d}\x{c5b4}
162
163 /\x{65e5}\x{672c}\x{8a9e}/DZ8
164 ------------------------------------------------------------------
165 Bra
166 \x{65e5}\x{672c}\x{8a9e}
167 Ket
168 End
169 ------------------------------------------------------------------
170 Capturing subpattern count = 0
171 Options: utf8
172 First char = 230
173 Need char = 158
174 \x{65e5}\x{672c}\x{8a9e}
175 0: \x{65e5}\x{672c}\x{8a9e}
176
177 /\x{80}/DZ8
178 ------------------------------------------------------------------
179 Bra
180 \x{80}
181 Ket
182 End
183 ------------------------------------------------------------------
184 Capturing subpattern count = 0
185 Options: utf8
186 First char = 194
187 Need char = 128
188
189 /\x{084}/DZ8
190 ------------------------------------------------------------------
191 Bra
192 \x{84}
193 Ket
194 End
195 ------------------------------------------------------------------
196 Capturing subpattern count = 0
197 Options: utf8
198 First char = 194
199 Need char = 132
200
201 /\x{104}/DZ8
202 ------------------------------------------------------------------
203 Bra
204 \x{104}
205 Ket
206 End
207 ------------------------------------------------------------------
208 Capturing subpattern count = 0
209 Options: utf8
210 First char = 196
211 Need char = 132
212
213 /\x{861}/DZ8
214 ------------------------------------------------------------------
215 Bra
216 \x{861}
217 Ket
218 End
219 ------------------------------------------------------------------
220 Capturing subpattern count = 0
221 Options: utf8
222 First char = 224
223 Need char = 161
224
225 /\x{212ab}/DZ8
226 ------------------------------------------------------------------
227 Bra
228 \x{212ab}
229 Ket
230 End
231 ------------------------------------------------------------------
232 Capturing subpattern count = 0
233 Options: utf8
234 First char = 240
235 Need char = 171
236
237 /.{3,5}X/DZ8
238 ------------------------------------------------------------------
239 Bra
240 Any{3}
241 Any{0,2}
242 X
243 Ket
244 End
245 ------------------------------------------------------------------
246 Capturing subpattern count = 0
247 Options: utf8
248 No first char
249 Need char = 'X'
250 \x{212ab}\x{212ab}\x{212ab}\x{861}X
251 0: \x{212ab}\x{212ab}\x{212ab}\x{861}X
252
253
254 /.{3,5}?/DZ8
255 ------------------------------------------------------------------
256 Bra
257 Any{3}
258 Any{0,2}?
259 Ket
260 End
261 ------------------------------------------------------------------
262 Capturing subpattern count = 0
263 Options: utf8
264 No first char
265 No need char
266 \x{212ab}\x{212ab}\x{212ab}\x{861}
267 0: \x{212ab}\x{212ab}\x{212ab}
268
269 /(?<=\C)X/8
270 Failed: \C not allowed in lookbehind assertion at offset 6
271
272 /-- This one is here not because it's different to Perl, but because the way
273 the captured single-byte is displayed. (In Perl it becomes a character, and you
274 can't tell the difference.) --/
275
276 /X(\C)(.*)/8
277 X\x{1234}
278 0: X\x{1234}
279 1: \xe1
280 2: \x88\xb4
281 X\nabc
282 0: X\x{0a}abc
283 1: \x{0a}
284 2: abc
285
286 /-- This one is here because Perl gives out a grumbly error message (quite
287 correctly, but that messes up comparisons). --/
288
289 /a\Cb/8
290 *** Failers
291 No match
292 a\x{100}b
293 No match
294
295 /^[ab]/8DZ
296 ------------------------------------------------------------------
297 Bra
298 ^
299 [ab]
300 Ket
301 End
302 ------------------------------------------------------------------
303 Capturing subpattern count = 0
304 Options: anchored utf8
305 No first char
306 No need char
307 bar
308 0: b
309 *** Failers
310 No match
311 c
312 No match
313 \x{ff}
314 No match
315 \x{100}
316 No match
317
318 /^[^ab]/8DZ
319 ------------------------------------------------------------------
320 Bra
321 ^
322 [\x00-`c-\xff] (neg)
323 Ket
324 End
325 ------------------------------------------------------------------
326 Capturing subpattern count = 0
327 Options: anchored utf8
328 No first char
329 No need char
330 c
331 0: c
332 \x{ff}
333 0: \x{ff}
334 \x{100}
335 0: \x{100}
336 *** Failers
337 0: *
338 aaa
339 No match
340
341 /[^ab\xC0-\xF0]/8SDZ
342 ------------------------------------------------------------------
343 Bra
344 [\x00-`c-\xbf\xf1-\xff] (neg)
345 Ket
346 End
347 ------------------------------------------------------------------
348 Capturing subpattern count = 0
349 Options: utf8
350 No first char
351 No need char
352 Subject length lower bound = 1
353 Starting byte set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a
354 \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19
355 \x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4
356 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
357 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
358 \xc2 \xc3 \xc4 \xc5 \xc6 \xc7 \xc8 \xc9 \xca \xcb \xcc \xcd \xce \xcf \xd0
359 \xd1 \xd2 \xd3 \xd4 \xd5 \xd6 \xd7 \xd8 \xd9 \xda \xdb \xdc \xdd \xde \xdf
360 \xe0 \xe1 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8 \xe9 \xea \xeb \xec \xed \xee
361 \xef \xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7 \xf8 \xf9 \xfa \xfb \xfc \xfd
362 \xfe \xff
363 \x{f1}
364 0: \x{f1}
365 \x{bf}
366 0: \x{bf}
367 \x{100}
368 0: \x{100}
369 \x{1000}
370 0: \x{1000}
371 *** Failers
372 0: *
373 \x{c0}
374 No match
375 \x{f0}
376 No match
377
378 /Ā{3,4}/8SDZ
379 ------------------------------------------------------------------
380 Bra
381 \x{100}{3}
382 \x{100}?
383 Ket
384 End
385 ------------------------------------------------------------------
386 Capturing subpattern count = 0
387 Options: utf8
388 First char = 196
389 Need char = 128
390 Subject length lower bound = 3
391 No set of starting bytes
392 \x{100}\x{100}\x{100}\x{100\x{100}
393 0: \x{100}\x{100}\x{100}
394
395 /(\x{100}+|x)/8SDZ
396 ------------------------------------------------------------------
397 Bra
398 CBra 1
399 \x{100}+
400 Alt
401 x
402 Ket
403 Ket
404 End
405 ------------------------------------------------------------------
406 Capturing subpattern count = 1
407 Options: utf8
408 No first char
409 No need char
410 Subject length lower bound = 1
411 Starting byte set: x \xc4
412
413 /(\x{100}*a|x)/8SDZ
414 ------------------------------------------------------------------
415 Bra
416 CBra 1
417 \x{100}*+
418 a
419 Alt
420 x
421 Ket
422 Ket
423 End
424 ------------------------------------------------------------------
425 Capturing subpattern count = 1
426 Options: utf8
427 No first char
428 No need char
429 Subject length lower bound = 1
430 Starting byte set: a x \xc4
431
432 /(\x{100}{0,2}a|x)/8SDZ
433 ------------------------------------------------------------------
434 Bra
435 CBra 1
436 \x{100}{0,2}
437 a
438 Alt
439 x
440 Ket
441 Ket
442 End
443 ------------------------------------------------------------------
444 Capturing subpattern count = 1
445 Options: utf8
446 No first char
447 No need char
448 Subject length lower bound = 1
449 Starting byte set: a x \xc4
450
451 /(\x{100}{1,2}a|x)/8SDZ
452 ------------------------------------------------------------------
453 Bra
454 CBra 1
455 \x{100}
456 \x{100}{0,1}
457 a
458 Alt
459 x
460 Ket
461 Ket
462 End
463 ------------------------------------------------------------------
464 Capturing subpattern count = 1
465 Options: utf8
466 No first char
467 No need char
468 Subject length lower bound = 1
469 Starting byte set: x \xc4
470
471 /\x{100}*(\d+|"(?1)")/8
472 1234
473 0: 1234
474 1: 1234
475 "1234"
476 0: "1234"
477 1: "1234"
478 \x{100}1234
479 0: \x{100}1234
480 1: 1234
481 "\x{100}1234"
482 0: \x{100}1234
483 1: 1234
484 \x{100}\x{100}12ab
485 0: \x{100}\x{100}12
486 1: 12
487 \x{100}\x{100}"12"
488 0: \x{100}\x{100}"12"
489 1: "12"
490 *** Failers
491 No match
492 \x{100}\x{100}abcd
493 No match
494
495 /\x{100}/8DZ
496 ------------------------------------------------------------------
497 Bra
498 \x{100}
499 Ket
500 End
501 ------------------------------------------------------------------
502 Capturing subpattern count = 0
503 Options: utf8
504 First char = 196
505 Need char = 128
506
507 /\x{100}*/8DZ
508 ------------------------------------------------------------------
509 Bra
510 \x{100}*
511 Ket
512 End
513 ------------------------------------------------------------------
514 Capturing subpattern count = 0
515 Options: utf8
516 No first char
517 No need char
518
519 /a\x{100}*/8DZ
520 ------------------------------------------------------------------
521 Bra
522 a
523 \x{100}*
524 Ket
525 End
526 ------------------------------------------------------------------
527 Capturing subpattern count = 0
528 Options: utf8
529 First char = 'a'
530 No need char
531
532 /ab\x{100}*/8DZ
533 ------------------------------------------------------------------
534 Bra
535 ab
536 \x{100}*
537 Ket
538 End
539 ------------------------------------------------------------------
540 Capturing subpattern count = 0
541 Options: utf8
542 First char = 'a'
543 Need char = 'b'
544
545 /a\x{100}\x{101}*/8DZ
546 ------------------------------------------------------------------
547 Bra
548 a\x{100}
549 \x{101}*
550 Ket
551 End
552 ------------------------------------------------------------------
553 Capturing subpattern count = 0
554 Options: utf8
555 First char = 'a'
556 Need char = 128
557
558 /a\x{100}\x{101}+/8DZ
559 ------------------------------------------------------------------
560 Bra
561 a\x{100}
562 \x{101}+
563 Ket
564 End
565 ------------------------------------------------------------------
566 Capturing subpattern count = 0
567 Options: utf8
568 First char = 'a'
569 Need char = 129
570
571 /\x{100}*A/8DZ
572 ------------------------------------------------------------------
573 Bra
574 \x{100}*+
575 A
576 Ket
577 End
578 ------------------------------------------------------------------
579 Capturing subpattern count = 0
580 Options: utf8
581 No first char
582 Need char = 'A'
583 A
584 0: A
585
586 /\x{100}*\d(?R)/8DZ
587 ------------------------------------------------------------------
588 Bra
589 \x{100}*+
590 \d
591 Recurse
592 Ket
593 End
594 ------------------------------------------------------------------
595 Capturing subpattern count = 0
596 Options: utf8
597 No first char
598 No need char
599
600 /[^\x{c4}]/DZ
601 ------------------------------------------------------------------
602 Bra
603 [^\xc4]
604 Ket
605 End
606 ------------------------------------------------------------------
607 Capturing subpattern count = 0
608 No options
609 No first char
610 No need char
611
612 /[^\x{c4}]/8DZ
613 ------------------------------------------------------------------
614 Bra
615 [\x00-\xc3\xc5-\xff] (neg)
616 Ket
617 End
618 ------------------------------------------------------------------
619 Capturing subpattern count = 0
620 Options: utf8
621 No first char
622 No need char
623
624 /[\x{100}]/8DZ
625 ------------------------------------------------------------------
626 Bra
627 \x{100}
628 Ket
629 End
630 ------------------------------------------------------------------
631 Capturing subpattern count = 0
632 Options: utf8
633 First char = 196
634 Need char = 128
635 \x{100}
636 0: \x{100}
637 Z\x{100}
638 0: \x{100}
639 \x{100}Z
640 0: \x{100}
641 *** Failers
642 No match
643
644 /[Z\x{100}]/8DZ
645 ------------------------------------------------------------------
646 Bra
647 [Z\x{100}]
648 Ket
649 End
650 ------------------------------------------------------------------
651 Capturing subpattern count = 0
652 Options: utf8
653 No first char
654 No need char
655 Z\x{100}
656 0: Z
657 \x{100}
658 0: \x{100}
659 \x{100}Z
660 0: \x{100}
661 *** Failers
662 No match
663
664 /[\x{200}-\x{100}]/8
665 Failed: range out of order in character class at offset 15
666
667 /[Ā-Ą]/8
668 \x{100}
669 0: \x{100}
670 \x{104}
671 0: \x{104}
672 *** Failers
673 No match
674 \x{105}
675 No match
676 \x{ff}
677 No match
678
679 /[z-\x{100}]/8DZ
680 ------------------------------------------------------------------
681 Bra
682 [z-\x{100}]
683 Ket
684 End
685 ------------------------------------------------------------------
686 Capturing subpattern count = 0
687 Options: utf8
688 No first char
689 No need char
690
691 /[z\Qa-d]Ā\E]/8DZ
692 ------------------------------------------------------------------
693 Bra
694 [\-\]adz\x{100}]
695 Ket
696 End
697 ------------------------------------------------------------------
698 Capturing subpattern count = 0
699 Options: utf8
700 No first char
701 No need char
702 \x{100}
703 0: \x{100}
704 Ā
705 0: \x{100}
706
707 /[\xFF]/DZ
708 ------------------------------------------------------------------
709 Bra
710 \xff
711 Ket
712 End
713 ------------------------------------------------------------------
714 Capturing subpattern count = 0
715 No options
716 First char = 255
717 No need char
718 >\xff<
719 0: \xff
720
721 /[\xff]/DZ8
722 ------------------------------------------------------------------
723 Bra
724 \x{ff}
725 Ket
726 End
727 ------------------------------------------------------------------
728 Capturing subpattern count = 0
729 Options: utf8
730 First char = 195
731 Need char = 191
732 >\x{ff}<
733 0: \x{ff}
734
735 /[^\xFF]/DZ
736 ------------------------------------------------------------------
737 Bra
738 [^\xff]
739 Ket
740 End
741 ------------------------------------------------------------------
742 Capturing subpattern count = 0
743 No options
744 No first char
745 No need char
746
747 /[^\xff]/8DZ
748 ------------------------------------------------------------------
749 Bra
750 [\x00-\xfe] (neg)
751 Ket
752 End
753 ------------------------------------------------------------------
754 Capturing subpattern count = 0
755 Options: utf8
756 No first char
757 No need char
758
759 /[Ä-Ü]/8
760 Ö # Matches without Study
761 0: \x{d6}
762 \x{d6}
763 0: \x{d6}
764
765 /[Ä-Ü]/8S
766 Ö <-- Same with Study
767 0: \x{d6}
768 \x{d6}
769 0: \x{d6}
770
771 /[\x{c4}-\x{dc}]/8
772 Ö # Matches without Study
773 0: \x{d6}
774 \x{d6}
775 0: \x{d6}
776
777 /[\x{c4}-\x{dc}]/8S
778 Ö <-- Same with Study
779 0: \x{d6}
780 \x{d6}
781 0: \x{d6}
782
783 /[]/8
784 Failed: invalid UTF-8 string at offset 1
785
786 //8
787 Failed: invalid UTF-8 string at offset 0
788
789 /xxx/8
790 Failed: invalid UTF-8 string at offset 0
791
792 /xxx/8?DZSS
793 ------------------------------------------------------------------
794 Bra
795 \X{c0}\X{c0}\X{c0}xxx
796 Ket
797 End
798 ------------------------------------------------------------------
799 Capturing subpattern count = 0
800 Options: utf8 no_utf8_check
801 First char = 195
802 Need char = 'x'
803
804 /abc/8
805 ]
806 Error -10 (bad UTF-8 string) offset=0 reason=6
807
808 Error -10 (bad UTF-8 string) offset=0 reason=1
809
810 Error -10 (bad UTF-8 string) offset=0 reason=6
811 \?
812 No match
813 \xe1\x88
814 Error -10 (bad UTF-8 string) offset=0 reason=1
815 \P\xe1\x88
816 Error -10 (bad UTF-8 string) offset=0 reason=1
817 \P\P\xe1\x88
818 Error -25 (short UTF-8 string) offset=0 reason=1
819 XX\xea
820 Error -10 (bad UTF-8 string) offset=2 reason=2
821 \O0XX\xea
822 Error -10 (bad UTF-8 string)
823 \O1XX\xea
824 Error -10 (bad UTF-8 string)
825 \O2XX\xea
826 Error -10 (bad UTF-8 string) offset=2 reason=2
827 XX\xf1
828 Error -10 (bad UTF-8 string) offset=2 reason=3
829 XX\xf8
830 Error -10 (bad UTF-8 string) offset=2 reason=4
831 XX\xfc
832 Error -10 (bad UTF-8 string) offset=2 reason=5
833 ZZ\xea\xaf\x20YY
834 Error -10 (bad UTF-8 string) offset=2 reason=7
835 ZZ\xfd\xbf\xbf\x2f\xbf\xbfYY
836 Error -10 (bad UTF-8 string) offset=2 reason=8
837 ZZ\xfd\xbf\xbf\xbf\x2f\xbfYY
838 Error -10 (bad UTF-8 string) offset=2 reason=9
839 ZZ\xfd\xbf\xbf\xbf\xbf\x2fYY
840 Error -10 (bad UTF-8 string) offset=2 reason=10
841 ZZ\xffYY
842 Error -10 (bad UTF-8 string) offset=2 reason=21
843 ZZ\xfeYY
844 Error -10 (bad UTF-8 string) offset=2 reason=21
845
846 /anything/8
847 \xc0\x80
848 Error -10 (bad UTF-8 string) offset=0 reason=15
849 \xc1\x8f
850 Error -10 (bad UTF-8 string) offset=0 reason=15
851 \xe0\x9f\x80
852 Error -10 (bad UTF-8 string) offset=0 reason=16
853 \xf0\x8f\x80\x80
854 Error -10 (bad UTF-8 string) offset=0 reason=17
855 \xf8\x87\x80\x80\x80
856 Error -10 (bad UTF-8 string) offset=0 reason=18
857 \xfc\x83\x80\x80\x80\x80
858 Error -10 (bad UTF-8 string) offset=0 reason=19
859 \xfe\x80\x80\x80\x80\x80
860 Error -10 (bad UTF-8 string) offset=0 reason=21
861 \xff\x80\x80\x80\x80\x80
862 Error -10 (bad UTF-8 string) offset=0 reason=21
863 \xc3\x8f
864 No match
865 \xe0\xaf\x80
866 No match
867 \xe1\x80\x80
868 No match
869 \xf0\x9f\x80\x80
870 No match
871 \xf1\x8f\x80\x80
872 No match
873 \xf8\x88\x80\x80\x80
874 Error -10 (bad UTF-8 string) offset=0 reason=11
875 \xf9\x87\x80\x80\x80
876 Error -10 (bad UTF-8 string) offset=0 reason=11
877 \xfc\x84\x80\x80\x80\x80
878 Error -10 (bad UTF-8 string) offset=0 reason=12
879 \xfd\x83\x80\x80\x80\x80
880 Error -10 (bad UTF-8 string) offset=0 reason=12
881 \?\xf8\x88\x80\x80\x80
882 No match
883 \?\xf9\x87\x80\x80\x80
884 No match
885 \?\xfc\x84\x80\x80\x80\x80
886 No match
887 \?\xfd\x83\x80\x80\x80\x80
888 No match
889
890 /\x{100}abc(xyz(?1))/8DZ
891 ------------------------------------------------------------------
892 Bra
893 \x{100}abc
894 CBra 1
895 xyz
896 Recurse
897 Ket
898 Ket
899 End
900 ------------------------------------------------------------------
901 Capturing subpattern count = 1
902 Options: utf8
903 First char = 196
904 Need char = 'z'
905
906 /[^\x{100}]abc(xyz(?1))/8DZ
907 ------------------------------------------------------------------
908 Bra
909 [^\x{100}]
910 abc
911 CBra 1
912 xyz
913 Recurse
914 Ket
915 Ket
916 End
917 ------------------------------------------------------------------
918 Capturing subpattern count = 1
919 Options: utf8
920 No first char
921 Need char = 'z'
922
923 /[ab\x{100}]abc(xyz(?1))/8DZ
924 ------------------------------------------------------------------
925 Bra
926 [ab\x{100}]
927 abc
928 CBra 1
929 xyz
930 Recurse
931 Ket
932 Ket
933 End
934 ------------------------------------------------------------------
935 Capturing subpattern count = 1
936 Options: utf8
937 No first char
938 Need char = 'z'
939
940 /(\x{100}(b(?2)c))?/DZ8
941 ------------------------------------------------------------------
942 Bra
943 Brazero
944 CBra 1
945 \x{100}
946 CBra 2
947 b
948 Recurse
949 c
950 Ket
951 Ket
952 Ket
953 End
954 ------------------------------------------------------------------
955 Capturing subpattern count = 2
956 Options: utf8
957 No first char
958 No need char
959
960 /(\x{100}(b(?2)c)){0,2}/DZ8
961 ------------------------------------------------------------------
962 Bra
963 Brazero
964 Bra
965 CBra 1
966 \x{100}
967 CBra 2
968 b
969 Recurse
970 c
971 Ket
972 Ket
973 Brazero
974 CBra 1
975 \x{100}
976 CBra 2
977 b
978 Recurse
979 c
980 Ket
981 Ket
982 Ket
983 Ket
984 End
985 ------------------------------------------------------------------
986 Capturing subpattern count = 2
987 Options: utf8
988 No first char
989 No need char
990
991 /(\x{100}(b(?1)c))?/DZ8
992 ------------------------------------------------------------------
993 Bra
994 Brazero
995 CBra 1
996 \x{100}
997 CBra 2
998 b
999 Recurse
1000 c
1001 Ket
1002 Ket
1003 Ket
1004 End
1005 ------------------------------------------------------------------
1006 Capturing subpattern count = 2
1007 Options: utf8
1008 No first char
1009 No need char
1010
1011 /(\x{100}(b(?1)c)){0,2}/DZ8
1012 ------------------------------------------------------------------
1013 Bra
1014 Brazero
1015 Bra
1016 CBra 1
1017 \x{100}
1018 CBra 2
1019 b
1020 Recurse
1021 c
1022 Ket
1023 Ket
1024 Brazero
1025 CBra 1
1026 \x{100}
1027 CBra 2
1028 b
1029 Recurse
1030 c
1031 Ket
1032 Ket
1033 Ket
1034 Ket
1035 End
1036 ------------------------------------------------------------------
1037 Capturing subpattern count = 2
1038 Options: utf8
1039 No first char
1040 No need char
1041
1042 /\W/8
1043 A.B
1044 0: .
1045 A\x{100}B
1046 0: \x{100}
1047
1048 /\w/8
1049 \x{100}X
1050 0: X
1051
1052 /a\x{1234}b/P8
1053 a\x{1234}b
1054 0: a\x{1234}b
1055
1056 /^\ሴ/8DZ
1057 ------------------------------------------------------------------
1058 Bra
1059 ^
1060 \x{1234}
1061 Ket
1062 End
1063 ------------------------------------------------------------------
1064 Capturing subpattern count = 0
1065 Options: anchored utf8
1066 No first char
1067 No need char
1068
1069 /\777/I
1070 Failed: octal value is greater than \377 (not in UTF-8 mode) at offset 3
1071
1072 /\777/8I
1073 Capturing subpattern count = 0
1074 Options: utf8
1075 First char = 199
1076 Need char = 191
1077 \x{1ff}
1078 0: \x{1ff}
1079 \777
1080 0: \x{1ff}
1081
1082 /\x{100}*\d/8DZ
1083 ------------------------------------------------------------------
1084 Bra
1085 \x{100}*+
1086 \d
1087 Ket
1088 End
1089 ------------------------------------------------------------------
1090 Capturing subpattern count = 0
1091 Options: utf8
1092 No first char
1093 No need char
1094
1095 /\x{100}*\s/8DZ
1096 ------------------------------------------------------------------
1097 Bra
1098 \x{100}*+
1099 \s
1100 Ket
1101 End
1102 ------------------------------------------------------------------
1103 Capturing subpattern count = 0
1104 Options: utf8
1105 No first char
1106 No need char
1107
1108 /\x{100}*\w/8DZ
1109 ------------------------------------------------------------------
1110 Bra
1111 \x{100}*+
1112 \w
1113 Ket
1114 End
1115 ------------------------------------------------------------------
1116 Capturing subpattern count = 0
1117 Options: utf8
1118 No first char
1119 No need char
1120
1121 /\x{100}*\D/8DZ
1122 ------------------------------------------------------------------
1123 Bra
1124 \x{100}*
1125 \D
1126 Ket
1127 End
1128 ------------------------------------------------------------------
1129 Capturing subpattern count = 0
1130 Options: utf8
1131 No first char
1132 No need char
1133
1134 /\x{100}*\S/8DZ
1135 ------------------------------------------------------------------
1136 Bra
1137 \x{100}*
1138 \S
1139 Ket
1140 End
1141 ------------------------------------------------------------------
1142 Capturing subpattern count = 0
1143 Options: utf8
1144 No first char
1145 No need char
1146
1147 /\x{100}*\W/8DZ
1148 ------------------------------------------------------------------
1149 Bra
1150 \x{100}*
1151 \W
1152 Ket
1153 End
1154 ------------------------------------------------------------------
1155 Capturing subpattern count = 0
1156 Options: utf8
1157 No first char
1158 No need char
1159
1160 /\x{100}+\x{200}/8DZ
1161 ------------------------------------------------------------------
1162 Bra
1163 \x{100}++
1164 \x{200}
1165 Ket
1166 End
1167 ------------------------------------------------------------------
1168 Capturing subpattern count = 0
1169 Options: utf8
1170 First char = 196
1171 Need char = 128
1172
1173 /\x{100}+X/8DZ
1174 ------------------------------------------------------------------
1175 Bra
1176 \x{100}++
1177 X
1178 Ket
1179 End
1180 ------------------------------------------------------------------
1181 Capturing subpattern count = 0
1182 Options: utf8
1183 First char = 196
1184 Need char = 'X'
1185
1186 /X+\x{200}/8DZ
1187 ------------------------------------------------------------------
1188 Bra
1189 X++
1190 \x{200}
1191 Ket
1192 End
1193 ------------------------------------------------------------------
1194 Capturing subpattern count = 0
1195 Options: utf8
1196 First char = 'X'
1197 Need char = 128
1198
1199 /()()()()()()()()()()
1200 ()()()()()()()()()()
1201 ()()()()()()()()()()
1202 ()()()()()()()()()()
1203 A (x) (?41) B/8x
1204 AxxB
1205 Matched, but too many substrings
1206 0: AxxB
1207 1:
1208 2:
1209 3:
1210 4:
1211 5:
1212 6:
1213 7:
1214 8:
1215 9:
1216 10:
1217 11:
1218 12:
1219 13:
1220 14:
1221
1222 /^[\x{100}\E-\Q\E\x{150}]/BZ8
1223 ------------------------------------------------------------------
1224 Bra
1225 ^
1226 [\x{100}-\x{150}]
1227 Ket
1228 End
1229 ------------------------------------------------------------------
1230
1231 /^[\QĀ\E-\QŐ\E]/BZ8
1232 ------------------------------------------------------------------
1233 Bra
1234 ^
1235 [\x{100}-\x{150}]
1236 Ket
1237 End
1238 ------------------------------------------------------------------
1239
1240 /^[\QĀ\E-\QŐ\E/BZ8
1241 Failed: missing terminating ] for character class at offset 15
1242
1243 /^abc./mgx8<any>
1244 abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x{0085}abc7 \x{2028}abc8 \x{2029}abc9 JUNK
1245 0: abc1
1246 0: abc2
1247 0: abc3
1248 0: abc4
1249 0: abc5
1250 0: abc6
1251 0: abc7
1252 0: abc8
1253 0: abc9
1254
1255 /abc.$/mgx8<any>
1256 abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x{0085} abc7\x{2028} abc8\x{2029} abc9
1257 0: abc1
1258 0: abc2
1259 0: abc3
1260 0: abc4
1261 0: abc5
1262 0: abc6
1263 0: abc7
1264 0: abc8
1265 0: abc9
1266
1267 /^a\Rb/8<bsr_unicode>
1268 a\nb
1269 0: a\x{0a}b
1270 a\rb
1271 0: a\x{0d}b
1272 a\r\nb
1273 0: a\x{0d}\x{0a}b
1274 a\x0bb
1275 0: a\x{0b}b
1276 a\x0cb
1277 0: a\x{0c}b
1278 a\x{85}b
1279 0: a\x{85}b
1280 a\x{2028}b
1281 0: a\x{2028}b
1282 a\x{2029}b
1283 0: a\x{2029}b
1284 ** Failers
1285 No match
1286 a\n\rb
1287 No match
1288
1289 /^a\R*b/8<bsr_unicode>
1290 ab
1291 0: ab
1292 a\nb
1293 0: a\x{0a}b
1294 a\rb
1295 0: a\x{0d}b
1296 a\r\nb
1297 0: a\x{0d}\x{0a}b
1298 a\x0bb
1299 0: a\x{0b}b
1300 a\x0c\x{2028}\x{2029}b
1301 0: a\x{0c}\x{2028}\x{2029}b
1302 a\x{85}b
1303 0: a\x{85}b
1304 a\n\rb
1305 0: a\x{0a}\x{0d}b
1306 a\n\r\x{85}\x0cb
1307 0: a\x{0a}\x{0d}\x{85}\x{0c}b
1308
1309 /^a\R+b/8<bsr_unicode>
1310 a\nb
1311 0: a\x{0a}b
1312 a\rb
1313 0: a\x{0d}b
1314 a\r\nb
1315 0: a\x{0d}\x{0a}b
1316 a\x0bb
1317 0: a\x{0b}b
1318 a\x0c\x{2028}\x{2029}b
1319 0: a\x{0c}\x{2028}\x{2029}b
1320 a\x{85}b
1321 0: a\x{85}b
1322 a\n\rb
1323 0: a\x{0a}\x{0d}b
1324 a\n\r\x{85}\x0cb
1325 0: a\x{0a}\x{0d}\x{85}\x{0c}b
1326 ** Failers
1327 No match
1328 ab
1329 No match
1330
1331 /^a\R{1,3}b/8<bsr_unicode>
1332 a\nb
1333 0: a\x{0a}b
1334 a\n\rb
1335 0: a\x{0a}\x{0d}b
1336 a\n\r\x{85}b
1337 0: a\x{0a}\x{0d}\x{85}b
1338 a\r\n\r\nb
1339 0: a\x{0d}\x{0a}\x{0d}\x{0a}b
1340 a\r\n\r\n\r\nb
1341 0: a\x{0d}\x{0a}\x{0d}\x{0a}\x{0d}\x{0a}b
1342 a\n\r\n\rb
1343 0: a\x{0a}\x{0d}\x{0a}\x{0d}b
1344 a\n\n\r\nb
1345 0: a\x{0a}\x{0a}\x{0d}\x{0a}b
1346 ** Failers
1347 No match
1348 a\n\n\n\rb
1349 No match
1350 a\r
1351 No match
1352
1353 /\H\h\V\v/8
1354 X X\x0a
1355 0: X X\x{0a}
1356 X\x09X\x0b
1357 0: X\x{09}X\x{0b}
1358 ** Failers
1359 No match
1360 \x{a0} X\x0a
1361 No match
1362
1363 /\H*\h+\V?\v{3,4}/8
1364 \x09\x20\x{a0}X\x0a\x0b\x0c\x0d\x0a
1365 0: \x{09} \x{a0}X\x{0a}\x{0b}\x{0c}\x{0d}
1366 \x09\x20\x{a0}\x0a\x0b\x0c\x0d\x0a
1367 0: \x{09} \x{a0}\x{0a}\x{0b}\x{0c}\x{0d}
1368 \x09\x20\x{a0}\x0a\x0b\x0c
1369 0: \x{09} \x{a0}\x{0a}\x{0b}\x{0c}
1370 ** Failers
1371 No match
1372 \x09\x20\x{a0}\x0a\x0b
1373 No match
1374
1375 /\H\h\V\v/8
1376 \x{3001}\x{3000}\x{2030}\x{2028}
1377 0: \x{3001}\x{3000}\x{2030}\x{2028}
1378 X\x{180e}X\x{85}
1379 0: X\x{180e}X\x{85}
1380 ** Failers
1381 No match
1382 \x{2009} X\x0a
1383 No match
1384
1385 /\H*\h+\V?\v{3,4}/8
1386 \x{1680}\x{180e}\x{2007}X\x{2028}\x{2029}\x0c\x0d\x0a
1387 0: \x{1680}\x{180e}\x{2007}X\x{2028}\x{2029}\x{0c}\x{0d}
1388 \x09\x{205f}\x{a0}\x0a\x{2029}\x0c\x{2028}\x0a
1389 0: \x{09}\x{205f}\x{a0}\x{0a}\x{2029}\x{0c}\x{2028}
1390 \x09\x20\x{202f}\x0a\x0b\x0c
1391 0: \x{09} \x{202f}\x{0a}\x{0b}\x{0c}
1392 ** Failers
1393 No match
1394 \x09\x{200a}\x{a0}\x{2028}\x0b
1395 No match
1396
1397 /[\h]/8BZ
1398 ------------------------------------------------------------------
1399 Bra
1400 [\x09 \xa0\x{1680}\x{180e}\x{2000}-\x{200a}\x{202f}\x{205f}\x{3000}]
1401 Ket
1402 End
1403 ------------------------------------------------------------------
1404 >\x{1680}
1405 0: \x{1680}
1406
1407 /[\h]{3,}/8BZ
1408 ------------------------------------------------------------------
1409 Bra
1410 [\x09 \xa0\x{1680}\x{180e}\x{2000}-\x{200a}\x{202f}\x{205f}\x{3000}]{3,}
1411 Ket
1412 End
1413 ------------------------------------------------------------------
1414 >\x{1680}\x{180e}\x{2000}\x{2003}\x{200a}\x{202f}\x{205f}\x{3000}<
1415 0: \x{1680}\x{180e}\x{2000}\x{2003}\x{200a}\x{202f}\x{205f}\x{3000}
1416
1417 /[\v]/8BZ
1418 ------------------------------------------------------------------
1419 Bra
1420 [\x0a-\x0d\x85\x{2028}-\x{2029}]
1421 Ket
1422 End
1423 ------------------------------------------------------------------
1424
1425 /[\H]/8BZ
1426 ------------------------------------------------------------------
1427 Bra
1428 [\x00-\x08\x0a-\x1f!-\x9f\xa1-\xff\x{100}-\x{167f}\x{1681}-\x{180d}\x{180f}-\x{1fff}\x{200b}-\x{202e}\x{2030}-\x{205e}\x{2060}-\x{2fff}\x{3001}-\x{10ffff}]
1429 Ket
1430 End
1431 ------------------------------------------------------------------
1432
1433 /[\V]/8BZ
1434 ------------------------------------------------------------------
1435 Bra
1436 [\x00-\x09\x0e-\x84\x86-\xff\x{100}-\x{2027}\x{2029}-\x{10ffff}]
1437 Ket
1438 End
1439 ------------------------------------------------------------------
1440
1441 /.*$/8<any>
1442 \x{1ec5}
1443 0: \x{1ec5}
1444
1445 /-- This tests the stricter UTF-8 check according to RFC 3629. --/
1446
1447 /X/8
1448 \x{0}\x{d7ff}\x{e000}\x{10ffff}
1449 No match
1450 \x{d800}
1451 Error -10 (bad UTF-8 string) offset=0 reason=14
1452 \x{d800}\?
1453 No match
1454 \x{da00}
1455 Error -10 (bad UTF-8 string) offset=0 reason=14
1456 \x{da00}\?
1457 No match
1458 \x{dfff}
1459 Error -10 (bad UTF-8 string) offset=0 reason=14
1460 \x{dfff}\?
1461 No match
1462 \x{110000}
1463 Error -10 (bad UTF-8 string) offset=0 reason=13
1464 \x{110000}\?
1465 No match
1466 \x{2000000}
1467 Error -10 (bad UTF-8 string) offset=0 reason=11
1468 \x{2000000}\?
1469 No match
1470 \x{7fffffff}
1471 Error -10 (bad UTF-8 string) offset=0 reason=12
1472 \x{7fffffff}\?
1473 No match
1474
1475 /a\Rb/I8<bsr_anycrlf>
1476 Capturing subpattern count = 0
1477 Options: bsr_anycrlf utf8
1478 First char = 'a'
1479 Need char = 'b'
1480 a\rb
1481 0: a\x{0d}b
1482 a\nb
1483 0: a\x{0a}b
1484 a\r\nb
1485 0: a\x{0d}\x{0a}b
1486 ** Failers
1487 No match
1488 a\x{85}b
1489 No match
1490 a\x0bb
1491 No match
1492
1493 /a\Rb/I8<bsr_unicode>
1494 Capturing subpattern count = 0
1495 Options: bsr_unicode utf8
1496 First char = 'a'
1497 Need char = 'b'
1498 a\rb
1499 0: a\x{0d}b
1500 a\nb
1501 0: a\x{0a}b
1502 a\r\nb
1503 0: a\x{0d}\x{0a}b
1504 a\x{85}b
1505 0: a\x{85}b
1506 a\x0bb
1507 0: a\x{0b}b
1508 ** Failers
1509 No match
1510 a\x{85}b\<bsr_anycrlf>
1511 No match
1512 a\x0bb\<bsr_anycrlf>
1513 No match
1514
1515 /a\R?b/I8<bsr_anycrlf>
1516 Capturing subpattern count = 0
1517 Options: bsr_anycrlf utf8
1518 First char = 'a'
1519 Need char = 'b'
1520 a\rb
1521 0: a\x{0d}b
1522 a\nb
1523 0: a\x{0a}b
1524 a\r\nb
1525 0: a\x{0d}\x{0a}b
1526 ** Failers
1527 No match
1528 a\x{85}b
1529 No match
1530 a\x0bb
1531 No match
1532
1533 /a\R?b/I8<bsr_unicode>
1534 Capturing subpattern count = 0
1535 Options: bsr_unicode utf8
1536 First char = 'a'
1537 Need char = 'b'
1538 a\rb
1539 0: a\x{0d}b
1540 a\nb
1541 0: a\x{0a}b
1542 a\r\nb
1543 0: a\x{0d}\x{0a}b
1544 a\x{85}b
1545 0: a\x{85}b
1546 a\x0bb
1547 0: a\x{0b}b
1548 ** Failers
1549 No match
1550 a\x{85}b\<bsr_anycrlf>
1551 No match
1552 a\x0bb\<bsr_anycrlf>
1553 No match
1554
1555 /.*a.*=.b.*/8<ANY>
1556 QQQ\x{2029}ABCaXYZ=!bPQR
1557 0: ABCaXYZ=!bPQR
1558 ** Failers
1559 No match
1560 a\x{2029}b
1561 No match
1562 \x61\xe2\x80\xa9\x62
1563 No match
1564
1565 /[[:a\x{100}b:]]/8
1566 Failed: unknown POSIX class name at offset 3
1567
1568 /a[^]b/<JS>8
1569 a\x{1234}b
1570 0: a\x{1234}b
1571 a\nb
1572 0: a\x{0a}b
1573 ** Failers
1574 No match
1575 ab
1576 No match
1577
1578 /a[^]+b/<JS>8
1579 aXb
1580 0: aXb
1581 a\nX\nX\x{1234}b
1582 0: a\x{0a}X\x{0a}X\x{1234}b
1583 ** Failers
1584 No match
1585 ab
1586 No match
1587
1588 /(\x{de})\1/
1589 \x{de}\x{de}
1590 0: \xde\xde
1591 1: \xde
1592 \x{123}
1593 ** Character \x{123} is greater than 255 and UTF-8 mode is not enabled.
1594 ** Truncation will probably give the wrong result.
1595 No match
1596
1597 /X/8f<any>
1598 A\x{1ec5}ABCXYZ
1599 0: X
1600
1601 /(*UTF8)\x{1234}/
1602 abcd\x{1234}pqr
1603 0: \x{1234}
1604
1605 /(*CRLF)(*UTF8)(*BSR_UNICODE)a\Rb/I
1606 Capturing subpattern count = 0
1607 Options: bsr_unicode utf8
1608 Forced newline sequence: CRLF
1609 First char = 'a'
1610 Need char = 'b'
1611
1612 /Xa{2,4}b/8
1613 X\P
1614 Partial match: X
1615 Xa\P
1616 Partial match: Xa
1617 Xaa\P
1618 Partial match: Xaa
1619 Xaaa\P
1620 Partial match: Xaaa
1621 Xaaaa\P
1622 Partial match: Xaaaa
1623
1624 /Xa{2,4}?b/8
1625 X\P
1626 Partial match: X
1627 Xa\P
1628 Partial match: Xa
1629 Xaa\P
1630 Partial match: Xaa
1631 Xaaa\P
1632 Partial match: Xaaa
1633 Xaaaa\P
1634 Partial match: Xaaaa
1635
1636 /Xa{2,4}+b/8
1637 X\P
1638 Partial match: X
1639 Xa\P
1640 Partial match: Xa
1641 Xaa\P
1642 Partial match: Xaa
1643 Xaaa\P
1644 Partial match: Xaaa
1645 Xaaaa\P
1646 Partial match: Xaaaa
1647
1648 /X\x{123}{2,4}b/8
1649 X\P
1650 Partial match: X
1651 X\x{123}\P
1652 Partial match: X\x{123}
1653 X\x{123}\x{123}\P
1654 Partial match: X\x{123}\x{123}
1655 X\x{123}\x{123}\x{123}\P
1656 Partial match: X\x{123}\x{123}\x{123}
1657 X\x{123}\x{123}\x{123}\x{123}\P
1658 Partial match: X\x{123}\x{123}\x{123}\x{123}
1659
1660 /X\x{123}{2,4}?b/8
1661 X\P
1662 Partial match: X
1663 X\x{123}\P
1664 Partial match: X\x{123}
1665 X\x{123}\x{123}\P
1666 Partial match: X\x{123}\x{123}
1667 X\x{123}\x{123}\x{123}\P
1668 Partial match: X\x{123}\x{123}\x{123}
1669 X\x{123}\x{123}\x{123}\x{123}\P
1670 Partial match: X\x{123}\x{123}\x{123}\x{123}
1671
1672 /X\x{123}{2,4}+b/8
1673 X\P
1674 Partial match: X
1675 X\x{123}\P
1676 Partial match: X\x{123}
1677 X\x{123}\x{123}\P
1678 Partial match: X\x{123}\x{123}
1679 X\x{123}\x{123}\x{123}\P
1680 Partial match: X\x{123}\x{123}\x{123}
1681 X\x{123}\x{123}\x{123}\x{123}\P
1682 Partial match: X\x{123}\x{123}\x{123}\x{123}
1683
1684 /X\x{123}{2,4}b/8
1685 Xx\P
1686 No match
1687 X\x{123}x\P
1688 No match
1689 X\x{123}\x{123}x\P
1690 No match
1691 X\x{123}\x{123}\x{123}x\P
1692 No match
1693 X\x{123}\x{123}\x{123}\x{123}x\P
1694 No match
1695
1696 /X\x{123}{2,4}?b/8
1697 Xx\P
1698 No match
1699 X\x{123}x\P
1700 No match
1701 X\x{123}\x{123}x\P
1702 No match
1703 X\x{123}\x{123}\x{123}x\P
1704 No match
1705 X\x{123}\x{123}\x{123}\x{123}x\P
1706 No match
1707
1708 /X\x{123}{2,4}+b/8
1709 Xx\P
1710 No match
1711 X\x{123}x\P
1712 No match
1713 X\x{123}\x{123}x\P
1714 No match
1715 X\x{123}\x{123}\x{123}x\P
1716 No match
1717 X\x{123}\x{123}\x{123}\x{123}x\P
1718 No match
1719
1720 /X\d{2,4}b/8
1721 X\P
1722 Partial match: X
1723 X3\P
1724 Partial match: X3
1725 X33\P
1726 Partial match: X33
1727 X333\P
1728 Partial match: X333
1729 X3333\P
1730 Partial match: X3333
1731
1732 /X\d{2,4}?b/8
1733 X\P
1734 Partial match: X
1735 X3\P
1736 Partial match: X3
1737 X33\P
1738 Partial match: X33
1739 X333\P
1740 Partial match: X333
1741 X3333\P
1742 Partial match: X3333
1743
1744 /X\d{2,4}+b/8
1745 X\P
1746 Partial match: X
1747 X3\P
1748 Partial match: X3
1749 X33\P
1750 Partial match: X33
1751 X333\P
1752 Partial match: X333
1753 X3333\P
1754 Partial match: X3333
1755
1756 /X\D{2,4}b/8
1757 X\P
1758 Partial match: X
1759 Xa\P
1760 Partial match: Xa
1761 Xaa\P
1762 Partial match: Xaa
1763 Xaaa\P
1764 Partial match: Xaaa
1765 Xaaaa\P
1766 Partial match: Xaaaa
1767
1768 /X\D{2,4}?b/8
1769 X\P
1770 Partial match: X
1771 Xa\P
1772 Partial match: Xa
1773 Xaa\P
1774 Partial match: Xaa
1775 Xaaa\P
1776 Partial match: Xaaa
1777 Xaaaa\P
1778 Partial match: Xaaaa
1779
1780 /X\D{2,4}+b/8
1781 X\P
1782 Partial match: X
1783 Xa\P
1784 Partial match: Xa
1785 Xaa\P
1786 Partial match: Xaa
1787 Xaaa\P
1788 Partial match: Xaaa
1789 Xaaaa\P
1790 Partial match: Xaaaa
1791
1792 /X\D{2,4}b/8
1793 X\P
1794 Partial match: X
1795 X\x{123}\P
1796 Partial match: X\x{123}
1797 X\x{123}\x{123}\P
1798 Partial match: X\x{123}\x{123}
1799 X\x{123}\x{123}\x{123}\P
1800 Partial match: X\x{123}\x{123}\x{123}
1801 X\x{123}\x{123}\x{123}\x{123}\P
1802 Partial match: X\x{123}\x{123}\x{123}\x{123}
1803
1804 /X\D{2,4}?b/8
1805 X\P
1806 Partial match: X
1807 X\x{123}\P
1808 Partial match: X\x{123}
1809 X\x{123}\x{123}\P
1810 Partial match: X\x{123}\x{123}
1811 X\x{123}\x{123}\x{123}\P
1812 Partial match: X\x{123}\x{123}\x{123}
1813 X\x{123}\x{123}\x{123}\x{123}\P
1814 Partial match: X\x{123}\x{123}\x{123}\x{123}
1815
1816 /X\D{2,4}+b/8
1817 X\P
1818 Partial match: X
1819 X\x{123}\P
1820 Partial match: X\x{123}
1821 X\x{123}\x{123}\P
1822 Partial match: X\x{123}\x{123}
1823 X\x{123}\x{123}\x{123}\P
1824 Partial match: X\x{123}\x{123}\x{123}
1825 X\x{123}\x{123}\x{123}\x{123}\P
1826 Partial match: X\x{123}\x{123}\x{123}\x{123}
1827
1828 /X[abc]{2,4}b/8
1829 X\P
1830 Partial match: X
1831 Xa\P
1832 Partial match: Xa
1833 Xaa\P
1834 Partial match: Xaa
1835 Xaaa\P
1836 Partial match: Xaaa
1837 Xaaaa\P
1838 Partial match: Xaaaa
1839
1840 /X[abc]{2,4}?b/8
1841 X\P
1842 Partial match: X
1843 Xa\P
1844 Partial match: Xa
1845 Xaa\P
1846 Partial match: Xaa
1847 Xaaa\P
1848 Partial match: Xaaa
1849 Xaaaa\P
1850 Partial match: Xaaaa
1851
1852 /X[abc]{2,4}+b/8
1853 X\P
1854 Partial match: X
1855 Xa\P
1856 Partial match: Xa
1857 Xaa\P
1858 Partial match: Xaa
1859 Xaaa\P
1860 Partial match: Xaaa
1861 Xaaaa\P
1862 Partial match: Xaaaa
1863
1864 /X[abc\x{123}]{2,4}b/8
1865 X\P
1866 Partial match: X
1867 X\x{123}\P
1868 Partial match: X\x{123}
1869 X\x{123}\x{123}\P
1870 Partial match: X\x{123}\x{123}
1871 X\x{123}\x{123}\x{123}\P
1872 Partial match: X\x{123}\x{123}\x{123}
1873 X\x{123}\x{123}\x{123}\x{123}\P
1874 Partial match: X\x{123}\x{123}\x{123}\x{123}
1875
1876 /X[abc\x{123}]{2,4}?b/8
1877 X\P
1878 Partial match: X
1879 X\x{123}\P
1880 Partial match: X\x{123}
1881 X\x{123}\x{123}\P
1882 Partial match: X\x{123}\x{123}
1883 X\x{123}\x{123}\x{123}\P
1884 Partial match: X\x{123}\x{123}\x{123}
1885 X\x{123}\x{123}\x{123}\x{123}\P
1886 Partial match: X\x{123}\x{123}\x{123}\x{123}
1887
1888 /X[abc\x{123}]{2,4}+b/8
1889 X\P
1890 Partial match: X
1891 X\x{123}\P
1892 Partial match: X\x{123}
1893 X\x{123}\x{123}\P
1894 Partial match: X\x{123}\x{123}
1895 X\x{123}\x{123}\x{123}\P
1896 Partial match: X\x{123}\x{123}\x{123}
1897 X\x{123}\x{123}\x{123}\x{123}\P
1898 Partial match: X\x{123}\x{123}\x{123}\x{123}
1899
1900 /X[^a]{2,4}b/8
1901 X\P
1902 Partial match: X
1903 Xz\P
1904 Partial match: Xz
1905 Xzz\P
1906 Partial match: Xzz
1907 Xzzz\P
1908 Partial match: Xzzz
1909 Xzzzz\P
1910 Partial match: Xzzzz
1911
1912 /X[^a]{2,4}?b/8
1913 X\P
1914 Partial match: X
1915 Xz\P
1916 Partial match: Xz
1917 Xzz\P
1918 Partial match: Xzz
1919 Xzzz\P
1920 Partial match: Xzzz
1921 Xzzzz\P
1922 Partial match: Xzzzz
1923
1924 /X[^a]{2,4}+b/8
1925 X\P
1926 Partial match: X
1927 Xz\P
1928 Partial match: Xz
1929 Xzz\P
1930 Partial match: Xzz
1931 Xzzz\P
1932 Partial match: Xzzz
1933 Xzzzz\P
1934 Partial match: Xzzzz
1935
1936 /X[^a]{2,4}b/8
1937 X\P
1938 Partial match: X
1939 X\x{123}\P
1940 Partial match: X\x{123}
1941 X\x{123}\x{123}\P
1942 Partial match: X\x{123}\x{123}
1943 X\x{123}\x{123}\x{123}\P
1944 Partial match: X\x{123}\x{123}\x{123}
1945 X\x{123}\x{123}\x{123}\x{123}\P
1946 Partial match: X\x{123}\x{123}\x{123}\x{123}
1947
1948 /X[^a]{2,4}?b/8
1949 X\P
1950 Partial match: X
1951 X\x{123}\P
1952 Partial match: X\x{123}
1953 X\x{123}\x{123}\P
1954 Partial match: X\x{123}\x{123}
1955 X\x{123}\x{123}\x{123}\P
1956 Partial match: X\x{123}\x{123}\x{123}
1957 X\x{123}\x{123}\x{123}\x{123}\P
1958 Partial match: X\x{123}\x{123}\x{123}\x{123}
1959
1960 /X[^a]{2,4}+b/8
1961 X\P
1962 Partial match: X
1963 X\x{123}\P
1964 Partial match: X\x{123}
1965 X\x{123}\x{123}\P
1966 Partial match: X\x{123}\x{123}
1967 X\x{123}\x{123}\x{123}\P
1968 Partial match: X\x{123}\x{123}\x{123}
1969 X\x{123}\x{123}\x{123}\x{123}\P
1970 Partial match: X\x{123}\x{123}\x{123}\x{123}
1971
1972 /(Y)X\1{2,4}b/8
1973 YX\P
1974 Partial match: YX
1975 YXY\P
1976 Partial match: YXY
1977 YXYY\P
1978 Partial match: YXYY
1979 YXYYY\P
1980 Partial match: YXYYY
1981 YXYYYY\P
1982 Partial match: YXYYYY
1983
1984 /(Y)X\1{2,4}?b/8
1985 YX\P
1986 Partial match: YX
1987 YXY\P
1988 Partial match: YXY
1989 YXYY\P
1990 Partial match: YXYY
1991 YXYYY\P
1992 Partial match: YXYYY
1993 YXYYYY\P
1994 Partial match: YXYYYY
1995
1996 /(Y)X\1{2,4}+b/8
1997 YX\P
1998 Partial match: YX
1999 YXY\P
2000 Partial match: YXY
2001 YXYY\P
2002 Partial match: YXYY
2003 YXYYY\P
2004 Partial match: YXYYY
2005 YXYYYY\P
2006 Partial match: YXYYYY
2007
2008 /(\x{123})X\1{2,4}b/8
2009 \x{123}X\P
2010 Partial match: \x{123}X
2011 \x{123}X\x{123}\P
2012 Partial match: \x{123}X\x{123}
2013 \x{123}X\x{123}\x{123}\P
2014 Partial match: \x{123}X\x{123}\x{123}
2015 \x{123}X\x{123}\x{123}\x{123}\P
2016 Partial match: \x{123}X\x{123}\x{123}\x{123}
2017 \x{123}X\x{123}\x{123}\x{123}\x{123}\P
2018 Partial match: \x{123}X\x{123}\x{123}\x{123}\x{123}
2019
2020 /(\x{123})X\1{2,4}?b/8
2021 \x{123}X\P
2022 Partial match: \x{123}X
2023 \x{123}X\x{123}\P
2024 Partial match: \x{123}X\x{123}
2025 \x{123}X\x{123}\x{123}\P
2026 Partial match: \x{123}X\x{123}\x{123}
2027 \x{123}X\x{123}\x{123}\x{123}\P
2028 Partial match: \x{123}X\x{123}\x{123}\x{123}
2029 \x{123}X\x{123}\x{123}\x{123}\x{123}\P
2030 Partial match: \x{123}X\x{123}\x{123}\x{123}\x{123}
2031
2032 /(\x{123})X\1{2,4}+b/8
2033 \x{123}X\P
2034 Partial match: \x{123}X
2035 \x{123}X\x{123}\P
2036 Partial match: \x{123}X\x{123}
2037 \x{123}X\x{123}\x{123}\P
2038 Partial match: \x{123}X\x{123}\x{123}
2039 \x{123}X\x{123}\x{123}\x{123}\P
2040 Partial match: \x{123}X\x{123}\x{123}\x{123}
2041 \x{123}X\x{123}\x{123}\x{123}\x{123}\P
2042 Partial match: \x{123}X\x{123}\x{123}\x{123}\x{123}
2043
2044 /\bthe cat\b/8
2045 the cat\P
2046 0: the cat
2047 the cat\P\P
2048 Partial match: the cat
2049
2050 /abcd*/8
2051 xxxxabcd\P
2052 0: abcd
2053 xxxxabcd\P\P
2054 Partial match: abcd
2055
2056 /abcd*/i8
2057 xxxxabcd\P
2058 0: abcd
2059 xxxxabcd\P\P
2060 Partial match: abcd
2061 XXXXABCD\P
2062 0: ABCD
2063 XXXXABCD\P\P
2064 Partial match: ABCD
2065
2066 /abc\d*/8
2067 xxxxabc1\P
2068 0: abc1
2069 xxxxabc1\P\P
2070 Partial match: abc1
2071
2072 /(a)bc\1*/8
2073 xxxxabca\P
2074 0: abca
2075 1: a
2076 xxxxabca\P\P
2077 Partial match: abca
2078
2079 /abc[de]*/8
2080 xxxxabcde\P
2081 0: abcde
2082 xxxxabcde\P\P
2083 Partial match: abcde
2084
2085 /X\W{3}X/8
2086 \PX
2087 Partial match: X
2088
2089 /\h/SI
2090 Capturing subpattern count = 0
2091 No options
2092 No first char
2093 No need char
2094 Subject length lower bound = 1
2095 Starting byte set: \x09 \x20 \xa0
2096
2097 /\h/SI8
2098 Capturing subpattern count = 0
2099 Options: utf8
2100 No first char
2101 No need char
2102 Subject length lower bound = 1
2103 Starting byte set: \x09 \x20 \xc2 \xe1 \xe2 \xe3
2104 ABC\x{09}
2105 0: \x{09}
2106 ABC\x{20}
2107 0:
2108 ABC\x{a0}
2109 0: \x{a0}
2110 ABC\x{1680}
2111 0: \x{1680}
2112 ABC\x{180e}
2113 0: \x{180e}
2114 ABC\x{2000}
2115 0: \x{2000}
2116 ABC\x{202f}
2117 0: \x{202f}
2118 ABC\x{205f}
2119 0: \x{205f}
2120 ABC\x{3000}
2121 0: \x{3000}
2122
2123 /\v/SI
2124 Capturing subpattern count = 0
2125 No options
2126 No first char
2127 No need char
2128 Subject length lower bound = 1
2129 Starting byte set: \x0a \x0b \x0c \x0d \x85
2130
2131 /\v/SI8
2132 Capturing subpattern count = 0
2133 Options: utf8
2134 No first char
2135 No need char
2136 Subject length lower bound = 1
2137 Starting byte set: \x0a \x0b \x0c \x0d \xc2 \xe2
2138 ABC\x{0a}
2139 0: \x{0a}
2140 ABC\x{0b}
2141 0: \x{0b}
2142 ABC\x{0c}
2143 0: \x{0c}
2144 ABC\x{0d}
2145 0: \x{0d}
2146 ABC\x{85}
2147 0: \x{85}
2148 ABC\x{2028}
2149 0: \x{2028}
2150
2151 /\R/SI
2152 Capturing subpattern count = 0
2153 No options
2154 No first char
2155 No need char
2156 Subject length lower bound = 1
2157 Starting byte set: \x0a \x0b \x0c \x0d \x85
2158
2159 /\R/SI8
2160 Capturing subpattern count = 0
2161 Options: utf8
2162 No first char
2163 No need char
2164 Subject length lower bound = 1
2165 Starting byte set: \x0a \x0b \x0c \x0d \xc2 \xe2
2166
2167 /\h*A/SI8
2168 Capturing subpattern count = 0
2169 Options: utf8
2170 No first char
2171 Need char = 'A'
2172 Subject length lower bound = 1
2173 Starting byte set: \x09 \x20 A \xc2 \xe1 \xe2 \xe3
2174 CDBABC
2175 0: A
2176
2177 /\v+A/SI8
2178 Capturing subpattern count = 0
2179 Options: utf8
2180 No first char
2181 Need char = 'A'
2182 Subject length lower bound = 2
2183 Starting byte set: \x0a \x0b \x0c \x0d \xc2 \xe2
2184
2185 /\s?xxx\s/8SI
2186 Capturing subpattern count = 0
2187 Options: utf8
2188 No first char
2189 Need char = 'x'
2190 Subject length lower bound = 4
2191 Starting byte set: \x09 \x0a \x0c \x0d \x20 x
2192
2193 /\sxxx\s/8T1
2194 AB\x{85}xxx\x{a0}XYZ
2195 0: \x{85}xxx\x{a0}
2196 AB\x{a0}xxx\x{85}XYZ
2197 0: \x{a0}xxx\x{85}
2198
2199 /\sxxx\s/I8ST1
2200 Capturing subpattern count = 0
2201 Options: utf8
2202 No first char
2203 Need char = 'x'
2204 Subject length lower bound = 5
2205 Starting byte set: \x09 \x0a \x0c \x0d \x20 \xc2
2206 AB\x{85}xxx\x{a0}XYZ
2207 0: \x{85}xxx\x{a0}
2208 AB\x{a0}xxx\x{85}XYZ
2209 0: \x{a0}xxx\x{85}
2210
2211 /\S \S/8T1
2212 \x{a2} \x{84}
2213 0: \x{a2} \x{84}
2214
2215 /\S \S/I8ST1
2216 Capturing subpattern count = 0
2217 Options: utf8
2218 No first char
2219 Need char = ' '
2220 Subject length lower bound = 3
2221 Starting byte set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x0b \x0e
2222 \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19 \x1a \x1b \x1c \x1d
2223 \x1e \x1f ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @
2224 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 Z [ \ ] ^ _ ` a b c d e
2225 f g h i j k l m n o p q r s t u v w x y z { | } ~ \x7f \xc0 \xc1 \xc2 \xc3
2226 \xc4 \xc5 \xc6 \xc7 \xc8 \xc9 \xca \xcb \xcc \xcd \xce \xcf \xd0 \xd1 \xd2
2227 \xd3 \xd4 \xd5 \xd6 \xd7 \xd8 \xd9 \xda \xdb \xdc \xdd \xde \xdf \xe0 \xe1
2228 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8 \xe9 \xea \xeb \xec \xed \xee \xef \xf0
2229 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7 \xf8 \xf9 \xfa \xfb \xfc \xfd \xfe \xff
2230 \x{a2} \x{84}
2231 0: \x{a2} \x{84}
2232 A Z
2233 0: A Z
2234
2235 'A#хц'8x<any>BZ
2236 ------------------------------------------------------------------
2237 Bra
2238 A
2239 Ket
2240 End
2241 ------------------------------------------------------------------
2242
2243 'A#хц
2244 PQ'8x<any>BZ
2245 ------------------------------------------------------------------
2246 Bra
2247 APQ
2248 Ket
2249 End
2250 ------------------------------------------------------------------
2251
2252 /a+#хaa
2253 z#XX?/8x<any>BZ
2254 ------------------------------------------------------------------
2255 Bra
2256 a++
2257 z
2258 Ket
2259 End
2260 ------------------------------------------------------------------
2261
2262 /a+#хaa
2263 z#х?/8x<any>BZ
2264 ------------------------------------------------------------------
2265 Bra
2266 a++
2267 z
2268 Ket
2269 End
2270 ------------------------------------------------------------------
2271
2272 /\g{A}xxx#bXX(?'A'123) (?'A'456)/8x<any>BZ
2273 ------------------------------------------------------------------
2274 Bra
2275 \1
2276 xxx
2277 CBra 1
2278 456
2279 Ket
2280 Ket
2281 End
2282 ------------------------------------------------------------------
2283
2284 /\g{A}xxx#bх(?'A'123) (?'A'456)/8x<any>BZ
2285 ------------------------------------------------------------------
2286 Bra
2287 \1
2288 xxx
2289 CBra 1
2290 456
2291 Ket
2292 Ket
2293 End
2294 ------------------------------------------------------------------
2295
2296 /a+/8
2297 a\x{123}aa\>1
2298 0: aa
2299 a\x{123}aa\>2
2300 Error -11 (bad UTF-8 offset)
2301 a\x{123}aa\>3
2302 0: aa
2303 a\x{123}aa\>4
2304 0: a
2305 a\x{123}aa\>5
2306 No match
2307 a\x{123}aa\>6
2308 Error -24 (bad offset value)
2309
2310 /^\cģ/8
2311 Failed: \c must be followed by an ASCII character at offset 3
2312
2313 /(\R*)(.)/s8
2314 \r\n
2315 0: \x{0d}
2316 1:
2317 2: \x{0d}
2318 \r\r\n\n\r
2319 0: \x{0d}\x{0d}\x{0a}\x{0a}\x{0d}
2320 1: \x{0d}\x{0d}\x{0a}\x{0a}
2321 2: \x{0d}
2322 \r\r\n\n\r\n
2323 0: \x{0d}\x{0d}\x{0a}\x{0a}\x{0d}
2324 1: \x{0d}\x{0d}\x{0a}\x{0a}
2325 2: \x{0d}
2326
2327 /(\R)*(.)/s8
2328 \r\n
2329 0: \x{0d}
2330 1: <unset>
2331 2: \x{0d}
2332 \r\r\n\n\r
2333 0: \x{0d}\x{0d}\x{0a}\x{0a}\x{0d}
2334 1: \x{0a}
2335 2: \x{0d}
2336 \r\r\n\n\r\n
2337 0: \x{0d}\x{0d}\x{0a}\x{0a}\x{0d}
2338 1: \x{0a}
2339 2: \x{0d}
2340
2341 /\x{1234}+/iS8I
2342 Capturing subpattern count = 0
2343 Options: caseless utf8
2344 No first char
2345 No need char
2346 Subject length lower bound = 1
2347 Starting byte set: \xe1
2348
2349 /\x{1234}+?/iS8I
2350 Capturing subpattern count = 0
2351 Options: caseless utf8
2352 No first char
2353 No need char
2354 Subject length lower bound = 1
2355 Starting byte set: \xe1
2356
2357 /\x{1234}++/iS8I
2358 Capturing subpattern count = 0
2359 Options: caseless utf8
2360 No first char
2361 No need char
2362 Subject length lower bound = 1
2363 Starting byte set: \xe1
2364
2365 /\x{1234}{2}/iS8I
2366 Capturing subpattern count = 0
2367 Options: caseless utf8
2368 No first char
2369 No need char
2370 Subject length lower bound = 2
2371 Starting byte set: \xe1
2372
2373 /[^\x{1234}]+/iS8I
2374 Capturing subpattern count = 0
2375 Options: caseless utf8
2376 No first char
2377 No need char
2378 Subject length lower bound = 1
2379 No set of starting bytes
2380
2381 /[^\x{1234}]+?/iS8I
2382 Capturing subpattern count = 0
2383 Options: caseless utf8
2384 No first char
2385 No need char
2386 Subject length lower bound = 1
2387 No set of starting bytes
2388
2389 /[^\x{1234}]++/iS8I
2390 Capturing subpattern count = 0
2391 Options: caseless utf8
2392 No first char
2393 No need char
2394 Subject length lower bound = 1
2395 No set of starting bytes
2396
2397 /[^\x{1234}]{2}/iS8I
2398 Capturing subpattern count = 0
2399 Options: caseless utf8
2400 No first char
2401 No need char
2402 Subject length lower bound = 2
2403 No set of starting bytes
2404
2405 //<bsr_anycrlf><bsr_unicode>
2406 Failed: inconsistent NEWLINE options at offset 0
2407
2408 /f.*/
2409 \P\Pfor
2410 Partial match: for
2411
2412 /f.*/s
2413 \P\Pfor
2414 Partial match: for
2415
2416 /f.*/8
2417 \P\Pfor
2418 Partial match: for
2419
2420 /f.*/8s
2421 \P\Pfor
2422 Partial match: for
2423
2424 /-- End of testinput5 --/

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5