xref: /PHP-5.3/ext/pcre/pcrelib/testdata/testoutput4 (revision 276c5de0)
1/-- This set of tests is for UTF support, excluding Unicode properties. It is
2    compatible with all versions of Perl >= 5.10 and both the 8-bit and 16-bit
3    PCRE libraries. --/
4
5/a.b/8
6    acb
7 0: acb
8    a\x7fb
9 0: a\x{7f}b
10    a\x{100}b
11 0: a\x{100}b
12    *** Failers
13No match
14    a\nb
15No match
16
17/a(.{3})b/8
18    a\x{4000}xyb
19 0: a\x{4000}xyb
20 1: \x{4000}xy
21    a\x{4000}\x7fyb
22 0: a\x{4000}\x{7f}yb
23 1: \x{4000}\x{7f}y
24    a\x{4000}\x{100}yb
25 0: a\x{4000}\x{100}yb
26 1: \x{4000}\x{100}y
27    *** Failers
28No match
29    a\x{4000}b
30No match
31    ac\ncb
32No match
33
34/a(.*?)(.)/
35    a\xc0\x88b
36 0: a\xc0
37 1:
38 2: \xc0
39
40/a(.*?)(.)/8
41    a\x{100}b
42 0: a\x{100}
43 1:
44 2: \x{100}
45
46/a(.*)(.)/
47    a\xc0\x88b
48 0: a\xc0\x88b
49 1: \xc0\x88
50 2: b
51
52/a(.*)(.)/8
53    a\x{100}b
54 0: a\x{100}b
55 1: \x{100}
56 2: b
57
58/a(.)(.)/
59    a\xc0\x92bcd
60 0: a\xc0\x92
61 1: \xc0
62 2: \x92
63
64/a(.)(.)/8
65    a\x{240}bcd
66 0: a\x{240}b
67 1: \x{240}
68 2: b
69
70/a(.?)(.)/
71    a\xc0\x92bcd
72 0: a\xc0\x92
73 1: \xc0
74 2: \x92
75
76/a(.?)(.)/8
77    a\x{240}bcd
78 0: a\x{240}b
79 1: \x{240}
80 2: b
81
82/a(.??)(.)/
83    a\xc0\x92bcd
84 0: a\xc0
85 1:
86 2: \xc0
87
88/a(.??)(.)/8
89    a\x{240}bcd
90 0: a\x{240}
91 1:
92 2: \x{240}
93
94/a(.{3})b/8
95    a\x{1234}xyb
96 0: a\x{1234}xyb
97 1: \x{1234}xy
98    a\x{1234}\x{4321}yb
99 0: a\x{1234}\x{4321}yb
100 1: \x{1234}\x{4321}y
101    a\x{1234}\x{4321}\x{3412}b
102 0: a\x{1234}\x{4321}\x{3412}b
103 1: \x{1234}\x{4321}\x{3412}
104    *** Failers
105No match
106    a\x{1234}b
107No match
108    ac\ncb
109No match
110
111/a(.{3,})b/8
112    a\x{1234}xyb
113 0: a\x{1234}xyb
114 1: \x{1234}xy
115    a\x{1234}\x{4321}yb
116 0: a\x{1234}\x{4321}yb
117 1: \x{1234}\x{4321}y
118    a\x{1234}\x{4321}\x{3412}b
119 0: a\x{1234}\x{4321}\x{3412}b
120 1: \x{1234}\x{4321}\x{3412}
121    axxxxbcdefghijb
122 0: axxxxbcdefghijb
123 1: xxxxbcdefghij
124    a\x{1234}\x{4321}\x{3412}\x{3421}b
125 0: a\x{1234}\x{4321}\x{3412}\x{3421}b
126 1: \x{1234}\x{4321}\x{3412}\x{3421}
127    *** Failers
128No match
129    a\x{1234}b
130No match
131
132/a(.{3,}?)b/8
133    a\x{1234}xyb
134 0: a\x{1234}xyb
135 1: \x{1234}xy
136    a\x{1234}\x{4321}yb
137 0: a\x{1234}\x{4321}yb
138 1: \x{1234}\x{4321}y
139    a\x{1234}\x{4321}\x{3412}b
140 0: a\x{1234}\x{4321}\x{3412}b
141 1: \x{1234}\x{4321}\x{3412}
142    axxxxbcdefghijb
143 0: axxxxb
144 1: xxxx
145    a\x{1234}\x{4321}\x{3412}\x{3421}b
146 0: a\x{1234}\x{4321}\x{3412}\x{3421}b
147 1: \x{1234}\x{4321}\x{3412}\x{3421}
148    *** Failers
149No match
150    a\x{1234}b
151No match
152
153/a(.{3,5})b/8
154    a\x{1234}xyb
155 0: a\x{1234}xyb
156 1: \x{1234}xy
157    a\x{1234}\x{4321}yb
158 0: a\x{1234}\x{4321}yb
159 1: \x{1234}\x{4321}y
160    a\x{1234}\x{4321}\x{3412}b
161 0: a\x{1234}\x{4321}\x{3412}b
162 1: \x{1234}\x{4321}\x{3412}
163    axxxxbcdefghijb
164 0: axxxxb
165 1: xxxx
166    a\x{1234}\x{4321}\x{3412}\x{3421}b
167 0: a\x{1234}\x{4321}\x{3412}\x{3421}b
168 1: \x{1234}\x{4321}\x{3412}\x{3421}
169    axbxxbcdefghijb
170 0: axbxxb
171 1: xbxx
172    axxxxxbcdefghijb
173 0: axxxxxb
174 1: xxxxx
175    *** Failers
176No match
177    a\x{1234}b
178No match
179    axxxxxxbcdefghijb
180No match
181
182/a(.{3,5}?)b/8
183    a\x{1234}xyb
184 0: a\x{1234}xyb
185 1: \x{1234}xy
186    a\x{1234}\x{4321}yb
187 0: a\x{1234}\x{4321}yb
188 1: \x{1234}\x{4321}y
189    a\x{1234}\x{4321}\x{3412}b
190 0: a\x{1234}\x{4321}\x{3412}b
191 1: \x{1234}\x{4321}\x{3412}
192    axxxxbcdefghijb
193 0: axxxxb
194 1: xxxx
195    a\x{1234}\x{4321}\x{3412}\x{3421}b
196 0: a\x{1234}\x{4321}\x{3412}\x{3421}b
197 1: \x{1234}\x{4321}\x{3412}\x{3421}
198    axbxxbcdefghijb
199 0: axbxxb
200 1: xbxx
201    axxxxxbcdefghijb
202 0: axxxxxb
203 1: xxxxx
204    *** Failers
205No match
206    a\x{1234}b
207No match
208    axxxxxxbcdefghijb
209No match
210
211/^[a\x{c0}]/8
212    *** Failers
213No match
214    \x{100}
215No match
216
217/(?<=aXb)cd/8
218    aXbcd
219 0: cd
220
221/(?<=a\x{100}b)cd/8
222    a\x{100}bcd
223 0: cd
224
225/(?<=a\x{100000}b)cd/8
226    a\x{100000}bcd
227 0: cd
228
229/(?:\x{100}){3}b/8
230    \x{100}\x{100}\x{100}b
231 0: \x{100}\x{100}\x{100}b
232    *** Failers
233No match
234    \x{100}\x{100}b
235No match
236
237/\x{ab}/8
238    \x{ab}
239 0: \x{ab}
240    \xc2\xab
241 0: \x{ab}
242    *** Failers
243No match
244    \x00{ab}
245No match
246
247/(?<=(.))X/8
248    WXYZ
249 0: X
250 1: W
251    \x{256}XYZ
252 0: X
253 1: \x{256}
254    *** Failers
255No match
256    XYZ
257No match
258
259/[^a]+/8g
260    bcd
261 0: bcd
262    \x{100}aY\x{256}Z
263 0: \x{100}
264 0: Y\x{256}Z
265
266/^[^a]{2}/8
267    \x{100}bc
268 0: \x{100}b
269
270/^[^a]{2,}/8
271    \x{100}bcAa
272 0: \x{100}bcA
273
274/^[^a]{2,}?/8
275    \x{100}bca
276 0: \x{100}b
277
278/[^a]+/8ig
279    bcd
280 0: bcd
281    \x{100}aY\x{256}Z
282 0: \x{100}
283 0: Y\x{256}Z
284
285/^[^a]{2}/8i
286    \x{100}bc
287 0: \x{100}b
288
289/^[^a]{2,}/8i
290    \x{100}bcAa
291 0: \x{100}bc
292
293/^[^a]{2,}?/8i
294    \x{100}bca
295 0: \x{100}b
296
297/\x{100}{0,0}/8
298    abcd
299 0:
300
301/\x{100}?/8
302    abcd
303 0:
304    \x{100}\x{100}
305 0: \x{100}
306
307/\x{100}{0,3}/8
308    \x{100}\x{100}
309 0: \x{100}\x{100}
310    \x{100}\x{100}\x{100}\x{100}
311 0: \x{100}\x{100}\x{100}
312
313/\x{100}*/8
314    abce
315 0:
316    \x{100}\x{100}\x{100}\x{100}
317 0: \x{100}\x{100}\x{100}\x{100}
318
319/\x{100}{1,1}/8
320    abcd\x{100}\x{100}\x{100}\x{100}
321 0: \x{100}
322
323/\x{100}{1,3}/8
324    abcd\x{100}\x{100}\x{100}\x{100}
325 0: \x{100}\x{100}\x{100}
326
327/\x{100}+/8
328    abcd\x{100}\x{100}\x{100}\x{100}
329 0: \x{100}\x{100}\x{100}\x{100}
330
331/\x{100}{3}/8
332    abcd\x{100}\x{100}\x{100}XX
333 0: \x{100}\x{100}\x{100}
334
335/\x{100}{3,5}/8
336    abcd\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}XX
337 0: \x{100}\x{100}\x{100}\x{100}\x{100}
338
339/\x{100}{3,}/8
340    abcd\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}XX
341 0: \x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}
342
343/(?<=a\x{100}{2}b)X/8+
344    Xyyya\x{100}\x{100}bXzzz
345 0: X
346 0+ zzz
347
348/\D*/8
349  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
350 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
351
352/\D*/8
353  \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}
354 0: \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}
355
356/\D/8
357    1X2
358 0: X
359    1\x{100}2
360 0: \x{100}
361
362/>\S/8
363    > >X Y
364 0: >X
365    > >\x{100} Y
366 0: >\x{100}
367
368/\d/8
369    \x{100}3
370 0: 3
371
372/\s/8
373    \x{100} X
374 0:
375
376/\D+/8
377    12abcd34
378 0: abcd
379    *** Failers
380 0: *** Failers
381    1234
382No match
383
384/\D{2,3}/8
385    12abcd34
386 0: abc
387    12ab34
388 0: ab
389    *** Failers
390 0: ***
391    1234
392No match
393    12a34
394No match
395
396/\D{2,3}?/8
397    12abcd34
398 0: ab
399    12ab34
400 0: ab
401    *** Failers
402 0: **
403    1234
404No match
405    12a34
406No match
407
408/\d+/8
409    12abcd34
410 0: 12
411    *** Failers
412No match
413
414/\d{2,3}/8
415    12abcd34
416 0: 12
417    1234abcd
418 0: 123
419    *** Failers
420No match
421    1.4
422No match
423
424/\d{2,3}?/8
425    12abcd34
426 0: 12
427    1234abcd
428 0: 12
429    *** Failers
430No match
431    1.4
432No match
433
434/\S+/8
435    12abcd34
436 0: 12abcd34
437    *** Failers
438 0: ***
439    \    \
440No match
441
442/\S{2,3}/8
443    12abcd34
444 0: 12a
445    1234abcd
446 0: 123
447    *** Failers
448 0: ***
449    \     \
450No match
451
452/\S{2,3}?/8
453    12abcd34
454 0: 12
455    1234abcd
456 0: 12
457    *** Failers
458 0: **
459    \     \
460No match
461
462/>\s+</8+
463    12>      <34
464 0: >      <
465 0+ 34
466    *** Failers
467No match
468
469/>\s{2,3}</8+
470    ab>  <cd
471 0: >  <
472 0+ cd
473    ab>   <ce
474 0: >   <
475 0+ ce
476    *** Failers
477No match
478    ab>    <cd
479No match
480
481/>\s{2,3}?</8+
482    ab>  <cd
483 0: >  <
484 0+ cd
485    ab>   <ce
486 0: >   <
487 0+ ce
488    *** Failers
489No match
490    ab>    <cd
491No match
492
493/\w+/8
494    12      34
495 0: 12
496    *** Failers
497 0: Failers
498    +++=*!
499No match
500
501/\w{2,3}/8
502    ab  cd
503 0: ab
504    abcd ce
505 0: abc
506    *** Failers
507 0: Fai
508    a.b.c
509No match
510
511/\w{2,3}?/8
512    ab  cd
513 0: ab
514    abcd ce
515 0: ab
516    *** Failers
517 0: Fa
518    a.b.c
519No match
520
521/\W+/8
522    12====34
523 0: ====
524    *** Failers
525 0: ***
526    abcd
527No match
528
529/\W{2,3}/8
530    ab====cd
531 0: ===
532    ab==cd
533 0: ==
534    *** Failers
535 0: ***
536    a.b.c
537No match
538
539/\W{2,3}?/8
540    ab====cd
541 0: ==
542    ab==cd
543 0: ==
544    *** Failers
545 0: **
546    a.b.c
547No match
548
549/[\x{100}]/8
550    \x{100}
551 0: \x{100}
552    Z\x{100}
553 0: \x{100}
554    \x{100}Z
555 0: \x{100}
556    *** Failers
557No match
558
559/[Z\x{100}]/8
560    Z\x{100}
561 0: Z
562    \x{100}
563 0: \x{100}
564    \x{100}Z
565 0: \x{100}
566    *** Failers
567No match
568
569/[\x{100}\x{200}]/8
570   ab\x{100}cd
571 0: \x{100}
572   ab\x{200}cd
573 0: \x{200}
574   *** Failers
575No match
576
577/[\x{100}-\x{200}]/8
578   ab\x{100}cd
579 0: \x{100}
580   ab\x{200}cd
581 0: \x{200}
582   ab\x{111}cd
583 0: \x{111}
584   *** Failers
585No match
586
587/[z-\x{200}]/8
588   ab\x{100}cd
589 0: \x{100}
590   ab\x{200}cd
591 0: \x{200}
592   ab\x{111}cd
593 0: \x{111}
594   abzcd
595 0: z
596   ab|cd
597 0: |
598   *** Failers
599No match
600
601/[Q\x{100}\x{200}]/8
602   ab\x{100}cd
603 0: \x{100}
604   ab\x{200}cd
605 0: \x{200}
606   Q?
607 0: Q
608   *** Failers
609No match
610
611/[Q\x{100}-\x{200}]/8
612   ab\x{100}cd
613 0: \x{100}
614   ab\x{200}cd
615 0: \x{200}
616   ab\x{111}cd
617 0: \x{111}
618   Q?
619 0: Q
620   *** Failers
621No match
622
623/[Qz-\x{200}]/8
624   ab\x{100}cd
625 0: \x{100}
626   ab\x{200}cd
627 0: \x{200}
628   ab\x{111}cd
629 0: \x{111}
630   abzcd
631 0: z
632   ab|cd
633 0: |
634   Q?
635 0: Q
636   *** Failers
637No match
638
639/[\x{100}\x{200}]{1,3}/8
640   ab\x{100}cd
641 0: \x{100}
642   ab\x{200}cd
643 0: \x{200}
644   ab\x{200}\x{100}\x{200}\x{100}cd
645 0: \x{200}\x{100}\x{200}
646   *** Failers
647No match
648
649/[\x{100}\x{200}]{1,3}?/8
650   ab\x{100}cd
651 0: \x{100}
652   ab\x{200}cd
653 0: \x{200}
654   ab\x{200}\x{100}\x{200}\x{100}cd
655 0: \x{200}
656   *** Failers
657No match
658
659/[Q\x{100}\x{200}]{1,3}/8
660   ab\x{100}cd
661 0: \x{100}
662   ab\x{200}cd
663 0: \x{200}
664   ab\x{200}\x{100}\x{200}\x{100}cd
665 0: \x{200}\x{100}\x{200}
666   *** Failers
667No match
668
669/[Q\x{100}\x{200}]{1,3}?/8
670   ab\x{100}cd
671 0: \x{100}
672   ab\x{200}cd
673 0: \x{200}
674   ab\x{200}\x{100}\x{200}\x{100}cd
675 0: \x{200}
676   *** Failers
677No match
678
679/(?<=[\x{100}\x{200}])X/8
680    abc\x{200}X
681 0: X
682    abc\x{100}X
683 0: X
684    *** Failers
685No match
686    X
687No match
688
689/(?<=[Q\x{100}\x{200}])X/8
690    abc\x{200}X
691 0: X
692    abc\x{100}X
693 0: X
694    abQX
695 0: X
696    *** Failers
697No match
698    X
699No match
700
701/(?<=[\x{100}\x{200}]{3})X/8
702    abc\x{100}\x{200}\x{100}X
703 0: X
704    *** Failers
705No match
706    abc\x{200}X
707No match
708    X
709No match
710
711/[^\x{100}\x{200}]X/8
712    AX
713 0: AX
714    \x{150}X
715 0: \x{150}X
716    \x{500}X
717 0: \x{500}X
718    *** Failers
719No match
720    \x{100}X
721No match
722    \x{200}X
723No match
724
725/[^Q\x{100}\x{200}]X/8
726    AX
727 0: AX
728    \x{150}X
729 0: \x{150}X
730    \x{500}X
731 0: \x{500}X
732    *** Failers
733No match
734    \x{100}X
735No match
736    \x{200}X
737No match
738    QX
739No match
740
741/[^\x{100}-\x{200}]X/8
742    AX
743 0: AX
744    \x{500}X
745 0: \x{500}X
746    *** Failers
747No match
748    \x{100}X
749No match
750    \x{150}X
751No match
752    \x{200}X
753No match
754
755/[z-\x{100}]/8i
756    z
757 0: z
758    Z
759 0: Z
760    \x{100}
761 0: \x{100}
762    *** Failers
763No match
764    \x{102}
765No match
766    y
767No match
768
769/[\xFF]/
770    >\xff<
771 0: \xff
772
773/[\xff]/8
774    >\x{ff}<
775 0: \x{ff}
776
777/[^\xFF]/
778    XYZ
779 0: X
780
781/[^\xff]/8
782    XYZ
783 0: X
784    \x{123}
785 0: \x{123}
786
787/^[ac]*b/8
788  xb
789No match
790
791/^[ac\x{100}]*b/8
792  xb
793No match
794
795/^[^x]*b/8i
796  xb
797No match
798
799/^[^x]*b/8
800  xb
801No match
802
803/^\d*b/8
804  xb
805No match
806
807/(|a)/g8
808    catac
809 0:
810 1:
811 0:
812 1:
813 0: a
814 1: a
815 0:
816 1:
817 0:
818 1:
819 0: a
820 1: a
821 0:
822 1:
823 0:
824 1:
825    a\x{256}a
826 0:
827 1:
828 0: a
829 1: a
830 0:
831 1:
832 0:
833 1:
834 0: a
835 1: a
836 0:
837 1:
838
839/^\x{85}$/8i
840    \x{85}
841 0: \x{85}
842
843/^ሴ/8
844845 0: \x{1234}
846
847/^\ሴ/8
848849 0: \x{1234}
850
851"(?s)(.{1,5})"8
852    abcdefg
853 0: abcde
854 1: abcde
855    ab
856 0: ab
857 1: ab
858
859/a*\x{100}*\w/8
860    a
861 0: a
862
863/\S\S/8g
864    A\x{a3}BC
865 0: A\x{a3}
866 0: BC
867
868/\S{2}/8g
869    A\x{a3}BC
870 0: A\x{a3}
871 0: BC
872
873/\W\W/8g
874    +\x{a3}==
875 0: +\x{a3}
876 0: ==
877
878/\W{2}/8g
879    +\x{a3}==
880 0: +\x{a3}
881 0: ==
882
883/\S/8g
884    \x{442}\x{435}\x{441}\x{442}
885 0: \x{442}
886 0: \x{435}
887 0: \x{441}
888 0: \x{442}
889
890/[\S]/8g
891    \x{442}\x{435}\x{441}\x{442}
892 0: \x{442}
893 0: \x{435}
894 0: \x{441}
895 0: \x{442}
896
897/\D/8g
898    \x{442}\x{435}\x{441}\x{442}
899 0: \x{442}
900 0: \x{435}
901 0: \x{441}
902 0: \x{442}
903
904/[\D]/8g
905    \x{442}\x{435}\x{441}\x{442}
906 0: \x{442}
907 0: \x{435}
908 0: \x{441}
909 0: \x{442}
910
911/\W/8g
912    \x{2442}\x{2435}\x{2441}\x{2442}
913 0: \x{2442}
914 0: \x{2435}
915 0: \x{2441}
916 0: \x{2442}
917
918/[\W]/8g
919    \x{2442}\x{2435}\x{2441}\x{2442}
920 0: \x{2442}
921 0: \x{2435}
922 0: \x{2441}
923 0: \x{2442}
924
925/[\S\s]*/8
926    abc\n\r\x{442}\x{435}\x{441}\x{442}xyz
927 0: abc\x{0a}\x{0d}\x{442}\x{435}\x{441}\x{442}xyz
928
929/[\x{41f}\S]/8g
930    \x{442}\x{435}\x{441}\x{442}
931 0: \x{442}
932 0: \x{435}
933 0: \x{441}
934 0: \x{442}
935
936/.[^\S]./8g
937    abc def\x{442}\x{443}xyz\npqr
938 0: c d
939 0: z\x{0a}p
940
941/.[^\S\n]./8g
942    abc def\x{442}\x{443}xyz\npqr
943 0: c d
944
945/[[:^alnum:]]/8g
946    +\x{2442}
947 0: +
948 0: \x{2442}
949
950/[[:^alpha:]]/8g
951    +\x{2442}
952 0: +
953 0: \x{2442}
954
955/[[:^ascii:]]/8g
956    A\x{442}
957 0: \x{442}
958
959/[[:^blank:]]/8g
960    A\x{442}
961 0: A
962 0: \x{442}
963
964/[[:^cntrl:]]/8g
965    A\x{442}
966 0: A
967 0: \x{442}
968
969/[[:^digit:]]/8g
970    A\x{442}
971 0: A
972 0: \x{442}
973
974/[[:^graph:]]/8g
975    \x19\x{e01ff}
976 0: \x{19}
977 0: \x{e01ff}
978
979/[[:^lower:]]/8g
980    A\x{422}
981 0: A
982 0: \x{422}
983
984/[[:^print:]]/8g
985    \x{19}\x{e01ff}
986 0: \x{19}
987 0: \x{e01ff}
988
989/[[:^punct:]]/8g
990    A\x{442}
991 0: A
992 0: \x{442}
993
994/[[:^space:]]/8g
995    A\x{442}
996 0: A
997 0: \x{442}
998
999/[[:^upper:]]/8g
1000    a\x{442}
1001 0: a
1002 0: \x{442}
1003
1004/[[:^word:]]/8g
1005    +\x{2442}
1006 0: +
1007 0: \x{2442}
1008
1009/[[:^xdigit:]]/8g
1010    M\x{442}
1011 0: M
1012 0: \x{442}
1013
1014/[^ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞĀĂĄĆĈĊČĎĐĒĔĖĘĚĜĞĠĢĤĦĨĪĬĮİIJĴĶĹĻĽĿŁŃŅŇŊŌŎŐŒŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽƁƂƄƆƇƉƊƋƎƏƐƑƓƔƖƗƘƜƝƟƠƢƤƦƧƩƬƮƯƱƲƳƵƷƸƼDŽLJNJǍǏǑǓǕǗǙǛǞǠǢǤǦǨǪǬǮDZǴǶǷǸǺǼǾȀȂȄȆȈȊȌȎȐȒȔȖȘȚȜȞȠȢȤȦȨȪȬȮȰȲȺȻȽȾɁΆΈΉΊΌΎΏΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫϒϓϔϘϚϜϞϠϢϤϦϨϪϬϮϴϷϹϺϽϾϿЀЁЂЃЄЅІЇЈЉЊЋЌЍЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯѠѢѤѦѨѪѬѮѰѲѴѶѸѺѼѾҀҊҌҎҐҒҔҖҘҚҜҞҠҢҤҦҨҪҬҮҰҲҴҶҸҺҼҾӀӁӃӅӇӉӋӍӐӒӔӖӘӚӜӞӠӢӤӦӨӪӬӮӰӲӴӶӸԀԂԄԆԈԊԌԎԱԲԳԴԵԶԷԸԹԺԻԼԽԾԿՀՁՂՃՄՅՆՇՈՉՊՋՌՍՎՏՐՑՒՓՔՕՖႠႡႢႣႤႥႦႧႨႩႪႫႬႭႮႯႰႱႲႳႴႵႶႷႸႹႺႻႼႽႾႿჀჁჂჃჄჅḀḂḄḆḈḊḌḎḐḒḔḖḘḚḜḞḠḢḤḦḨḪḬḮḰḲḴḶḸḺḼḾṀṂṄṆṈṊṌṎṐṒṔṖṘṚṜṞṠṢṤṦṨṪṬṮṰṲṴṶṸṺṼṾẀẂẄẆẈẊẌẎẐẒẔẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼẾỀỂỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪỬỮỰỲỴỶỸἈἉἊἋἌἍἎἏἘἙἚἛἜἝἨἩἪἫἬἭἮἯἸἹἺἻἼἽἾἿὈὉὊὋὌὍὙὛὝὟὨὩὪὫὬὭὮὯᾸᾹᾺΆῈΈῊΉῘῙῚΊῨῩῪΎῬῸΌῺΏabcdefghijklmnopqrstuvwxyzªµºßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıijĵķĸĺļľŀłńņňʼnŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷźżžſƀƃƅƈƌƍƒƕƙƚƛƞơƣƥƨƪƫƭưƴƶƹƺƽƾƿdžljnjǎǐǒǔǖǘǚǜǝǟǡǣǥǧǩǫǭǯǰdzǵǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟȡȣȥȧȩȫȭȯȱȳȴȵȶȷȸȹȼȿɀɐɑɒɓɔɕɖɗɘəɚɛɜɝɞɟɠɡɢɣɤɥɦɧɨɩɪɫɬɭɮɯɰɱɲɳɴɵɶɷɸɹɺɻɼɽɾɿʀʁʂʃʄʅʆʇʈʉʊʋʌʍʎʏʐʑʒʓʔʕʖʗʘʙʚʛʜʝʞʟʠʡʢʣʤʥʦʧʨʩʪʫʬʭʮʯΐάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϐϑϕϖϗϙϛϝϟϡϣϥϧϩϫϭϯϰϱϲϳϵϸϻϼабвгдежзийклмнопрстуфхцчшщъыьэюяѐёђѓєѕіїјљњћќѝўџѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹԁԃԅԇԉԋԍԏաբգդեզէըթժիլխծկհձղճմյնշոչպջռսվտրցւփքօֆևᴀᴁᴂᴃᴄᴅᴆᴇᴈᴉᴊᴋᴌᴍᴎᴏᴐᴑᴒᴓᴔᴕᴖᴗᴘᴙᴚᴛᴜᴝᴞᴟᴠᴡᴢᴣᴤᴥᴦᴧᴨᴩᴪᴫᵢᵣᵤᵥᵦᵧᵨᵩᵪᵫᵬᵭᵮᵯᵰᵱᵲᵳᵴᵵᵶᵷᵹᵺᵻᵼᵽᵾᵿᶀᶁᶂᶃᶄᶅᶆᶇᶈᶉᶊᶋᶌᶍᶎᶏᶐᶑᶒᶓᶔᶕᶖᶗᶘᶙᶚḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕẖẗẘẙẚẛạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹἀἁἂἃἄἅἆἇἐἑἒἓἔἕἠἡἢἣἤἥἦἧἰἱἲἳἴἵἶἷὀὁὂὃὄὅὐὑὒὓὔὕὖὗὠὡὢὣὤὥὦὧὰάὲέὴήὶίὸόὺύὼώᾀᾁᾂᾃᾄᾅᾆᾇᾐᾑᾒᾓᾔᾕᾖᾗᾠᾡᾢᾣᾤᾥᾦᾧᾰᾱᾲᾳᾴᾶᾷιῂῃῄῆῇῐῑῒΐῖῗῠῡῢΰῤῥῦῧῲῳῴῶῷⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳤⴀⴁⴂⴃⴄⴅⴆⴇⴈⴉⴊⴋⴌⴍⴎⴏⴐⴑⴒⴓⴔⴕⴖⴗⴘⴙⴚⴛⴜⴝⴞⴟⴠⴡⴢⴣⴤⴥfffiflffifflſtstﬓﬔﬕﬖﬗ\d-_^]/8
1015
1016/^[^d]*?$/
1017    abc
1018 0: abc
1019
1020/^[^d]*?$/8
1021    abc
1022 0: abc
1023
1024/^[^d]*?$/i
1025    abc
1026 0: abc
1027
1028/^[^d]*?$/8i
1029    abc
1030 0: abc
1031
1032/(?i)[\xc3\xa9\xc3\xbd]|[\xc3\xa9\xc3\xbdA]/8
1033
1034/^[a\x{c0}]b/8
1035    \x{c0}b
1036 0: \x{c0}b
1037
1038/^([a\x{c0}]*?)aa/8
1039    a\x{c0}aaaa/
1040 0: a\x{c0}aa
1041 1: a\x{c0}
1042
1043/^([a\x{c0}]*?)aa/8
1044    a\x{c0}aaaa/
1045 0: a\x{c0}aa
1046 1: a\x{c0}
1047    a\x{c0}a\x{c0}aaa/
1048 0: a\x{c0}a\x{c0}aa
1049 1: a\x{c0}a\x{c0}
1050
1051/^([a\x{c0}]*)aa/8
1052    a\x{c0}aaaa/
1053 0: a\x{c0}aaaa
1054 1: a\x{c0}aa
1055    a\x{c0}a\x{c0}aaa/
1056 0: a\x{c0}a\x{c0}aaa
1057 1: a\x{c0}a\x{c0}a
1058
1059/^([a\x{c0}]*)a\x{c0}/8
1060    a\x{c0}aaaa/
1061 0: a\x{c0}
1062 1:
1063    a\x{c0}a\x{c0}aaa/
1064 0: a\x{c0}a\x{c0}
1065 1: a\x{c0}
1066
1067/A*/g8
1068    AAB\x{123}BAA
1069 0: AA
1070 0:
1071 0:
1072 0:
1073 0: AA
1074 0:
1075
1076/(abc)\1/8i
1077   abc
1078No match
1079
1080/(abc)\1/8
1081   abc
1082No match
1083
1084/a(*:a\x{1234}b)/8K
1085    abc
1086 0: a
1087MK: a\x{1234}b
1088
1089/a(*:a£b)/8K
1090    abc
1091 0: a
1092MK: a\x{a3}b
1093
1094/-- End of testinput4 --/
1095