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