/[pcre]/code/trunk/testdata/testoutput4
ViewVC logotype

Contents of /code/trunk/testdata/testoutput4

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1318 - (hide annotations) (download)
Wed May 1 16:02:12 2013 UTC (6 weeks, 6 days ago) by ph10
File size: 23028 byte(s)
Move some tests to the correct input file.

1 ph10 836 /-- 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 ph10 450
5 nigel 63 /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 nigel 41 *** Failers
13     No match
14 nigel 63 a\nb
15 nigel 41 No match
16    
17 nigel 63 /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
28     No match
29     a\x{4000}b
30     No match
31     ac\ncb
32     No match
33 nigel 41
34 nigel 63 /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 nigel 41 *** Failers
105     No match
106 nigel 63 a\x{1234}b
107 nigel 41 No match
108 nigel 63 ac\ncb
109     No match
110 nigel 41
111 nigel 63 /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
128     No match
129     a\x{1234}b
130     No match
131 nigel 41
132 nigel 63 /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 nigel 41 *** Failers
149     No match
150 nigel 63 a\x{1234}b
151     No match
152 nigel 41
153 nigel 63 /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 nigel 41 *** Failers
176     No match
177 nigel 63 a\x{1234}b
178 nigel 41 No match
179 nigel 63 axxxxxxbcdefghijb
180     No match
181 nigel 41
182 nigel 63 /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 nigel 41 *** Failers
205     No match
206 nigel 63 a\x{1234}b
207 nigel 41 No match
208 nigel 63 axxxxxxbcdefghijb
209     No match
210 nigel 41
211 nigel 63 /^[a\x{c0}]/8
212 nigel 41 *** Failers
213     No match
214 nigel 63 \x{100}
215 nigel 41 No match
216    
217 nigel 63 /(?<=aXb)cd/8
218     aXbcd
219     0: cd
220 nigel 41
221 nigel 63 /(?<=a\x{100}b)cd/8
222     a\x{100}bcd
223     0: cd
224 nigel 41
225 nigel 63 /(?<=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
233     No match
234     \x{100}\x{100}b
235     No match
236    
237     /\x{ab}/8
238     \x{ab}
239     0: \x{ab}
240     \xc2\xab
241     0: \x{ab}
242     *** Failers
243     No match
244     \x00{ab}
245     No 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 nigel 41 *** Failers
255 nigel 63 No match
256     XYZ
257     No 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 nigel 41 0: *** Failers
381 nigel 63 1234
382 nigel 41 No match
383    
384 nigel 63 /\D{2,3}/8
385     12abcd34
386     0: abc
387     12ab34
388     0: ab
389     *** Failers
390     0: ***
391     1234
392     No match
393     12a34
394     No match
395    
396     /\D{2,3}?/8
397     12abcd34
398     0: ab
399     12ab34
400     0: ab
401     *** Failers
402     0: **
403     1234
404     No match
405     12a34
406     No match
407    
408     /\d+/8
409     12abcd34
410     0: 12
411 nigel 41 *** Failers
412     No match
413 nigel 63
414     /\d{2,3}/8
415     12abcd34
416     0: 12
417     1234abcd
418     0: 123
419     *** Failers
420 nigel 41 No match
421 nigel 63 1.4
422     No match
423 nigel 41
424 nigel 63 /\d{2,3}?/8
425     12abcd34
426     0: 12
427     1234abcd
428     0: 12
429     *** Failers
430     No match
431     1.4
432     No match
433 nigel 41
434 nigel 63 /\S+/8
435     12abcd34
436     0: 12abcd34
437     *** Failers
438     0: ***
439     \ \
440     No match
441 nigel 41
442 nigel 63 /\S{2,3}/8
443     12abcd34
444     0: 12a
445     1234abcd
446     0: 123
447     *** Failers
448     0: ***
449     \ \
450     No match
451 nigel 41
452 nigel 63 /\S{2,3}?/8
453     12abcd34
454     0: 12
455     1234abcd
456     0: 12
457     *** Failers
458     0: **
459     \ \
460     No match
461 nigel 41
462 nigel 63 />\s+</8+
463     12> <34
464     0: > <
465     0+ 34
466     *** Failers
467     No 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
477     No match
478     ab> <cd
479     No 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
489     No match
490     ab> <cd
491     No match
492    
493     /\w+/8
494     12 34
495     0: 12
496     *** Failers
497     0: Failers
498     +++=*!
499     No 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
509     No 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
519     No match
520    
521     /\W+/8
522     12====34
523     0: ====
524     *** Failers
525     0: ***
526     abcd
527     No 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
537     No 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
547     No 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 nigel 41 *** Failers
557     No match
558 nigel 63
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
567 nigel 41 No match
568    
569 nigel 63 /[\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
575     No 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
585     No 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
599     No 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
609     No 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
621     No 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
637     No 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
647     No 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
657     No 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
667     No 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
677     No 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
685     No match
686     X
687     No 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
697     No match
698     X
699     No match
700    
701     /(?<=[\x{100}\x{200}]{3})X/8
702     abc\x{100}\x{200}\x{100}X
703     0: X
704     *** Failers
705     No match
706     abc\x{200}X
707     No match
708     X
709     No 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
719     No match
720     \x{100}X
721     No match
722     \x{200}X
723     No 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
733     No match
734     \x{100}X
735     No match
736     \x{200}X
737     No match
738     QX
739     No 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
747     No match
748     \x{100}X
749     No match
750     \x{150}X
751     No match
752     \x{200}X
753     No 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
763     No match
764 nigel 75 \x{102}
765 nigel 63 No match
766     y
767     No match
768    
769 nigel 67 /[\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 nigel 69 /^[ac]*b/8
788     xb
789     No match
790    
791     /^[ac\x{100}]*b/8
792     xb
793     No match
794    
795     /^[^x]*b/8i
796     xb
797     No match
798    
799     /^[^x]*b/8
800     xb
801     No match
802    
803     /^\d*b/8
804     xb
805     No match
806    
807 nigel 73 /(|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 nigel 75 /^\x{85}$/8i
840     \x{85}
841     0: \x{85}
842    
843 nigel 91 /^ሴ/8
844    
845     0: \x{1234}
846    
847 nigel 87 /^\ሴ/8
848    
849     0: \x{1234}
850    
851 nigel 91 "(?s)(.{1,5})"8
852     abcdefg
853     0: abcde
854     1: abcde
855     ab
856     0: ab
857     1: ab
858    
859 nigel 93 /a*\x{100}*\w/8
860     a
861     0: a
862    
863 ph10 219 /\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 ph10 264 /\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 ph10 265 /[[:^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 ph10 300 /[^ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞĀĂĄĆĈĊČĎĐĒĔĖĘĚĜĞĠĢĤĦĨĪĬĮİIJĴĶĹĻĽĿŁŃŅŇŊŌŎŐŒŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽƁƂƄƆƇƉƊƋƎƏƐƑƓƔƖƗƘƜƝƟƠƢƤƦƧƩƬƮƯƱƲƳƵƷƸƼDŽLJNJǍǏǑǓǕǗǙǛǞǠǢǤǦǨǪǬǮDZǴǶǷǸǺǼǾȀȂȄȆȈȊȌȎȐȒȔȖȘȚȜȞȠȢȤȦȨȪȬȮȰȲȺȻȽȾɁΆΈΉΊΌΎΏΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫϒϓϔϘϚϜϞϠϢϤϦϨϪϬϮϴϷϹϺϽϾϿЀЁЂЃЄЅІЇЈЉЊЋЌЍЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯѠѢѤѦѨѪѬѮѰѲѴѶѸѺѼѾҀҊҌҎҐҒҔҖҘҚҜҞҠҢҤҦҨҪҬҮҰҲҴҶҸҺҼҾӀӁӃӅӇӉӋӍӐӒӔӖӘӚӜӞӠӢӤӦӨӪӬӮӰӲӴӶӸԀԂԄԆԈԊԌԎԱԲԳԴԵԶԷԸԹԺԻԼԽԾԿՀՁՂՃՄՅՆՇՈՉՊՋՌՍՎՏՐՑՒՓՔՕՖႠႡႢႣႤႥႦႧႨႩႪႫႬႭႮႯႰႱႲႳႴႵႶႷႸႹႺႻႼႽႾႿჀჁჂჃჄჅḀḂḄḆḈḊḌḎḐḒḔḖḘḚḜḞḠḢḤḦḨḪḬḮḰḲḴḶḸḺḼḾṀṂṄṆṈṊṌṎṐṒṔṖṘṚṜṞṠṢṤṦṨṪṬṮṰṲṴṶṸṺṼṾẀẂẄẆẈẊẌẎẐẒẔẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼẾỀỂỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪỬỮỰỲỴỶỸἈἉἊἋἌἍἎἏἘἙἚἛἜἝἨἩἪἫἬἭἮἯἸἹἺἻἼἽἾἿὈὉὊὋὌὍὙὛὝὟὨὩὪὫὬὭὮὯᾸᾹᾺΆῈΈῊΉῘῙῚΊῨῩῪΎῬῸΌῺΏabcdefghijklmnopqrstuvwxyzªµºßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıijĵķĸĺļľŀłńņňʼnŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷźżžſƀƃƅƈƌƍƒƕƙƚƛƞơƣƥƨƪƫƭưƴƶƹƺƽƾƿdžljnjǎǐǒǔǖǘǚǜǝǟǡǣǥǧǩǫǭǯǰdzǵǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟȡȣȥȧȩȫȭȯȱȳȴȵȶȷȸȹȼȿɀɐɑɒɓɔɕɖɗɘəɚɛɜɝɞɟɠɡɢɣɤɥɦɧɨɩɪɫɬɭɮɯɰɱɲɳɴɵɶɷɸɹɺɻɼɽɾɿʀʁʂʃʄʅʆʇʈʉʊʋʌʍʎʏʐʑʒʓʔʕʖʗʘʙʚʛʜʝʞʟʠʡʢʣʤʥʦʧʨʩʪʫʬʭʮʯΐάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϐϑϕϖϗϙϛϝϟϡϣϥϧϩϫϭϯϰϱϲϳϵϸϻϼабвгдежзийклмнопрстуфхцчшщъыьэюяѐёђѓєѕіїјљњћќѝўџѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹԁԃԅԇԉԋԍԏաբգդեզէըթժիլխծկհձղճմյնշոչպջռսվտրցւփքօֆևᴀᴁᴂᴃᴄᴅᴆᴇᴈᴉᴊᴋᴌᴍᴎᴏᴐᴑᴒᴓᴔᴕᴖᴗᴘᴙᴚᴛᴜᴝᴞᴟᴠᴡᴢᴣᴤᴥᴦᴧᴨᴩᴪᴫᵢᵣᵤᵥᵦᵧᵨᵩᵪᵫᵬᵭᵮᵯᵰᵱᵲᵳᵴᵵᵶᵷᵹᵺᵻᵼᵽᵾᵿᶀᶁᶂᶃᶄᶅᶆᶇᶈᶉᶊᶋᶌᶍᶎᶏᶐᶑᶒᶓᶔᶕᶖᶗᶘᶙᶚḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕẖẗẘẙẚẛạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹἀἁἂἃἄἅἆἇἐἑἒἓἔἕἠἡἢἣἤἥἦἧἰἱἲἳἴἵἶἷὀὁὂὃὄὅὐὑὒὓὔὕὖὗὠὡὢὣὤὥὦὧὰάὲέὴήὶίὸόὺύὼώᾀᾁᾂᾃᾄᾅᾆᾇᾐᾑᾒᾓᾔᾕᾖᾗᾠᾡᾢᾣᾤᾥᾦᾧᾰᾱᾲᾳᾴᾶᾷιῂῃῄῆῇῐῑῒΐῖῗῠῡῢΰῤῥῦῧῲῳῴῶῷⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳤⴀⴁⴂⴃⴄⴅⴆⴇⴈⴉⴊⴋⴌⴍⴎⴏⴐⴑⴒⴓⴔⴕⴖⴗⴘⴙⴚⴛⴜⴝⴞⴟⴠⴡⴢⴣⴤⴥfffiflffifflſtstﬓﬔﬕﬖﬗ\d-_^]/8
1015    
1016 ph10 366 /^[^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 ph10 370 /(?i)[\xc3\xa9\xc3\xbd]|[\xc3\xa9\xc3\xbdA]/8
1033    
1034 ph10 450 /^[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 ph10 566 /A*/g8
1068     AAB\x{123}BAA
1069     0: AA
1070     0:
1071     0:
1072     0:
1073     0: AA
1074     0:
1075    
1076 ph10 597 /(abc)\1/8i
1077     abc
1078     No match
1079    
1080     /(abc)\1/8
1081     abc
1082     No match
1083    
1084 ph10 836 /a(*:a\x{1234}b)/8K
1085     abc
1086     0: a
1087     MK: a\x{1234}b
1088 ph10 754
1089 ph10 836 /a(*:a£b)/8K
1090     abc
1091     0: a
1092     MK: a\x{a3}b
1093    
1094 chpe 1264 /-- Noncharacters --/
1095    
1096     /./8
1097     \x{fffe}
1098     0: \x{fffe}
1099     \x{ffff}
1100     0: \x{ffff}
1101     \x{1fffe}
1102     0: \x{1fffe}
1103     \x{1ffff}
1104     0: \x{1ffff}
1105     \x{2fffe}
1106     0: \x{2fffe}
1107     \x{2ffff}
1108     0: \x{2ffff}
1109     \x{3fffe}
1110     0: \x{3fffe}
1111     \x{3ffff}
1112     0: \x{3ffff}
1113     \x{4fffe}
1114     0: \x{4fffe}
1115     \x{4ffff}
1116     0: \x{4ffff}
1117     \x{5fffe}
1118     0: \x{5fffe}
1119     \x{5ffff}
1120     0: \x{5ffff}
1121     \x{6fffe}
1122     0: \x{6fffe}
1123     \x{6ffff}
1124     0: \x{6ffff}
1125     \x{7fffe}
1126     0: \x{7fffe}
1127     \x{7ffff}
1128     0: \x{7ffff}
1129     \x{8fffe}
1130     0: \x{8fffe}
1131     \x{8ffff}
1132     0: \x{8ffff}
1133     \x{9fffe}
1134     0: \x{9fffe}
1135     \x{9ffff}
1136     0: \x{9ffff}
1137     \x{afffe}
1138     0: \x{afffe}
1139     \x{affff}
1140     0: \x{affff}
1141     \x{bfffe}
1142     0: \x{bfffe}
1143     \x{bffff}
1144     0: \x{bffff}
1145     \x{cfffe}
1146     0: \x{cfffe}
1147     \x{cffff}
1148     0: \x{cffff}
1149     \x{dfffe}
1150     0: \x{dfffe}
1151     \x{dffff}
1152     0: \x{dffff}
1153     \x{efffe}
1154     0: \x{efffe}
1155     \x{effff}
1156     0: \x{effff}
1157     \x{ffffe}
1158     0: \x{ffffe}
1159     \x{fffff}
1160     0: \x{fffff}
1161     \x{10fffe}
1162     0: \x{10fffe}
1163     \x{10ffff}
1164     0: \x{10ffff}
1165     \x{fdd0}
1166     0: \x{fdd0}
1167     \x{fdd1}
1168     0: \x{fdd1}
1169     \x{fdd2}
1170     0: \x{fdd2}
1171     \x{fdd3}
1172     0: \x{fdd3}
1173     \x{fdd4}
1174     0: \x{fdd4}
1175     \x{fdd5}
1176     0: \x{fdd5}
1177     \x{fdd6}
1178     0: \x{fdd6}
1179     \x{fdd7}
1180     0: \x{fdd7}
1181     \x{fdd8}
1182     0: \x{fdd8}
1183     \x{fdd9}
1184     0: \x{fdd9}
1185     \x{fdda}
1186     0: \x{fdda}
1187     \x{fddb}
1188     0: \x{fddb}
1189     \x{fddc}
1190     0: \x{fddc}
1191     \x{fddd}
1192     0: \x{fddd}
1193     \x{fdde}
1194     0: \x{fdde}
1195     \x{fddf}
1196     0: \x{fddf}
1197     \x{fde0}
1198     0: \x{fde0}
1199     \x{fde1}
1200     0: \x{fde1}
1201     \x{fde2}
1202     0: \x{fde2}
1203     \x{fde3}
1204     0: \x{fde3}
1205     \x{fde4}
1206     0: \x{fde4}
1207     \x{fde5}
1208     0: \x{fde5}
1209     \x{fde6}
1210     0: \x{fde6}
1211     \x{fde7}
1212     0: \x{fde7}
1213     \x{fde8}
1214     0: \x{fde8}
1215     \x{fde9}
1216     0: \x{fde9}
1217     \x{fdea}
1218     0: \x{fdea}
1219     \x{fdeb}
1220     0: \x{fdeb}
1221     \x{fdec}
1222     0: \x{fdec}
1223     \x{fded}
1224     0: \x{fded}
1225     \x{fdee}
1226     0: \x{fdee}
1227     \x{fdef}
1228     0: \x{fdef}
1229    
1230 ph10 1311 /^\d*\w{4}/8
1231     1234
1232     0: 1234
1233     123
1234     No match
1235    
1236     /^[^b]*\w{4}/8
1237     aaaa
1238     0: aaaa
1239     aaa
1240     No match
1241    
1242     /^[^b]*\w{4}/8i
1243     aaaa
1244     0: aaaa
1245     aaa
1246     No match
1247    
1248     /^\x{100}*.{4}/8
1249     \x{100}\x{100}\x{100}\x{100}
1250     0: \x{100}\x{100}\x{100}\x{100}
1251     \x{100}\x{100}\x{100}
1252     No match
1253    
1254     /^\x{100}*.{4}/8i
1255     \x{100}\x{100}\x{100}\x{100}
1256     0: \x{100}\x{100}\x{100}\x{100}
1257     \x{100}\x{100}\x{100}
1258     No match
1259    
1260 ph10 450 /-- End of testinput4 --/

Properties

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12