1 /-- This set of tests if for UTF-8 support, excluding Unicode properties. It is 2 compatible with all versions of Perl 5. --/ 3 4 /a.b/8 5 acb 6 a\x7fb 7 a\x{100}b 8 *** Failers 9 a\nb 10 11 /a(.{3})b/8 12 a\x{4000}xyb 13 a\x{4000}\x7fyb 14 a\x{4000}\x{100}yb 15 *** Failers 16 a\x{4000}b 17 ac\ncb 18 19 /a(.*?)(.)/ 20 a\xc0\x88b 21 22 /a(.*?)(.)/8 23 a\x{100}b 24 25 /a(.*)(.)/ 26 a\xc0\x88b 27 28 /a(.*)(.)/8 29 a\x{100}b 30 31 /a(.)(.)/ 32 a\xc0\x92bcd 33 34 /a(.)(.)/8 35 a\x{240}bcd 36 37 /a(.?)(.)/ 38 a\xc0\x92bcd 39 40 /a(.?)(.)/8 41 a\x{240}bcd 42 43 /a(.??)(.)/ 44 a\xc0\x92bcd 45 46 /a(.??)(.)/8 47 a\x{240}bcd 48 49 /a(.{3})b/8 50 a\x{1234}xyb 51 a\x{1234}\x{4321}yb 52 a\x{1234}\x{4321}\x{3412}b 53 *** Failers 54 a\x{1234}b 55 ac\ncb 56 57 /a(.{3,})b/8 58 a\x{1234}xyb 59 a\x{1234}\x{4321}yb 60 a\x{1234}\x{4321}\x{3412}b 61 axxxxbcdefghijb 62 a\x{1234}\x{4321}\x{3412}\x{3421}b 63 *** Failers 64 a\x{1234}b 65 66 /a(.{3,}?)b/8 67 a\x{1234}xyb 68 a\x{1234}\x{4321}yb 69 a\x{1234}\x{4321}\x{3412}b 70 axxxxbcdefghijb 71 a\x{1234}\x{4321}\x{3412}\x{3421}b 72 *** Failers 73 a\x{1234}b 74 75 /a(.{3,5})b/8 76 a\x{1234}xyb 77 a\x{1234}\x{4321}yb 78 a\x{1234}\x{4321}\x{3412}b 79 axxxxbcdefghijb 80 a\x{1234}\x{4321}\x{3412}\x{3421}b 81 axbxxbcdefghijb 82 axxxxxbcdefghijb 83 *** Failers 84 a\x{1234}b 85 axxxxxxbcdefghijb 86 87 /a(.{3,5}?)b/8 88 a\x{1234}xyb 89 a\x{1234}\x{4321}yb 90 a\x{1234}\x{4321}\x{3412}b 91 axxxxbcdefghijb 92 a\x{1234}\x{4321}\x{3412}\x{3421}b 93 axbxxbcdefghijb 94 axxxxxbcdefghijb 95 *** Failers 96 a\x{1234}b 97 axxxxxxbcdefghijb 98 99 /^[a\x{c0}]/8 100 *** Failers 101 \x{100} 102 103 /(?<=aXb)cd/8 104 aXbcd 105 106 /(?<=a\x{100}b)cd/8 107 a\x{100}bcd 108 109 /(?<=a\x{100000}b)cd/8 110 a\x{100000}bcd 111 112 /(?:\x{100}){3}b/8 113 \x{100}\x{100}\x{100}b 114 *** Failers 115 \x{100}\x{100}b 116 117 /\x{ab}/8 118 \x{ab} 119 \xc2\xab 120 *** Failers 121 \x00{ab} 122 123 /(?<=(.))X/8 124 WXYZ 125 \x{256}XYZ 126 *** Failers 127 XYZ 128 129 /X(\C{3})/8 130 X\x{1234} 131 132 /X(\C{4})/8 133 X\x{1234}YZ 134 135 /X\C*/8 136 XYZabcdce 137 138 /X\C*?/8 139 XYZabcde 140 141 /X\C{3,5}/8 142 Xabcdefg 143 X\x{1234} 144 X\x{1234}YZ 145 X\x{1234}\x{512} 146 X\x{1234}\x{512}YZ 147 148 /X\C{3,5}?/8 149 Xabcdefg 150 X\x{1234} 151 X\x{1234}YZ 152 X\x{1234}\x{512} 153 154 /[^a]+/8g 155 bcd 156 \x{100}aY\x{256}Z 157 158 /^[^a]{2}/8 159 \x{100}bc 160 161 /^[^a]{2,}/8 162 \x{100}bcAa 163 164 /^[^a]{2,}?/8 165 \x{100}bca 166 167 /[^a]+/8ig 168 bcd 169 \x{100}aY\x{256}Z 170 171 /^[^a]{2}/8i 172 \x{100}bc 173 174 /^[^a]{2,}/8i 175 \x{100}bcAa 176 177 /^[^a]{2,}?/8i 178 \x{100}bca 179 180 /\x{100}{0,0}/8 181 abcd 182 183 /\x{100}?/8 184 abcd 185 \x{100}\x{100} 186 187 /\x{100}{0,3}/8 188 \x{100}\x{100} 189 \x{100}\x{100}\x{100}\x{100} 190 191 /\x{100}*/8 192 abce 193 \x{100}\x{100}\x{100}\x{100} 194 195 /\x{100}{1,1}/8 196 abcd\x{100}\x{100}\x{100}\x{100} 197 198 /\x{100}{1,3}/8 199 abcd\x{100}\x{100}\x{100}\x{100} 200 201 /\x{100}+/8 202 abcd\x{100}\x{100}\x{100}\x{100} 203 204 /\x{100}{3}/8 205 abcd\x{100}\x{100}\x{100}XX 206 207 /\x{100}{3,5}/8 208 abcd\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}XX 209 210 /\x{100}{3,}/8 211 abcd\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}XX 212 213 /(?<=a\x{100}{2}b)X/8+ 214 Xyyya\x{100}\x{100}bXzzz 215 216 /\D*/8 217 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 218 219 /\D*/8 220 \x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100} 221 222 /\D/8 223 1X2 224 1\x{100}2 225 226 />\S/8 227 > >X Y 228 > >\x{100} Y 229 230 /\d/8 231 \x{100}3 232 233 /\s/8 234 \x{100} X 235 236 /\D+/8 237 12abcd34 238 *** Failers 239 1234 240 241 /\D{2,3}/8 242 12abcd34 243 12ab34 244 *** Failers 245 1234 246 12a34 247 248 /\D{2,3}?/8 249 12abcd34 250 12ab34 251 *** Failers 252 1234 253 12a34 254 255 /\d+/8 256 12abcd34 257 *** Failers 258 259 /\d{2,3}/8 260 12abcd34 261 1234abcd 262 *** Failers 263 1.4 264 265 /\d{2,3}?/8 266 12abcd34 267 1234abcd 268 *** Failers 269 1.4 270 271 /\S+/8 272 12abcd34 273 *** Failers 274 \ \ 275 276 /\S{2,3}/8 277 12abcd34 278 1234abcd 279 *** Failers 280 \ \ 281 282 /\S{2,3}?/8 283 12abcd34 284 1234abcd 285 *** Failers 286 \ \ 287 288 />\s+</8+ 289 12> <34 290 *** Failers 291 292 />\s{2,3}</8+ 293 ab> <cd 294 ab> <ce 295 *** Failers 296 ab> <cd 297 298 />\s{2,3}?</8+ 299 ab> <cd 300 ab> <ce 301 *** Failers 302 ab> <cd 303 304 /\w+/8 305 12 34 306 *** Failers 307 +++=*! 308 309 /\w{2,3}/8 310 ab cd 311 abcd ce 312 *** Failers 313 a.b.c 314 315 /\w{2,3}?/8 316 ab cd 317 abcd ce 318 *** Failers 319 a.b.c 320 321 /\W+/8 322 12====34 323 *** Failers 324 abcd 325 326 /\W{2,3}/8 327 ab====cd 328 ab==cd 329 *** Failers 330 a.b.c 331 332 /\W{2,3}?/8 333 ab====cd 334 ab==cd 335 *** Failers 336 a.b.c 337 338 /[\x{100}]/8 339 \x{100} 340 Z\x{100} 341 \x{100}Z 342 *** Failers 343 344 /[Z\x{100}]/8 345 Z\x{100} 346 \x{100} 347 \x{100}Z 348 *** Failers 349 350 /[\x{100}\x{200}]/8 351 ab\x{100}cd 352 ab\x{200}cd 353 *** Failers 354 355 /[\x{100}-\x{200}]/8 356 ab\x{100}cd 357 ab\x{200}cd 358 ab\x{111}cd 359 *** Failers 360 361 /[z-\x{200}]/8 362 ab\x{100}cd 363 ab\x{200}cd 364 ab\x{111}cd 365 abzcd 366 ab|cd 367 *** Failers 368 369 /[Q\x{100}\x{200}]/8 370 ab\x{100}cd 371 ab\x{200}cd 372 Q? 373 *** Failers 374 375 /[Q\x{100}-\x{200}]/8 376 ab\x{100}cd 377 ab\x{200}cd 378 ab\x{111}cd 379 Q? 380 *** Failers 381 382 /[Qz-\x{200}]/8 383 ab\x{100}cd 384 ab\x{200}cd 385 ab\x{111}cd 386 abzcd 387 ab|cd 388 Q? 389 *** Failers 390 391 /[\x{100}\x{200}]{1,3}/8 392 ab\x{100}cd 393 ab\x{200}cd 394 ab\x{200}\x{100}\x{200}\x{100}cd 395 *** Failers 396 397 /[\x{100}\x{200}]{1,3}?/8 398 ab\x{100}cd 399 ab\x{200}cd 400 ab\x{200}\x{100}\x{200}\x{100}cd 401 *** Failers 402 403 /[Q\x{100}\x{200}]{1,3}/8 404 ab\x{100}cd 405 ab\x{200}cd 406 ab\x{200}\x{100}\x{200}\x{100}cd 407 *** Failers 408 409 /[Q\x{100}\x{200}]{1,3}?/8 410 ab\x{100}cd 411 ab\x{200}cd 412 ab\x{200}\x{100}\x{200}\x{100}cd 413 *** Failers 414 415 /(?<=[\x{100}\x{200}])X/8 416 abc\x{200}X 417 abc\x{100}X 418 *** Failers 419 X 420 421 /(?<=[Q\x{100}\x{200}])X/8 422 abc\x{200}X 423 abc\x{100}X 424 abQX 425 *** Failers 426 X 427 428 /(?<=[\x{100}\x{200}]{3})X/8 429 abc\x{100}\x{200}\x{100}X 430 *** Failers 431 abc\x{200}X 432 X 433 434 /[^\x{100}\x{200}]X/8 435 AX 436 \x{150}X 437 \x{500}X 438 *** Failers 439 \x{100}X 440 \x{200}X 441 442 /[^Q\x{100}\x{200}]X/8 443 AX 444 \x{150}X 445 \x{500}X 446 *** Failers 447 \x{100}X 448 \x{200}X 449 QX 450 451 /[^\x{100}-\x{200}]X/8 452 AX 453 \x{500}X 454 *** Failers 455 \x{100}X 456 \x{150}X 457 \x{200}X 458 459 /a\Cb/ 460 aXb 461 a\nb 462 463 /a\Cb/8 464 aXb 465 a\nb 466 467 /a\C\Cb/8 468 a\x{100}b 469 470 /[z-\x{100}]/8i 471 z 472 Z 473 \x{100} 474 *** Failers 475 \x{102} 476 y 477 478 /[\xFF]/ 479 >\xff< 480 481 /[\xff]/8 482 >\x{ff}< 483 484 /[^\xFF]/ 485 XYZ 486 487 /[^\xff]/8 488 XYZ 489 \x{123} 490 491 /^[ac]*b/8 492 xb 493 494 /^[ac\x{100}]*b/8 495 xb 496 497 /^[^x]*b/8i 498 xb 499 500 /^[^x]*b/8 501 xb 502 503 /^\d*b/8 504 xb 505 506 /(|a)/g8 507 catac 508 a\x{256}a 509 510 /^\x{85}$/8i 511 \x{85} 512 513 /^/8 514 515 516 /^\/8 517 518 519 "(?s)(.{1,5})"8 520 abcdefg 521 ab 522 523 /a*\x{100}*\w/8 524 a 525 526 /\S\S/8g 527 A\x{a3}BC 528 529 /\S{2}/8g 530 A\x{a3}BC 531 532 /\W\W/8g 533 +\x{a3}== 534 535 /\W{2}/8g 536 +\x{a3}== 537 538 /\S/8g 539 \x{442}\x{435}\x{441}\x{442} 540 541 /[\S]/8g 542 \x{442}\x{435}\x{441}\x{442} 543 544 /\D/8g 545 \x{442}\x{435}\x{441}\x{442} 546 547 /[\D]/8g 548 \x{442}\x{435}\x{441}\x{442} 549 550 /\W/8g 551 \x{2442}\x{2435}\x{2441}\x{2442} 552 553 /[\W]/8g 554 \x{2442}\x{2435}\x{2441}\x{2442} 555 556 /[\S\s]*/8 557 abc\n\r\x{442}\x{435}\x{441}\x{442}xyz 558 559 /[\x{41f}\S]/8g 560 \x{442}\x{435}\x{441}\x{442} 561 562 /.[^\S]./8g 563 abc def\x{442}\x{443}xyz\npqr 564 565 /.[^\S\n]./8g 566 abc def\x{442}\x{443}xyz\npqr 567 568 /[[:^alnum:]]/8g 569 +\x{2442} 570 571 /[[:^alpha:]]/8g 572 +\x{2442} 573 574 /[[:^ascii:]]/8g 575 A\x{442} 576 577 /[[:^blank:]]/8g 578 A\x{442} 579 580 /[[:^cntrl:]]/8g 581 A\x{442} 582 583 /[[:^digit:]]/8g 584 A\x{442} 585 586 /[[:^graph:]]/8g 587 \x19\x{e01ff} 588 589 /[[:^lower:]]/8g 590 A\x{422} 591 592 /[[:^print:]]/8g 593 \x{19}\x{e01ff} 594 595 /[[:^punct:]]/8g 596 A\x{442} 597 598 /[[:^space:]]/8g 599 A\x{442} 600 601 /[[:^upper:]]/8g 602 a\x{442} 603 604 /[[:^word:]]/8g 605 +\x{2442} 606 607 /[[:^xdigit:]]/8g 608 M\x{442} 609 610 /[^ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\d-_^]/8 611 612 /^[^d]*?$/ 613 abc 614 615 /^[^d]*?$/8 616 abc 617 618 /^[^d]*?$/i 619 abc 620 621 /^[^d]*?$/8i 622 abc 623 624 /(?i)[\xc3\xa9\xc3\xbd]|[\xc3\xa9\xc3\xbdA]/8 625 626 /^[a\x{c0}]b/8 627 \x{c0}b 628 629 /^([a\x{c0}]*?)aa/8 630 a\x{c0}aaaa/ 631 632 /^([a\x{c0}]*?)aa/8 633 a\x{c0}aaaa/ 634 a\x{c0}a\x{c0}aaa/ 635 636 /^([a\x{c0}]*)aa/8 637 a\x{c0}aaaa/ 638 a\x{c0}a\x{c0}aaa/ 639 640 /^([a\x{c0}]*)a\x{c0}/8 641 a\x{c0}aaaa/ 642 a\x{c0}a\x{c0}aaa/ 643 644 /A*/g8 645 AAB\x{123}BAA 646 647 /-- End of testinput4 --/ 648