2 ------------------------------------------------------------------
7 ------------------------------------------------------------------
8 Capturing subpattern count = 0
14 ------------------------------------------------------------------
19 ------------------------------------------------------------------
20 Capturing subpattern count = 0
26 ------------------------------------------------------------------
31 ------------------------------------------------------------------
32 Capturing subpattern count = 0
38 ------------------------------------------------------------------
43 ------------------------------------------------------------------
44 Capturing subpattern count = 0
50 ------------------------------------------------------------------
55 ------------------------------------------------------------------
56 Capturing subpattern count = 0
62 ------------------------------------------------------------------
67 ------------------------------------------------------------------
68 Capturing subpattern count = 0
74 ------------------------------------------------------------------
79 ------------------------------------------------------------------
80 Capturing subpattern count = 0
86 ------------------------------------------------------------------
91 ------------------------------------------------------------------
92 Capturing subpattern count = 0
98 ------------------------------------------------------------------
103 ------------------------------------------------------------------
104 Capturing subpattern count = 0
110 Failed: character value in \x{...} sequence is too large at offset 11
113 Failed: character value in \x{...} sequence is too large at offset 12
120 ------------------------------------------------------------------
125 ------------------------------------------------------------------
126 Capturing subpattern count = 0
132 ------------------------------------------------------------------
137 ------------------------------------------------------------------
138 Capturing subpattern count = 0
143 /\x{0041}\x{2262}\x{0391}\x{002e}/DZ8
144 ------------------------------------------------------------------
149 ------------------------------------------------------------------
150 Capturing subpattern count = 0
154 \x{0041}\x{2262}\x{0391}\x{002e}
157 /\x{D55c}\x{ad6d}\x{C5B4}/DZ8
158 ------------------------------------------------------------------
160 \x{d55c}\x{ad6d}\x{c5b4}
163 ------------------------------------------------------------------
164 Capturing subpattern count = 0
168 \x{D55c}\x{ad6d}\x{C5B4}
169 0: \x{d55c}\x{ad6d}\x{c5b4}
171 /\x{65e5}\x{672c}\x{8a9e}/DZ8
172 ------------------------------------------------------------------
174 \x{65e5}\x{672c}\x{8a9e}
177 ------------------------------------------------------------------
178 Capturing subpattern count = 0
182 \x{65e5}\x{672c}\x{8a9e}
183 0: \x{65e5}\x{672c}\x{8a9e}
186 ------------------------------------------------------------------
191 ------------------------------------------------------------------
192 Capturing subpattern count = 0
198 ------------------------------------------------------------------
203 ------------------------------------------------------------------
204 Capturing subpattern count = 0
210 ------------------------------------------------------------------
215 ------------------------------------------------------------------
216 Capturing subpattern count = 0
222 ------------------------------------------------------------------
227 ------------------------------------------------------------------
228 Capturing subpattern count = 0
234 ------------------------------------------------------------------
239 ------------------------------------------------------------------
240 Capturing subpattern count = 0
246 ------------------------------------------------------------------
253 ------------------------------------------------------------------
254 Capturing subpattern count = 0
255 Partial matching not supported
259 \x{212ab}\x{212ab}\x{212ab}\x{861}X
260 0: \x{212ab}\x{212ab}\x{212ab}\x{861}X
264 ------------------------------------------------------------------
270 ------------------------------------------------------------------
271 Capturing subpattern count = 0
272 Partial matching not supported
276 \x{212ab}\x{212ab}\x{212ab}\x{861}
277 0: \x{212ab}\x{212ab}\x{212ab}
279 /-- These tests are here rather than in testinput4 because Perl 5.6 has some
280 problems with UTF-8 support, in the area of \x{..} where the value is < 255.
281 It grumbles about invalid UTF-8 strings. --/
308 /^([a\x{c0}]*)a\x{c0}/8
319 Failed: \C not allowed in lookbehind assertion at offset 6
321 /-- This one is here not because it's different to Perl, but because the way
322 the captured single-byte is displayed. (In Perl it becomes a character, and you
323 can't tell the difference.) --/
336 ------------------------------------------------------------------
342 ------------------------------------------------------------------
343 Capturing subpattern count = 0
344 Options: anchored utf8
359 ------------------------------------------------------------------
365 ------------------------------------------------------------------
366 Capturing subpattern count = 0
367 Options: anchored utf8
382 ------------------------------------------------------------------
384 [\x00-`c-\xbf\xf1-\xff] (neg)
387 ------------------------------------------------------------------
388 Capturing subpattern count = 0
392 Starting byte set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a
393 \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19
394 \x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4
395 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
396 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
397 \xc2 \xc3 \xc4 \xc5 \xc6 \xc7 \xc8 \xc9 \xca \xcb \xcc \xcd \xce \xcf \xd0
398 \xd1 \xd2 \xd3 \xd4 \xd5 \xd6 \xd7 \xd8 \xd9 \xda \xdb \xdc \xdd \xde \xdf
399 \xe0 \xe1 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8 \xe9 \xea \xeb \xec \xed \xee
400 \xef \xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7 \xf8 \xf9 \xfa \xfb \xfc \xfd
418 ------------------------------------------------------------------
424 ------------------------------------------------------------------
425 Capturing subpattern count = 0
426 Partial matching not supported
431 \x{100}\x{100}\x{100}\x{100\x{100}
432 0: \x{100}\x{100}\x{100}
435 ------------------------------------------------------------------
444 ------------------------------------------------------------------
445 Capturing subpattern count = 1
446 Partial matching not supported
450 Starting byte set: x \xc4
453 ------------------------------------------------------------------
463 ------------------------------------------------------------------
464 Capturing subpattern count = 1
465 Partial matching not supported
469 Starting byte set: a x \xc4
471 /(\x{100}{0,2}a|x)/8SDZ
472 ------------------------------------------------------------------
482 ------------------------------------------------------------------
483 Capturing subpattern count = 1
484 Partial matching not supported
488 Starting byte set: a x \xc4
490 /(\x{100}{1,2}a|x)/8SDZ
491 ------------------------------------------------------------------
502 ------------------------------------------------------------------
503 Capturing subpattern count = 1
504 Partial matching not supported
508 Starting byte set: x \xc4
510 /\x{100}*(\d+|"(?1)")/8
527 0: \x{100}\x{100}"12"
535 ------------------------------------------------------------------
540 ------------------------------------------------------------------
541 Capturing subpattern count = 0
547 ------------------------------------------------------------------
552 ------------------------------------------------------------------
553 Capturing subpattern count = 0
554 Partial matching not supported
560 ------------------------------------------------------------------
566 ------------------------------------------------------------------
567 Capturing subpattern count = 0
568 Partial matching not supported
574 ------------------------------------------------------------------
580 ------------------------------------------------------------------
581 Capturing subpattern count = 0
582 Partial matching not supported
587 /a\x{100}\x{101}*/8DZ
588 ------------------------------------------------------------------
594 ------------------------------------------------------------------
595 Capturing subpattern count = 0
596 Partial matching not supported
601 /a\x{100}\x{101}+/8DZ
602 ------------------------------------------------------------------
608 ------------------------------------------------------------------
609 Capturing subpattern count = 0
610 Partial matching not supported
616 ------------------------------------------------------------------
622 ------------------------------------------------------------------
623 Capturing subpattern count = 0
624 Partial matching not supported
632 ------------------------------------------------------------------
641 ------------------------------------------------------------------
642 Capturing subpattern count = 0
643 Partial matching not supported
649 ------------------------------------------------------------------
654 ------------------------------------------------------------------
655 Capturing subpattern count = 0
661 ------------------------------------------------------------------
663 [\x00-\xc3\xc5-\xff] (neg)
666 ------------------------------------------------------------------
667 Capturing subpattern count = 0
673 ------------------------------------------------------------------
678 ------------------------------------------------------------------
679 Capturing subpattern count = 0
693 ------------------------------------------------------------------
698 ------------------------------------------------------------------
699 Capturing subpattern count = 0
713 Failed: range out of order in character class at offset 15
728 ------------------------------------------------------------------
733 ------------------------------------------------------------------
734 Capturing subpattern count = 0
740 ------------------------------------------------------------------
745 ------------------------------------------------------------------
746 Capturing subpattern count = 0
756 ------------------------------------------------------------------
761 ------------------------------------------------------------------
762 Capturing subpattern count = 0
770 ------------------------------------------------------------------
775 ------------------------------------------------------------------
776 Capturing subpattern count = 0
784 ------------------------------------------------------------------
789 ------------------------------------------------------------------
790 Capturing subpattern count = 0
796 ------------------------------------------------------------------
801 ------------------------------------------------------------------
802 Capturing subpattern count = 0
808 Ö # Matches without Study
814 Ö <-- Same with Study
820 Ö # Matches without Study
826 Ö <-- Same with Study
832 Failed: invalid UTF-8 string at offset 2
835 Failed: invalid UTF-8 string at offset 0
838 Failed: invalid UTF-8 string at offset 1
841 ------------------------------------------------------------------
843 \X{c0}\X{c0}\X{c0}xxx
846 ------------------------------------------------------------------
847 Capturing subpattern count = 0
848 Options: utf8 no_utf8_check
873 \xfc\x83\x80\x80\x80\x80
875 \xfe\x80\x80\x80\x80\x80
877 \xff\x80\x80\x80\x80\x80
893 \xfc\x84\x80\x80\x80\x80
895 \xfd\x83\x80\x80\x80\x80
897 \?\xf8\x88\x80\x80\x80
899 \?\xf9\x87\x80\x80\x80
901 \?\xfc\x84\x80\x80\x80\x80
903 \?\xfd\x83\x80\x80\x80\x80
906 /\x{100}abc(xyz(?1))/8DZ
907 ------------------------------------------------------------------
918 ------------------------------------------------------------------
919 Capturing subpattern count = 1
924 /[^\x{100}]abc(xyz(?1))/8DZ
925 ------------------------------------------------------------------
937 ------------------------------------------------------------------
938 Capturing subpattern count = 1
943 /[ab\x{100}]abc(xyz(?1))/8DZ
944 ------------------------------------------------------------------
956 ------------------------------------------------------------------
957 Capturing subpattern count = 1
962 /(\x{100}(b(?2)c))?/DZ8
963 ------------------------------------------------------------------
978 ------------------------------------------------------------------
979 Capturing subpattern count = 2
984 /(\x{100}(b(?2)c)){0,2}/DZ8
985 ------------------------------------------------------------------
1013 ------------------------------------------------------------------
1014 Capturing subpattern count = 2
1019 /(\x{100}(b(?1)c))?/DZ8
1020 ------------------------------------------------------------------
1035 ------------------------------------------------------------------
1036 Capturing subpattern count = 2
1041 /(\x{100}(b(?1)c)){0,2}/DZ8
1042 ------------------------------------------------------------------
1070 ------------------------------------------------------------------
1071 Capturing subpattern count = 2
1091 ------------------------------------------------------------------
1097 ------------------------------------------------------------------
1098 Capturing subpattern count = 0
1099 Options: anchored utf8
1104 Failed: octal value is greater than \377 (not in UTF-8 mode) at offset 3
1107 Capturing subpattern count = 0
1117 ------------------------------------------------------------------
1123 ------------------------------------------------------------------
1124 Capturing subpattern count = 0
1125 Partial matching not supported
1131 ------------------------------------------------------------------
1137 ------------------------------------------------------------------
1138 Capturing subpattern count = 0
1139 Partial matching not supported
1145 ------------------------------------------------------------------
1151 ------------------------------------------------------------------
1152 Capturing subpattern count = 0
1153 Partial matching not supported
1159 ------------------------------------------------------------------
1165 ------------------------------------------------------------------
1166 Capturing subpattern count = 0
1167 Partial matching not supported
1173 ------------------------------------------------------------------
1179 ------------------------------------------------------------------
1180 Capturing subpattern count = 0
1181 Partial matching not supported
1187 ------------------------------------------------------------------
1193 ------------------------------------------------------------------
1194 Capturing subpattern count = 0
1195 Partial matching not supported
1200 /\x{100}+\x{200}/8DZ
1201 ------------------------------------------------------------------
1207 ------------------------------------------------------------------
1208 Capturing subpattern count = 0
1209 Partial matching not supported
1215 ------------------------------------------------------------------
1221 ------------------------------------------------------------------
1222 Capturing subpattern count = 0
1223 Partial matching not supported
1229 ------------------------------------------------------------------
1235 ------------------------------------------------------------------
1236 Capturing subpattern count = 0
1237 Partial matching not supported
1242 /()()()()()()()()()()
1243 ()()()()()()()()()()
1244 ()()()()()()()()()()
1245 ()()()()()()()()()()
1248 Matched, but too many substrings
1265 /^[\x{100}\E-\Q\E\x{150}]/BZ8
1266 ------------------------------------------------------------------
1272 ------------------------------------------------------------------
1275 ------------------------------------------------------------------
1281 ------------------------------------------------------------------
1284 Failed: missing terminating ] for character class at offset 15
1287 abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x{0085}abc7 \x{2028}abc8 \x{2029}abc9 JUNK
1299 abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x{0085} abc7\x{2028} abc8\x{2029} abc9
1310 /^a\Rb/8<bsr_unicode>
1332 /^a\R*b/8<bsr_unicode>
1343 a\x0c\x{2028}\x{2029}b
1344 0: a\x{0c}\x{2028}\x{2029}b
1350 0: a\x{0a}\x{0d}\x{85}\x{0c}b
1352 /^a\R+b/8<bsr_unicode>
1361 a\x0c\x{2028}\x{2029}b
1362 0: a\x{0c}\x{2028}\x{2029}b
1368 0: a\x{0a}\x{0d}\x{85}\x{0c}b
1374 /^a\R{1,3}b/8<bsr_unicode>
1380 0: a\x{0a}\x{0d}\x{85}b
1382 0: a\x{0d}\x{0a}\x{0d}\x{0a}b
1384 0: a\x{0d}\x{0a}\x{0d}\x{0a}\x{0d}\x{0a}b
1386 0: a\x{0a}\x{0d}\x{0a}\x{0d}b
1388 0: a\x{0a}\x{0a}\x{0d}\x{0a}b
1407 \x09\x20\x{a0}X\x0a\x0b\x0c\x0d\x0a
1408 0: \x{09} \x{a0}X\x{0a}\x{0b}\x{0c}\x{0d}
1409 \x09\x20\x{a0}\x0a\x0b\x0c\x0d\x0a
1410 0: \x{09} \x{a0}\x{0a}\x{0b}\x{0c}\x{0d}
1411 \x09\x20\x{a0}\x0a\x0b\x0c
1412 0: \x{09} \x{a0}\x{0a}\x{0b}\x{0c}
1415 \x09\x20\x{a0}\x0a\x0b
1419 \x{3001}\x{3000}\x{2030}\x{2028}
1420 0: \x{3001}\x{3000}\x{2030}\x{2028}
1429 \x{1680}\x{180e}\x{2007}X\x{2028}\x{2029}\x0c\x0d\x0a
1430 0: \x{1680}\x{180e}\x{2007}X\x{2028}\x{2029}\x{0c}\x{0d}
1431 \x09\x{205f}\x{a0}\x0a\x{2029}\x0c\x{2028}\x0a
1432 0: \x{09}\x{205f}\x{a0}\x{0a}\x{2029}\x{0c}\x{2028}
1433 \x09\x20\x{202f}\x0a\x0b\x0c
1434 0: \x{09} \x{202f}\x{0a}\x{0b}\x{0c}
1437 \x09\x{200a}\x{a0}\x{2028}\x0b
1441 ------------------------------------------------------------------
1443 [\x09 \xa0\x{1680}\x{180e}\x{2000}-\x{200a}\x{202f}\x{205f}\x{3000}]
1446 ------------------------------------------------------------------
1451 ------------------------------------------------------------------
1453 [\x09 \xa0\x{1680}\x{180e}\x{2000}-\x{200a}\x{202f}\x{205f}\x{3000}]{3,}
1456 ------------------------------------------------------------------
1457 >\x{1680}\x{180e}\x{2000}\x{2003}\x{200a}\x{202f}\x{205f}\x{3000}<
1458 0: \x{1680}\x{180e}\x{2000}\x{2003}\x{200a}\x{202f}\x{205f}\x{3000}
1461 ------------------------------------------------------------------
1463 [\x0a-\x0d\x85\x{2028}-\x{2029}]
1466 ------------------------------------------------------------------
1469 ------------------------------------------------------------------
1471 [\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{7fffffff}]
1474 ------------------------------------------------------------------
1477 ------------------------------------------------------------------
1479 [\x00-\x09\x0e-\x84\x86-\xff\x{100}-\x{2027}\x{2029}-\x{7fffffff}]
1482 ------------------------------------------------------------------
1488 /-- This tests the stricter UTF-8 check according to RFC 3629. --/
1491 \x{0}\x{d7ff}\x{e000}\x{10ffff}
1518 /a\Rb/I8<bsr_anycrlf>
1519 Capturing subpattern count = 0
1520 Options: bsr_anycrlf utf8
1536 /a\Rb/I8<bsr_unicode>
1537 Capturing subpattern count = 0
1538 Options: bsr_unicode utf8
1553 a\x{85}b\<bsr_anycrlf>
1555 a\x0bb\<bsr_anycrlf>
1558 /a\R?b/I8<bsr_anycrlf>
1559 Capturing subpattern count = 0
1560 Options: bsr_anycrlf utf8
1576 /a\R?b/I8<bsr_unicode>
1577 Capturing subpattern count = 0
1578 Options: bsr_unicode utf8
1593 a\x{85}b\<bsr_anycrlf>
1595 a\x0bb\<bsr_anycrlf>
1599 QQQ\x{2029}ABCaXYZ=!bPQR
1605 \x61\xe2\x80\xa9\x62
1609 Failed: unknown POSIX class name at offset 3
1625 0: a\x{0a}X\x{0a}X\x{1234}b
1636 ** Character \x{123} is greater than 255 and UTF-8 mode is not enabled.
1637 ** Truncation will probably give the wrong result.
1648 /(*CRLF)(*UTF8)(*BSR_UNICODE)a\Rb/I
1649 Capturing subpattern count = 0
1650 Options: bsr_unicode utf8
1651 Forced newline sequence: CRLF
1655 / End of testinput5 /