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

Contents of /code/trunk/testdata/testoutput5

Parent Directory Parent Directory | Revision Log Revision Log


Revision 426 - (hide annotations) (download)
Wed Aug 26 15:38:32 2009 UTC (4 years, 10 months ago) by ph10
File size: 41220 byte(s)
Remove restrictions on pcre_exec() partial matching.

1 ph10 162 /\x{100}/8DZ
2 nigel 75 ------------------------------------------------------------------
3 ph10 192 Bra
4 ph10 161 \x{100}
5     Ket
6     End
7 nigel 75 ------------------------------------------------------------------
8     Capturing subpattern count = 0
9     Options: utf8
10     First char = 196
11     Need char = 128
12    
13 ph10 162 /\x{1000}/8DZ
14 nigel 63 ------------------------------------------------------------------
15 ph10 192 Bra
16 ph10 161 \x{1000}
17     Ket
18     End
19 nigel 63 ------------------------------------------------------------------
20     Capturing subpattern count = 0
21     Options: utf8
22 nigel 75 First char = 225
23 nigel 63 Need char = 128
24 nigel 49
25 ph10 162 /\x{10000}/8DZ
26 nigel 63 ------------------------------------------------------------------
27 ph10 192 Bra
28 ph10 161 \x{10000}
29     Ket
30     End
31 nigel 63 ------------------------------------------------------------------
32     Capturing subpattern count = 0
33     Options: utf8
34 nigel 75 First char = 240
35 nigel 63 Need char = 128
36 nigel 49
37 ph10 162 /\x{100000}/8DZ
38 nigel 63 ------------------------------------------------------------------
39 ph10 192 Bra
40 ph10 161 \x{100000}
41     Ket
42     End
43 nigel 63 ------------------------------------------------------------------
44     Capturing subpattern count = 0
45     Options: utf8
46 nigel 75 First char = 244
47 nigel 63 Need char = 128
48 nigel 49
49 ph10 162 /\x{1000000}/8DZ
50 nigel 63 ------------------------------------------------------------------
51 ph10 192 Bra
52 ph10 161 \x{1000000}
53     Ket
54     End
55 nigel 63 ------------------------------------------------------------------
56     Capturing subpattern count = 0
57     Options: utf8
58 nigel 75 First char = 249
59 nigel 63 Need char = 128
60 nigel 49
61 ph10 162 /\x{4000000}/8DZ
62 nigel 63 ------------------------------------------------------------------
63 ph10 192 Bra
64 ph10 161 \x{4000000}
65     Ket
66     End
67 nigel 63 ------------------------------------------------------------------
68     Capturing subpattern count = 0
69     Options: utf8
70     First char = 252
71     Need char = 128
72 nigel 49
73 ph10 162 /\x{7fffFFFF}/8DZ
74 nigel 63 ------------------------------------------------------------------
75 ph10 192 Bra
76 ph10 161 \x{7fffffff}
77     Ket
78     End
79 nigel 63 ------------------------------------------------------------------
80     Capturing subpattern count = 0
81     Options: utf8
82     First char = 253
83     Need char = 191
84 nigel 49
85 ph10 162 /[\x{ff}]/8DZ
86 nigel 63 ------------------------------------------------------------------
87 ph10 192 Bra
88 ph10 161 \x{ff}
89     Ket
90     End
91 nigel 63 ------------------------------------------------------------------
92     Capturing subpattern count = 0
93     Options: utf8
94 nigel 75 First char = 195
95     Need char = 191
96 nigel 49
97 ph10 162 /[\x{100}]/8DZ
98 nigel 63 ------------------------------------------------------------------
99 ph10 192 Bra
100 ph10 161 [\x{100}]
101     Ket
102     End
103 nigel 63 ------------------------------------------------------------------
104     Capturing subpattern count = 0
105     Options: utf8
106     No first char
107     No need char
108 nigel 49
109 nigel 63 /\x{ffffffff}/8
110     Failed: character value in \x{...} sequence is too large at offset 11
111 nigel 49
112 nigel 63 /\x{100000000}/8
113     Failed: character value in \x{...} sequence is too large at offset 12
114 nigel 49
115 nigel 63 /^\x{100}a\x{1234}/8
116     \x{100}a\x{1234}bcd
117     0: \x{100}a\x{1234}
118 nigel 49
119 ph10 161 /\x80/8DZ
120 nigel 63 ------------------------------------------------------------------
121 ph10 192 Bra
122 ph10 161 \x{80}
123     Ket
124     End
125 nigel 63 ------------------------------------------------------------------
126     Capturing subpattern count = 0
127     Options: utf8
128     First char = 194
129     Need char = 128
130    
131 ph10 161 /\xff/8DZ
132 nigel 63 ------------------------------------------------------------------
133 ph10 192 Bra
134 ph10 161 \x{ff}
135     Ket
136     End
137 nigel 63 ------------------------------------------------------------------
138     Capturing subpattern count = 0
139     Options: utf8
140     First char = 195
141     Need char = 191
142    
143 ph10 161 /\x{0041}\x{2262}\x{0391}\x{002e}/DZ8
144 nigel 63 ------------------------------------------------------------------
145 ph10 192 Bra
146 ph10 161 A\x{2262}\x{391}.
147     Ket
148     End
149 nigel 63 ------------------------------------------------------------------
150     Capturing subpattern count = 0
151     Options: utf8
152     First char = 'A'
153     Need char = '.'
154     \x{0041}\x{2262}\x{0391}\x{002e}
155     0: A\x{2262}\x{391}.
156    
157 ph10 161 /\x{D55c}\x{ad6d}\x{C5B4}/DZ8
158 nigel 63 ------------------------------------------------------------------
159 ph10 192 Bra
160 ph10 161 \x{d55c}\x{ad6d}\x{c5b4}
161     Ket
162     End
163 nigel 63 ------------------------------------------------------------------
164     Capturing subpattern count = 0
165     Options: utf8
166     First char = 237
167     Need char = 180
168     \x{D55c}\x{ad6d}\x{C5B4}
169     0: \x{d55c}\x{ad6d}\x{c5b4}
170    
171 ph10 161 /\x{65e5}\x{672c}\x{8a9e}/DZ8
172 nigel 63 ------------------------------------------------------------------
173 ph10 192 Bra
174 ph10 161 \x{65e5}\x{672c}\x{8a9e}
175     Ket
176     End
177 nigel 63 ------------------------------------------------------------------
178     Capturing subpattern count = 0
179     Options: utf8
180     First char = 230
181     Need char = 158
182     \x{65e5}\x{672c}\x{8a9e}
183     0: \x{65e5}\x{672c}\x{8a9e}
184    
185 ph10 161 /\x{80}/DZ8
186 nigel 63 ------------------------------------------------------------------
187 ph10 192 Bra
188 ph10 161 \x{80}
189     Ket
190     End
191 nigel 63 ------------------------------------------------------------------
192     Capturing subpattern count = 0
193     Options: utf8
194     First char = 194
195     Need char = 128
196    
197 ph10 161 /\x{084}/DZ8
198 nigel 63 ------------------------------------------------------------------
199 ph10 192 Bra
200 ph10 161 \x{84}
201     Ket
202     End
203 nigel 63 ------------------------------------------------------------------
204     Capturing subpattern count = 0
205     Options: utf8
206     First char = 194
207     Need char = 132
208    
209 ph10 161 /\x{104}/DZ8
210 nigel 63 ------------------------------------------------------------------
211 ph10 192 Bra
212 ph10 161 \x{104}
213     Ket
214     End
215 nigel 63 ------------------------------------------------------------------
216     Capturing subpattern count = 0
217     Options: utf8
218     First char = 196
219     Need char = 132
220    
221 ph10 161 /\x{861}/DZ8
222 nigel 63 ------------------------------------------------------------------
223 ph10 192 Bra
224 ph10 161 \x{861}
225     Ket
226     End
227 nigel 63 ------------------------------------------------------------------
228     Capturing subpattern count = 0
229     Options: utf8
230     First char = 224
231     Need char = 161
232    
233 ph10 161 /\x{212ab}/DZ8
234 nigel 63 ------------------------------------------------------------------
235 ph10 192 Bra
236 ph10 161 \x{212ab}
237     Ket
238     End
239 nigel 63 ------------------------------------------------------------------
240     Capturing subpattern count = 0
241     Options: utf8
242     First char = 240
243     Need char = 171
244    
245 ph10 161 /.{3,5}X/DZ8
246 nigel 63 ------------------------------------------------------------------
247 ph10 192 Bra
248 ph10 161 Any{3}
249     Any{0,2}
250     X
251     Ket
252     End
253 nigel 63 ------------------------------------------------------------------
254     Capturing subpattern count = 0
255     Options: utf8
256     No first char
257     Need char = 'X'
258     \x{212ab}\x{212ab}\x{212ab}\x{861}X
259     0: \x{212ab}\x{212ab}\x{212ab}\x{861}X
260    
261    
262 ph10 161 /.{3,5}?/DZ8
263 nigel 63 ------------------------------------------------------------------
264 ph10 192 Bra
265 ph10 161 Any{3}
266     Any{0,2}?
267     Ket
268     End
269 nigel 63 ------------------------------------------------------------------
270     Capturing subpattern count = 0
271     Options: utf8
272     No first char
273     No need char
274     \x{212ab}\x{212ab}\x{212ab}\x{861}
275     0: \x{212ab}\x{212ab}\x{212ab}
276    
277 ph10 161 /-- These tests are here rather than in testinput4 because Perl 5.6 has some
278     problems with UTF-8 support, in the area of \x{..} where the value is < 255.
279     It grumbles about invalid UTF-8 strings. --/
280 nigel 63
281     /^[a\x{c0}]b/8
282     \x{c0}b
283     0: \x{c0}b
284    
285     /^([a\x{c0}]*?)aa/8
286     a\x{c0}aaaa/
287     0: a\x{c0}aa
288     1: a\x{c0}
289    
290     /^([a\x{c0}]*?)aa/8
291     a\x{c0}aaaa/
292     0: a\x{c0}aa
293     1: a\x{c0}
294     a\x{c0}a\x{c0}aaa/
295     0: a\x{c0}a\x{c0}aa
296     1: a\x{c0}a\x{c0}
297    
298     /^([a\x{c0}]*)aa/8
299     a\x{c0}aaaa/
300     0: a\x{c0}aaaa
301     1: a\x{c0}aa
302     a\x{c0}a\x{c0}aaa/
303     0: a\x{c0}a\x{c0}aaa
304     1: a\x{c0}a\x{c0}a
305    
306     /^([a\x{c0}]*)a\x{c0}/8
307     a\x{c0}aaaa/
308     0: a\x{c0}
309 nigel 49 1:
310 nigel 63 a\x{c0}a\x{c0}aaa/
311     0: a\x{c0}a\x{c0}
312     1: a\x{c0}
313    
314     /-- --/
315    
316     /(?<=\C)X/8
317     Failed: \C not allowed in lookbehind assertion at offset 6
318 nigel 49
319 ph10 161 /-- This one is here not because it's different to Perl, but because the way
320     the captured single-byte is displayed. (In Perl it becomes a character, and you
321     can't tell the difference.) --/
322 nigel 63
323     /X(\C)(.*)/8
324     X\x{1234}
325     0: X\x{1234}
326     1: \xe1
327     2: \x88\xb4
328     X\nabc
329     0: X\x{0a}abc
330     1: \x{0a}
331     2: abc
332    
333 ph10 161 /^[ab]/8DZ
334 nigel 63 ------------------------------------------------------------------
335 ph10 192 Bra
336 ph10 161 ^
337     [ab]
338     Ket
339     End
340 nigel 63 ------------------------------------------------------------------
341     Capturing subpattern count = 0
342     Options: anchored utf8
343     No first char
344     No need char
345     bar
346     0: b
347 nigel 49 *** Failers
348     No match
349 nigel 63 c
350 nigel 49 No match
351 nigel 63 \x{ff}
352 nigel 49 No match
353 nigel 63 \x{100}
354     No match
355 nigel 49
356 ph10 161 /^[^ab]/8DZ
357 nigel 63 ------------------------------------------------------------------
358 ph10 192 Bra
359 ph10 161 ^
360     [\x00-`c-\xff] (neg)
361     Ket
362     End
363 nigel 63 ------------------------------------------------------------------
364     Capturing subpattern count = 0
365     Options: anchored utf8
366     No first char
367     No need char
368     c
369     0: c
370     \x{ff}
371     0: \x{ff}
372     \x{100}
373     0: \x{100}
374     *** Failers
375     0: *
376     aaa
377     No match
378    
379 ph10 161 /[^ab\xC0-\xF0]/8SDZ
380 nigel 63 ------------------------------------------------------------------
381 ph10 192 Bra
382 ph10 161 [\x00-`c-\xbf\xf1-\xff] (neg)
383     Ket
384     End
385 nigel 63 ------------------------------------------------------------------
386     Capturing subpattern count = 0
387     Options: utf8
388     No first char
389     No need char
390 nigel 75 Starting byte set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a
391 nigel 63 \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19
392     \x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4
393     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
394     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
395 nigel 71 \xc2 \xc3 \xc4 \xc5 \xc6 \xc7 \xc8 \xc9 \xca \xcb \xcc \xcd \xce \xcf \xd0
396     \xd1 \xd2 \xd3 \xd4 \xd5 \xd6 \xd7 \xd8 \xd9 \xda \xdb \xdc \xdd \xde \xdf
397     \xe0 \xe1 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8 \xe9 \xea \xeb \xec \xed \xee
398     \xef \xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7 \xf8 \xf9 \xfa \xfb \xfc \xfd
399     \xfe \xff
400 nigel 63 \x{f1}
401     0: \x{f1}
402     \x{bf}
403     0: \x{bf}
404     \x{100}
405     0: \x{100}
406     \x{1000}
407     0: \x{1000}
408 nigel 49 *** Failers
409 nigel 63 0: *
410     \x{c0}
411 nigel 49 No match
412 nigel 63 \x{f0}
413 nigel 49 No match
414    
415 ph10 161 /Ā{3,4}/8SDZ
416 nigel 63 ------------------------------------------------------------------
417 ph10 192 Bra
418 ph10 161 \x{100}{3}
419     \x{100}?
420     Ket
421     End
422 nigel 63 ------------------------------------------------------------------
423     Capturing subpattern count = 0
424     Options: utf8
425     First char = 196
426     Need char = 128
427     Study returned NULL
428     \x{100}\x{100}\x{100}\x{100\x{100}
429     0: \x{100}\x{100}\x{100}
430    
431 ph10 161 /(\x{100}+|x)/8SDZ
432 nigel 63 ------------------------------------------------------------------
433 ph10 192 Bra
434     CBra 1
435 ph10 161 \x{100}+
436     Alt
437     x
438     Ket
439     Ket
440     End
441 nigel 63 ------------------------------------------------------------------
442     Capturing subpattern count = 1
443     Options: utf8
444     No first char
445     No need char
446 nigel 93 Starting byte set: x \xc4
447 nigel 63
448 ph10 161 /(\x{100}*a|x)/8SDZ
449 nigel 63 ------------------------------------------------------------------
450 ph10 192 Bra
451     CBra 1
452 ph10 161 \x{100}*+
453     a
454     Alt
455     x
456     Ket
457     Ket
458     End
459 nigel 63 ------------------------------------------------------------------
460     Capturing subpattern count = 1
461     Options: utf8
462     No first char
463     No need char
464 nigel 75 Starting byte set: a x \xc4
465 nigel 63
466 ph10 161 /(\x{100}{0,2}a|x)/8SDZ
467 nigel 93 ------------------------------------------------------------------
468 ph10 192 Bra
469     CBra 1
470 ph10 161 \x{100}{0,2}
471     a
472     Alt
473     x
474     Ket
475     Ket
476     End
477 nigel 93 ------------------------------------------------------------------
478     Capturing subpattern count = 1
479     Options: utf8
480     No first char
481     No need char
482     Starting byte set: a x \xc4
483    
484 ph10 161 /(\x{100}{1,2}a|x)/8SDZ
485 nigel 63 ------------------------------------------------------------------
486 ph10 192 Bra
487     CBra 1
488 ph10 161 \x{100}
489     \x{100}{0,1}
490     a
491     Alt
492     x
493     Ket
494     Ket
495     End
496 nigel 63 ------------------------------------------------------------------
497     Capturing subpattern count = 1
498     Options: utf8
499     No first char
500     No need char
501 nigel 75 Starting byte set: x \xc4
502 nigel 63
503     /\x{100}*(\d+|"(?1)")/8
504     1234
505     0: 1234
506     1: 1234
507     "1234"
508     0: "1234"
509     1: "1234"
510     \x{100}1234
511     0: \x{100}1234
512     1: 1234
513     "\x{100}1234"
514     0: \x{100}1234
515     1: 1234
516     \x{100}\x{100}12ab
517     0: \x{100}\x{100}12
518     1: 12
519     \x{100}\x{100}"12"
520     0: \x{100}\x{100}"12"
521     1: "12"
522     *** Failers
523 nigel 49 No match
524 nigel 63 \x{100}\x{100}abcd
525 nigel 49 No match
526    
527 ph10 161 /\x{100}/8DZ
528 nigel 63 ------------------------------------------------------------------
529 ph10 192 Bra
530 ph10 161 \x{100}
531     Ket
532     End
533 nigel 63 ------------------------------------------------------------------
534     Capturing subpattern count = 0
535     Options: utf8
536     First char = 196
537     Need char = 128
538    
539 ph10 161 /\x{100}*/8DZ
540 nigel 63 ------------------------------------------------------------------
541 ph10 192 Bra
542 ph10 161 \x{100}*
543     Ket
544     End
545 nigel 63 ------------------------------------------------------------------
546     Capturing subpattern count = 0
547     Options: utf8
548     No first char
549     No need char
550    
551 ph10 161 /a\x{100}*/8DZ
552 nigel 63 ------------------------------------------------------------------
553 ph10 192 Bra
554 ph10 161 a
555     \x{100}*
556     Ket
557     End
558 nigel 63 ------------------------------------------------------------------
559     Capturing subpattern count = 0
560     Options: utf8
561     First char = 'a'
562     No need char
563    
564 ph10 161 /ab\x{100}*/8DZ
565 nigel 63 ------------------------------------------------------------------
566 ph10 192 Bra
567 ph10 161 ab
568     \x{100}*
569     Ket
570     End
571 nigel 63 ------------------------------------------------------------------
572     Capturing subpattern count = 0
573     Options: utf8
574     First char = 'a'
575     Need char = 'b'
576    
577 ph10 161 /a\x{100}\x{101}*/8DZ
578 nigel 63 ------------------------------------------------------------------
579 ph10 192 Bra
580 ph10 161 a\x{100}
581     \x{101}*
582     Ket
583     End
584 nigel 63 ------------------------------------------------------------------
585     Capturing subpattern count = 0
586     Options: utf8
587     First char = 'a'
588     Need char = 128
589    
590 ph10 161 /a\x{100}\x{101}+/8DZ
591 nigel 63 ------------------------------------------------------------------
592 ph10 192 Bra
593 ph10 161 a\x{100}
594     \x{101}+
595     Ket
596     End
597 nigel 63 ------------------------------------------------------------------
598     Capturing subpattern count = 0
599     Options: utf8
600     First char = 'a'
601     Need char = 129
602    
603 ph10 161 /\x{100}*A/8DZ
604 nigel 63 ------------------------------------------------------------------
605 ph10 192 Bra
606 ph10 161 \x{100}*+
607     A
608     Ket
609     End
610 nigel 63 ------------------------------------------------------------------
611     Capturing subpattern count = 0
612     Options: utf8
613     No first char
614     Need char = 'A'
615     A
616     0: A
617    
618 ph10 161 /\x{100}*\d(?R)/8DZ
619 nigel 63 ------------------------------------------------------------------
620 ph10 192 Bra
621 ph10 161 \x{100}*+
622     \d
623     Once
624     Recurse
625     Ket
626     Ket
627     End
628 nigel 63 ------------------------------------------------------------------
629     Capturing subpattern count = 0
630     Options: utf8
631     No first char
632     No need char
633    
634 ph10 161 /[^\x{c4}]/DZ
635 nigel 63 ------------------------------------------------------------------
636 ph10 192 Bra
637 ph10 161 [^\xc4]
638     Ket
639     End
640 nigel 63 ------------------------------------------------------------------
641     Capturing subpattern count = 0
642     No options
643     No first char
644     No need char
645    
646 ph10 161 /[^\x{c4}]/8DZ
647 nigel 63 ------------------------------------------------------------------
648 ph10 192 Bra
649 ph10 161 [\x00-\xc3\xc5-\xff] (neg)
650     Ket
651     End
652 nigel 63 ------------------------------------------------------------------
653     Capturing subpattern count = 0
654     Options: utf8
655     No first char
656     No need char
657    
658 ph10 162 /[\x{100}]/8DZ
659 nigel 63 ------------------------------------------------------------------
660 ph10 192 Bra
661 ph10 161 [\x{100}]
662     Ket
663     End
664 nigel 63 ------------------------------------------------------------------
665     Capturing subpattern count = 0
666     Options: utf8
667     No first char
668     No need char
669     \x{100}
670     0: \x{100}
671     Z\x{100}
672     0: \x{100}
673     \x{100}Z
674     0: \x{100}
675     *** Failers
676 nigel 49 No match
677 nigel 63
678 ph10 162 /[Z\x{100}]/8DZ
679 nigel 63 ------------------------------------------------------------------
680 ph10 192 Bra
681 ph10 161 [Z\x{100}]
682     Ket
683     End
684 nigel 63 ------------------------------------------------------------------
685     Capturing subpattern count = 0
686     Options: utf8
687     No first char
688     No need char
689     Z\x{100}
690     0: Z
691     \x{100}
692     0: \x{100}
693     \x{100}Z
694     0: \x{100}
695     *** Failers
696 nigel 49 No match
697    
698 nigel 63 /[\x{200}-\x{100}]/8
699     Failed: range out of order in character class at offset 15
700    
701     /[Ā-Ą]/8
702     \x{100}
703     0: \x{100}
704     \x{104}
705     0: \x{104}
706 nigel 49 *** Failers
707     No match
708 nigel 63 \x{105}
709 nigel 49 No match
710 nigel 63 \x{ff}
711 nigel 49 No match
712    
713 ph10 161 /[z-\x{100}]/8DZ
714 nigel 63 ------------------------------------------------------------------
715 ph10 192 Bra
716 ph10 161 [z-\x{100}]
717     Ket
718     End
719 nigel 63 ------------------------------------------------------------------
720     Capturing subpattern count = 0
721     Options: utf8
722     No first char
723     No need char
724 nigel 49
725 ph10 161 /[z\Qa-d]Ā\E]/8DZ
726 nigel 63 ------------------------------------------------------------------
727 ph10 192 Bra
728 ph10 161 [\-\]adz\x{100}]
729     Ket
730     End
731 nigel 63 ------------------------------------------------------------------
732     Capturing subpattern count = 0
733     Options: utf8
734     No first char
735     No need char
736     \x{100}
737     0: \x{100}
738     Ā
739     0: \x{100}
740 nigel 49
741 ph10 161 /[\xFF]/DZ
742 nigel 67 ------------------------------------------------------------------
743 ph10 192 Bra
744 ph10 161 \xff
745     Ket
746     End
747 nigel 67 ------------------------------------------------------------------
748     Capturing subpattern count = 0
749     No options
750     First char = 255
751     No need char
752     >\xff<
753     0: \xff
754    
755 ph10 161 /[\xff]/DZ8
756 nigel 67 ------------------------------------------------------------------
757 ph10 192 Bra
758 ph10 161 \x{ff}
759     Ket
760     End
761 nigel 67 ------------------------------------------------------------------
762     Capturing subpattern count = 0
763     Options: utf8
764 nigel 75 First char = 195
765     Need char = 191
766 nigel 67 >\x{ff}<
767     0: \x{ff}
768    
769 ph10 161 /[^\xFF]/DZ
770 nigel 67 ------------------------------------------------------------------
771 ph10 192 Bra
772 ph10 161 [^\xff]
773     Ket
774     End
775 nigel 67 ------------------------------------------------------------------
776     Capturing subpattern count = 0
777     No options
778     No first char
779     No need char
780    
781 ph10 161 /[^\xff]/8DZ
782 nigel 67 ------------------------------------------------------------------
783 ph10 192 Bra
784 ph10 161 [\x00-\xfe] (neg)
785     Ket
786     End
787 nigel 67 ------------------------------------------------------------------
788     Capturing subpattern count = 0
789     Options: utf8
790     No first char
791     No need char
792    
793 nigel 71 /[Ä-Ü]/8
794     Ö # Matches without Study
795     0: \x{d6}
796     \x{d6}
797     0: \x{d6}
798    
799     /[Ä-Ü]/8S
800     Ö <-- Same with Study
801     0: \x{d6}
802     \x{d6}
803     0: \x{d6}
804    
805     /[\x{c4}-\x{dc}]/8
806     Ö # Matches without Study
807     0: \x{d6}
808     \x{d6}
809     0: \x{d6}
810    
811     /[\x{c4}-\x{dc}]/8S
812     Ö <-- Same with Study
813     0: \x{d6}
814     \x{d6}
815     0: \x{d6}
816    
817     /[]/8
818     Failed: invalid UTF-8 string at offset 2
819    
820     //8
821     Failed: invalid UTF-8 string at offset 0
822    
823     /xxx/8
824     Failed: invalid UTF-8 string at offset 1
825    
826 ph10 161 /xxx/8?DZ
827 nigel 71 ------------------------------------------------------------------
828 ph10 192 Bra
829 ph10 161 \X{c0}\X{c0}\X{c0}xxx
830     Ket
831     End
832 nigel 71 ------------------------------------------------------------------
833     Capturing subpattern count = 0
834     Options: utf8 no_utf8_check
835     First char = 195
836     Need char = 'x'
837    
838     /abc/8
839 nigel 73 ]
840 nigel 71 Error -10
841 nigel 73
842 nigel 71 Error -10
843 nigel 73
844 nigel 71 Error -10
845 nigel 73 \?
846 nigel 71 No match
847    
848 nigel 73 /anything/8
849     \xc0\x80
850     Error -10
851     \xc1\x8f
852     Error -10
853     \xe0\x9f\x80
854     Error -10
855     \xf0\x8f\x80\x80
856     Error -10
857     \xf8\x87\x80\x80\x80
858     Error -10
859     \xfc\x83\x80\x80\x80\x80
860     Error -10
861     \xfe\x80\x80\x80\x80\x80
862     Error -10
863     \xff\x80\x80\x80\x80\x80
864     Error -10
865     \xc3\x8f
866     No match
867     \xe0\xaf\x80
868     No match
869     \xe1\x80\x80
870     No match
871     \xf0\x9f\x80\x80
872     No match
873     \xf1\x8f\x80\x80
874     No match
875     \xf8\x88\x80\x80\x80
876 ph10 211 Error -10
877 nigel 73 \xf9\x87\x80\x80\x80
878 ph10 211 Error -10
879 nigel 73 \xfc\x84\x80\x80\x80\x80
880 ph10 211 Error -10
881 nigel 73 \xfd\x83\x80\x80\x80\x80
882 ph10 211 Error -10
883     \?\xf8\x88\x80\x80\x80
884 nigel 73 No match
885 ph10 211 \?\xf9\x87\x80\x80\x80
886     No match
887     \?\xfc\x84\x80\x80\x80\x80
888     No match
889     \?\xfd\x83\x80\x80\x80\x80
890     No match
891 nigel 73
892 ph10 161 /\x{100}abc(xyz(?1))/8DZ
893 nigel 73 ------------------------------------------------------------------
894 ph10 192 Bra
895 ph10 161 \x{100}abc
896 ph10 192 CBra 1
897 ph10 161 xyz
898     Once
899     Recurse
900     Ket
901     Ket
902     Ket
903     End
904 nigel 73 ------------------------------------------------------------------
905     Capturing subpattern count = 1
906     Options: utf8
907     First char = 196
908     Need char = 'z'
909    
910 ph10 161 /[^\x{100}]abc(xyz(?1))/8DZ
911 nigel 73 ------------------------------------------------------------------
912 ph10 192 Bra
913 ph10 161 [^\x{100}]
914     abc
915 ph10 192 CBra 1
916 ph10 161 xyz
917     Once
918     Recurse
919     Ket
920     Ket
921     Ket
922     End
923 nigel 73 ------------------------------------------------------------------
924     Capturing subpattern count = 1
925     Options: utf8
926     No first char
927     Need char = 'z'
928    
929 ph10 161 /[ab\x{100}]abc(xyz(?1))/8DZ
930 nigel 73 ------------------------------------------------------------------
931 ph10 192 Bra
932 ph10 161 [ab\x{100}]
933     abc
934 ph10 192 CBra 1
935 ph10 161 xyz
936     Once
937     Recurse
938     Ket
939     Ket
940     Ket
941     End
942 nigel 73 ------------------------------------------------------------------
943     Capturing subpattern count = 1
944     Options: utf8
945     No first char
946     Need char = 'z'
947    
948 ph10 161 /(\x{100}(b(?2)c))?/DZ8
949 nigel 73 ------------------------------------------------------------------
950 ph10 192 Bra
951 ph10 161 Brazero
952 ph10 192 CBra 1
953 ph10 161 \x{100}
954 ph10 192 CBra 2
955 ph10 161 b
956     Once
957     Recurse
958     Ket
959     c
960     Ket
961     Ket
962     Ket
963     End
964 nigel 73 ------------------------------------------------------------------
965     Capturing subpattern count = 2
966     Options: utf8
967     No first char
968     No need char
969    
970 ph10 161 /(\x{100}(b(?2)c)){0,2}/DZ8
971 nigel 73 ------------------------------------------------------------------
972 ph10 192 Bra
973 ph10 161 Brazero
974 ph10 192 Bra
975     CBra 1
976 ph10 161 \x{100}
977 ph10 192 CBra 2
978 ph10 161 b
979     Once
980     Recurse
981     Ket
982     c
983     Ket
984     Ket
985     Brazero
986 ph10 192 CBra 1
987 ph10 161 \x{100}
988 ph10 192 CBra 2
989 ph10 161 b
990     Once
991     Recurse
992     Ket
993     c
994     Ket
995     Ket
996     Ket
997     Ket
998     End
999 nigel 73 ------------------------------------------------------------------
1000     Capturing subpattern count = 2
1001     Options: utf8
1002     No first char
1003     No need char
1004    
1005 ph10 161 /(\x{100}(b(?1)c))?/DZ8
1006 nigel 73 ------------------------------------------------------------------
1007 ph10 192 Bra
1008 ph10 161 Brazero
1009 ph10 192 CBra 1
1010 ph10 161 \x{100}
1011 ph10 192 CBra 2
1012 ph10 161 b
1013     Once
1014     Recurse
1015     Ket
1016     c
1017     Ket
1018     Ket
1019     Ket
1020     End
1021 nigel 73 ------------------------------------------------------------------
1022     Capturing subpattern count = 2
1023     Options: utf8
1024     No first char
1025     No need char
1026    
1027 ph10 161 /(\x{100}(b(?1)c)){0,2}/DZ8
1028 nigel 73 ------------------------------------------------------------------
1029 ph10 192 Bra
1030 ph10 161 Brazero
1031 ph10 192 Bra
1032     CBra 1
1033 ph10 161 \x{100}
1034 ph10 192 CBra 2
1035 ph10 161 b
1036     Once
1037     Recurse
1038     Ket
1039     c
1040     Ket
1041     Ket
1042     Brazero
1043 ph10 192 CBra 1
1044 ph10 161 \x{100}
1045 ph10 192 CBra 2
1046 ph10 161 b
1047     Once
1048     Recurse
1049     Ket
1050     c
1051     Ket
1052     Ket
1053     Ket
1054     Ket
1055     End
1056 nigel 73 ------------------------------------------------------------------
1057     Capturing subpattern count = 2
1058     Options: utf8
1059     No first char
1060     No need char
1061    
1062 nigel 75 /\W/8
1063     A.B
1064     0: .
1065     A\x{100}B
1066     0: \x{100}
1067    
1068     /\w/8
1069     \x{100}X
1070     0: X
1071    
1072 nigel 87 /a\x{1234}b/P8
1073     a\x{1234}b
1074     0: a\x{1234}b
1075    
1076 ph10 161 /^\ሴ/8DZ
1077 nigel 87 ------------------------------------------------------------------
1078 ph10 192 Bra
1079 ph10 161 ^
1080     \x{1234}
1081     Ket
1082     End
1083 nigel 87 ------------------------------------------------------------------
1084     Capturing subpattern count = 0
1085     Options: anchored utf8
1086     No first char
1087     No need char
1088    
1089 nigel 91 /\777/I
1090     Failed: octal value is greater than \377 (not in UTF-8 mode) at offset 3
1091    
1092     /\777/8I
1093     Capturing subpattern count = 0
1094     Options: utf8
1095     First char = 199
1096     Need char = 191
1097     \x{1ff}
1098     0: \x{1ff}
1099     \777
1100     0: \x{1ff}
1101 nigel 93
1102 ph10 161 /\x{100}*\d/8DZ
1103 nigel 93 ------------------------------------------------------------------
1104 ph10 192 Bra
1105 ph10 161 \x{100}*+
1106     \d
1107     Ket
1108     End
1109 nigel 93 ------------------------------------------------------------------
1110     Capturing subpattern count = 0
1111     Options: utf8
1112     No first char
1113     No need char
1114 nigel 91
1115 ph10 161 /\x{100}*\s/8DZ
1116 nigel 93 ------------------------------------------------------------------
1117 ph10 192 Bra
1118 ph10 161 \x{100}*+
1119     \s
1120     Ket
1121     End
1122 nigel 93 ------------------------------------------------------------------
1123     Capturing subpattern count = 0
1124     Options: utf8
1125     No first char
1126     No need char
1127    
1128 ph10 161 /\x{100}*\w/8DZ
1129 nigel 93 ------------------------------------------------------------------
1130 ph10 192 Bra
1131 ph10 161 \x{100}*+
1132     \w
1133     Ket
1134     End
1135 nigel 93 ------------------------------------------------------------------
1136     Capturing subpattern count = 0
1137     Options: utf8
1138     No first char
1139     No need char
1140    
1141 ph10 161 /\x{100}*\D/8DZ
1142 nigel 93 ------------------------------------------------------------------
1143 ph10 192 Bra
1144 ph10 161 \x{100}*
1145     \D
1146     Ket
1147     End
1148 nigel 93 ------------------------------------------------------------------
1149     Capturing subpattern count = 0
1150     Options: utf8
1151     No first char
1152     No need char
1153    
1154 ph10 161 /\x{100}*\S/8DZ
1155 nigel 93 ------------------------------------------------------------------
1156 ph10 192 Bra
1157 ph10 161 \x{100}*
1158     \S
1159     Ket
1160     End
1161 nigel 93 ------------------------------------------------------------------
1162     Capturing subpattern count = 0
1163     Options: utf8
1164     No first char
1165     No need char
1166    
1167 ph10 161 /\x{100}*\W/8DZ
1168 nigel 93 ------------------------------------------------------------------
1169 ph10 192 Bra
1170 ph10 161 \x{100}*
1171     \W
1172     Ket
1173     End
1174 nigel 93 ------------------------------------------------------------------
1175     Capturing subpattern count = 0
1176     Options: utf8
1177     No first char
1178     No need char
1179    
1180 ph10 161 /\x{100}+\x{200}/8DZ
1181 nigel 93 ------------------------------------------------------------------
1182 ph10 192 Bra
1183 ph10 161 \x{100}++
1184     \x{200}
1185     Ket
1186     End
1187 nigel 93 ------------------------------------------------------------------
1188     Capturing subpattern count = 0
1189     Options: utf8
1190     First char = 196
1191     Need char = 128
1192    
1193 ph10 161 /\x{100}+X/8DZ
1194 nigel 93 ------------------------------------------------------------------
1195 ph10 192 Bra
1196 ph10 161 \x{100}++
1197     X
1198     Ket
1199     End
1200 nigel 93 ------------------------------------------------------------------
1201     Capturing subpattern count = 0
1202     Options: utf8
1203     First char = 196
1204     Need char = 'X'
1205    
1206 ph10 161 /X+\x{200}/8DZ
1207 nigel 93 ------------------------------------------------------------------
1208 ph10 192 Bra
1209 ph10 161 X++
1210     \x{200}
1211     Ket
1212     End
1213 nigel 93 ------------------------------------------------------------------
1214     Capturing subpattern count = 0
1215     Options: utf8
1216     First char = 'X'
1217     Need char = 128
1218    
1219     /()()()()()()()()()()
1220     ()()()()()()()()()()
1221     ()()()()()()()()()()
1222     ()()()()()()()()()()
1223     A (x) (?41) B/8x
1224     AxxB
1225     Matched, but too many substrings
1226     0: AxxB
1227     1:
1228     2:
1229     3:
1230     4:
1231     5:
1232     6:
1233     7:
1234     8:
1235     9:
1236     10:
1237     11:
1238     12:
1239     13:
1240     14:
1241    
1242 ph10 162 /^[\x{100}\E-\Q\E\x{150}]/BZ8
1243 nigel 93 ------------------------------------------------------------------
1244 ph10 192 Bra
1245 ph10 162 ^
1246     [\x{100}-\x{150}]
1247     Ket
1248     End
1249 nigel 93 ------------------------------------------------------------------
1250    
1251 ph10 162 /^[\QĀ\E-\QŐ\E]/BZ8
1252 nigel 93 ------------------------------------------------------------------
1253 ph10 192 Bra
1254 ph10 162 ^
1255     [\x{100}-\x{150}]
1256     Ket
1257     End
1258 nigel 93 ------------------------------------------------------------------
1259    
1260 ph10 162 /^[\QĀ\E-\QŐ\E/BZ8
1261 nigel 93 Failed: missing terminating ] for character class at offset 15
1262    
1263     /^abc./mgx8<any>
1264     abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x{0085}abc7 \x{2028}abc8 \x{2029}abc9 JUNK
1265     0: abc1
1266     0: abc2
1267     0: abc3
1268     0: abc4
1269     0: abc5
1270     0: abc6
1271     0: abc7
1272     0: abc8
1273     0: abc9
1274    
1275     /abc.$/mgx8<any>
1276     abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x{0085} abc7\x{2028} abc8\x{2029} abc9
1277     0: abc1
1278     0: abc2
1279     0: abc3
1280     0: abc4
1281     0: abc5
1282     0: abc6
1283     0: abc7
1284     0: abc8
1285     0: abc9
1286    
1287 ph10 247 /^a\Rb/8<bsr_unicode>
1288 nigel 93 a\nb
1289     0: a\x{0a}b
1290     a\rb
1291     0: a\x{0d}b
1292     a\r\nb
1293     0: a\x{0d}\x{0a}b
1294     a\x0bb
1295     0: a\x{0b}b
1296     a\x0cb
1297     0: a\x{0c}b
1298     a\x{85}b
1299     0: a\x{85}b
1300     a\x{2028}b
1301     0: a\x{2028}b
1302     a\x{2029}b
1303     0: a\x{2029}b
1304     ** Failers
1305     No match
1306     a\n\rb
1307     No match
1308    
1309 ph10 247 /^a\R*b/8<bsr_unicode>
1310 nigel 93 ab
1311     0: ab
1312     a\nb
1313     0: a\x{0a}b
1314     a\rb
1315     0: a\x{0d}b
1316     a\r\nb
1317     0: a\x{0d}\x{0a}b
1318     a\x0bb
1319     0: a\x{0b}b
1320     a\x0c\x{2028}\x{2029}b
1321     0: a\x{0c}\x{2028}\x{2029}b
1322     a\x{85}b
1323     0: a\x{85}b
1324     a\n\rb
1325     0: a\x{0a}\x{0d}b
1326     a\n\r\x{85}\x0cb
1327     0: a\x{0a}\x{0d}\x{85}\x{0c}b
1328    
1329 ph10 247 /^a\R+b/8<bsr_unicode>
1330 nigel 93 a\nb
1331     0: a\x{0a}b
1332     a\rb
1333     0: a\x{0d}b
1334     a\r\nb
1335     0: a\x{0d}\x{0a}b
1336     a\x0bb
1337     0: a\x{0b}b
1338     a\x0c\x{2028}\x{2029}b
1339     0: a\x{0c}\x{2028}\x{2029}b
1340     a\x{85}b
1341     0: a\x{85}b
1342     a\n\rb
1343     0: a\x{0a}\x{0d}b
1344     a\n\r\x{85}\x0cb
1345     0: a\x{0a}\x{0d}\x{85}\x{0c}b
1346     ** Failers
1347     No match
1348     ab
1349     No match
1350    
1351 ph10 247 /^a\R{1,3}b/8<bsr_unicode>
1352 nigel 93 a\nb
1353     0: a\x{0a}b
1354     a\n\rb
1355     0: a\x{0a}\x{0d}b
1356     a\n\r\x{85}b
1357     0: a\x{0a}\x{0d}\x{85}b
1358     a\r\n\r\nb
1359     0: a\x{0d}\x{0a}\x{0d}\x{0a}b
1360     a\r\n\r\n\r\nb
1361     0: a\x{0d}\x{0a}\x{0d}\x{0a}\x{0d}\x{0a}b
1362     a\n\r\n\rb
1363     0: a\x{0a}\x{0d}\x{0a}\x{0d}b
1364     a\n\n\r\nb
1365     0: a\x{0a}\x{0a}\x{0d}\x{0a}b
1366     ** Failers
1367     No match
1368     a\n\n\n\rb
1369     No match
1370     a\r
1371     No match
1372    
1373 ph10 178 /\H\h\V\v/8
1374     X X\x0a
1375     0: X X\x{0a}
1376     X\x09X\x0b
1377     0: X\x{09}X\x{0b}
1378     ** Failers
1379     No match
1380     \x{a0} X\x0a
1381     No match
1382    
1383     /\H*\h+\V?\v{3,4}/8
1384     \x09\x20\x{a0}X\x0a\x0b\x0c\x0d\x0a
1385     0: \x{09} \x{a0}X\x{0a}\x{0b}\x{0c}\x{0d}
1386     \x09\x20\x{a0}\x0a\x0b\x0c\x0d\x0a
1387     0: \x{09} \x{a0}\x{0a}\x{0b}\x{0c}\x{0d}
1388     \x09\x20\x{a0}\x0a\x0b\x0c
1389     0: \x{09} \x{a0}\x{0a}\x{0b}\x{0c}
1390     ** Failers
1391     No match
1392     \x09\x20\x{a0}\x0a\x0b
1393     No match
1394    
1395     /\H\h\V\v/8
1396     \x{3001}\x{3000}\x{2030}\x{2028}
1397     0: \x{3001}\x{3000}\x{2030}\x{2028}
1398     X\x{180e}X\x{85}
1399     0: X\x{180e}X\x{85}
1400     ** Failers
1401     No match
1402     \x{2009} X\x0a
1403     No match
1404    
1405     /\H*\h+\V?\v{3,4}/8
1406     \x{1680}\x{180e}\x{2007}X\x{2028}\x{2029}\x0c\x0d\x0a
1407     0: \x{1680}\x{180e}\x{2007}X\x{2028}\x{2029}\x{0c}\x{0d}
1408     \x09\x{205f}\x{a0}\x0a\x{2029}\x0c\x{2028}\x0a
1409     0: \x{09}\x{205f}\x{a0}\x{0a}\x{2029}\x{0c}\x{2028}
1410     \x09\x20\x{202f}\x0a\x0b\x0c
1411     0: \x{09} \x{202f}\x{0a}\x{0b}\x{0c}
1412     ** Failers
1413     No match
1414     \x09\x{200a}\x{a0}\x{2028}\x0b
1415     No match
1416    
1417     /[\h]/8BZ
1418     ------------------------------------------------------------------
1419 ph10 192 Bra
1420 ph10 178 [\x09 \xa0\x{1680}\x{180e}\x{2000}-\x{200a}\x{202f}\x{205f}\x{3000}]
1421     Ket
1422     End
1423     ------------------------------------------------------------------
1424     >\x{1680}
1425     0: \x{1680}
1426    
1427     /[\h]{3,}/8BZ
1428     ------------------------------------------------------------------
1429 ph10 192 Bra
1430 ph10 178 [\x09 \xa0\x{1680}\x{180e}\x{2000}-\x{200a}\x{202f}\x{205f}\x{3000}]{3,}
1431     Ket
1432     End
1433     ------------------------------------------------------------------
1434     >\x{1680}\x{180e}\x{2000}\x{2003}\x{200a}\x{202f}\x{205f}\x{3000}<
1435     0: \x{1680}\x{180e}\x{2000}\x{2003}\x{200a}\x{202f}\x{205f}\x{3000}
1436    
1437     /[\v]/8BZ
1438     ------------------------------------------------------------------
1439 ph10 192 Bra
1440 ph10 178 [\x0a-\x0d\x85\x{2028}-\x{2029}]
1441     Ket
1442     End
1443     ------------------------------------------------------------------
1444    
1445     /[\H]/8BZ
1446     ------------------------------------------------------------------
1447 ph10 192 Bra
1448 ph10 178 [\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}]
1449     Ket
1450     End
1451     ------------------------------------------------------------------
1452    
1453     /[\V]/8BZ
1454     ------------------------------------------------------------------
1455 ph10 192 Bra
1456 ph10 178 [\x00-\x09\x0e-\x84\x86-\xff\x{100}-\x{2027}\x{2029}-\x{7fffffff}]
1457     Ket
1458     End
1459     ------------------------------------------------------------------
1460    
1461 ph10 190 /.*$/8<any>
1462     \x{1ec5}
1463     0: \x{1ec5}
1464 ph10 211
1465     /-- This tests the stricter UTF-8 check according to RFC 3629. --/
1466    
1467     /X/8
1468     \x{0}\x{d7ff}\x{e000}\x{10ffff}
1469     No match
1470     \x{d800}
1471     Error -10
1472     \x{d800}\?
1473     No match
1474     \x{da00}
1475     Error -10
1476     \x{da00}\?
1477     No match
1478     \x{dfff}
1479     Error -10
1480     \x{dfff}\?
1481     No match
1482     \x{110000}
1483     Error -10
1484     \x{110000}\?
1485     No match
1486     \x{2000000}
1487     Error -10
1488     \x{2000000}\?
1489     No match
1490     \x{7fffffff}
1491     Error -10
1492     \x{7fffffff}\?
1493     No match
1494 ph10 190
1495 ph10 231 /a\Rb/I8<bsr_anycrlf>
1496     Capturing subpattern count = 0
1497     Options: bsr_anycrlf utf8
1498     First char = 'a'
1499     Need char = 'b'
1500     a\rb
1501     0: a\x{0d}b
1502     a\nb
1503     0: a\x{0a}b
1504     a\r\nb
1505     0: a\x{0d}\x{0a}b
1506     ** Failers
1507     No match
1508     a\x{85}b
1509     No match
1510     a\x0bb
1511     No match
1512    
1513     /a\Rb/I8<bsr_unicode>
1514     Capturing subpattern count = 0
1515     Options: bsr_unicode utf8
1516     First char = 'a'
1517     Need char = 'b'
1518     a\rb
1519     0: a\x{0d}b
1520     a\nb
1521     0: a\x{0a}b
1522     a\r\nb
1523     0: a\x{0d}\x{0a}b
1524     a\x{85}b
1525     0: a\x{85}b
1526     a\x0bb
1527     0: a\x{0b}b
1528     ** Failers
1529     No match
1530     a\x{85}b\<bsr_anycrlf>
1531     No match
1532     a\x0bb\<bsr_anycrlf>
1533     No match
1534    
1535     /a\R?b/I8<bsr_anycrlf>
1536     Capturing subpattern count = 0
1537     Options: bsr_anycrlf utf8
1538     First char = 'a'
1539     Need char = 'b'
1540     a\rb
1541     0: a\x{0d}b
1542     a\nb
1543     0: a\x{0a}b
1544     a\r\nb
1545     0: a\x{0d}\x{0a}b
1546     ** Failers
1547     No match
1548     a\x{85}b
1549     No match
1550     a\x0bb
1551     No match
1552    
1553     /a\R?b/I8<bsr_unicode>
1554     Capturing subpattern count = 0
1555     Options: bsr_unicode utf8
1556     First char = 'a'
1557     Need char = 'b'
1558     a\rb
1559     0: a\x{0d}b
1560     a\nb
1561     0: a\x{0a}b
1562     a\r\nb
1563     0: a\x{0d}\x{0a}b
1564     a\x{85}b
1565     0: a\x{85}b
1566     a\x0bb
1567     0: a\x{0b}b
1568     ** Failers
1569     No match
1570     a\x{85}b\<bsr_anycrlf>
1571     No match
1572     a\x0bb\<bsr_anycrlf>
1573     No match
1574    
1575 ph10 294 /.*a.*=.b.*/8<ANY>
1576     QQQ\x{2029}ABCaXYZ=!bPQR
1577     0: ABCaXYZ=!bPQR
1578     ** Failers
1579     No match
1580     a\x{2029}b
1581     No match
1582     \x61\xe2\x80\xa9\x62
1583     No match
1584    
1585 ph10 295 /[[:a\x{100}b:]]/8
1586     Failed: unknown POSIX class name at offset 3
1587    
1588 ph10 341 /a[^]b/<JS>8
1589     a\x{1234}b
1590     0: a\x{1234}b
1591     a\nb
1592     0: a\x{0a}b
1593     ** Failers
1594     No match
1595     ab
1596     No match
1597    
1598     /a[^]+b/<JS>8
1599     aXb
1600     0: aXb
1601     a\nX\nX\x{1234}b
1602     0: a\x{0a}X\x{0a}X\x{1234}b
1603     ** Failers
1604     No match
1605     ab
1606     No match
1607    
1608 ph10 355 /(\x{de})\1/
1609     \x{de}\x{de}
1610     0: \xde\xde
1611     1: \xde
1612     \x{123}
1613     ** Character \x{123} is greater than 255 and UTF-8 mode is not enabled.
1614     ** Truncation will probably give the wrong result.
1615     No match
1616    
1617 ph10 364 /X/8f<any>
1618     A\x{1ec5}ABCXYZ
1619     0: X
1620    
1621 ph10 412 /(*UTF8)\x{1234}/
1622     abcd\x{1234}pqr
1623     0: \x{1234}
1624    
1625     /(*CRLF)(*UTF8)(*BSR_UNICODE)a\Rb/I
1626     Capturing subpattern count = 0
1627     Options: bsr_unicode utf8
1628     Forced newline sequence: CRLF
1629     First char = 'a'
1630     Need char = 'b'
1631    
1632 ph10 426 /Xa{2,4}b/8
1633     X\P
1634     Partial match: X
1635     Xa\P
1636     Partial match: Xa
1637     Xaa\P
1638     Partial match: Xaa
1639     Xaaa\P
1640     Partial match: Xaaa
1641     Xaaaa\P
1642     Partial match: Xaaaa
1643    
1644     /Xa{2,4}?b/8
1645     X\P
1646     Partial match: X
1647     Xa\P
1648     Partial match: Xa
1649     Xaa\P
1650     Partial match: Xaa
1651     Xaaa\P
1652     Partial match: Xaaa
1653     Xaaaa\P
1654     Partial match: Xaaaa
1655    
1656     /Xa{2,4}+b/8
1657     X\P
1658     Partial match: X
1659     Xa\P
1660     Partial match: Xa
1661     Xaa\P
1662     Partial match: Xaa
1663     Xaaa\P
1664     Partial match: Xaaa
1665     Xaaaa\P
1666     Partial match: Xaaaa
1667    
1668     /X\x{123}{2,4}b/8
1669     X\P
1670     Partial match: X
1671     X\x{123}\P
1672     Partial match: X\x{123}
1673     X\x{123}\x{123}\P
1674     Partial match: X\x{123}\x{123}
1675     X\x{123}\x{123}\x{123}\P
1676     Partial match: X\x{123}\x{123}\x{123}
1677     X\x{123}\x{123}\x{123}\x{123}\P
1678     Partial match: X\x{123}\x{123}\x{123}\x{123}
1679    
1680     /X\x{123}{2,4}?b/8
1681     X\P
1682     Partial match: X
1683     X\x{123}\P
1684     Partial match: X\x{123}
1685     X\x{123}\x{123}\P
1686     Partial match: X\x{123}\x{123}
1687     X\x{123}\x{123}\x{123}\P
1688     Partial match: X\x{123}\x{123}\x{123}
1689     X\x{123}\x{123}\x{123}\x{123}\P
1690     Partial match: X\x{123}\x{123}\x{123}\x{123}
1691    
1692     /X\x{123}{2,4}+b/8
1693     X\P
1694     Partial match: X
1695     X\x{123}\P
1696     Partial match: X\x{123}
1697     X\x{123}\x{123}\P
1698     Partial match: X\x{123}\x{123}
1699     X\x{123}\x{123}\x{123}\P
1700     Partial match: X\x{123}\x{123}\x{123}
1701     X\x{123}\x{123}\x{123}\x{123}\P
1702     Partial match: X\x{123}\x{123}\x{123}\x{123}
1703    
1704     /X\x{123}{2,4}b/8
1705     Xx\P
1706     No match
1707     X\x{123}x\P
1708     No match
1709     X\x{123}\x{123}x\P
1710     No match
1711     X\x{123}\x{123}\x{123}x\P
1712     No match
1713     X\x{123}\x{123}\x{123}\x{123}x\P
1714     No match
1715    
1716     /X\x{123}{2,4}?b/8
1717     Xx\P
1718     No match
1719     X\x{123}x\P
1720     No match
1721     X\x{123}\x{123}x\P
1722     No match
1723     X\x{123}\x{123}\x{123}x\P
1724     No match
1725     X\x{123}\x{123}\x{123}\x{123}x\P
1726     No match
1727    
1728     /X\x{123}{2,4}+b/8
1729     Xx\P
1730     No match
1731     X\x{123}x\P
1732     No match
1733     X\x{123}\x{123}x\P
1734     No match
1735     X\x{123}\x{123}\x{123}x\P
1736     No match
1737     X\x{123}\x{123}\x{123}\x{123}x\P
1738     No match
1739    
1740     /X\d{2,4}b/8
1741     X\P
1742     Partial match: X
1743     X3\P
1744     Partial match: X3
1745     X33\P
1746     Partial match: X33
1747     X333\P
1748     Partial match: X333
1749     X3333\P
1750     Partial match: X3333
1751    
1752     /X\d{2,4}?b/8
1753     X\P
1754     Partial match: X
1755     X3\P
1756     Partial match: X3
1757     X33\P
1758     Partial match: X33
1759     X333\P
1760     Partial match: X333
1761     X3333\P
1762     Partial match: X3333
1763    
1764     /X\d{2,4}+b/8
1765     X\P
1766     Partial match: X
1767     X3\P
1768     Partial match: X3
1769     X33\P
1770     Partial match: X33
1771     X333\P
1772     Partial match: X333
1773     X3333\P
1774     Partial match: X3333
1775    
1776     /X\D{2,4}b/8
1777     X\P
1778     Partial match: X
1779     Xa\P
1780     Partial match: Xa
1781     Xaa\P
1782     Partial match: Xaa
1783     Xaaa\P
1784     Partial match: Xaaa
1785     Xaaaa\P
1786     Partial match: Xaaaa
1787    
1788     /X\D{2,4}?b/8
1789     X\P
1790     Partial match: X
1791     Xa\P
1792     Partial match: Xa
1793     Xaa\P
1794     Partial match: Xaa
1795     Xaaa\P
1796     Partial match: Xaaa
1797     Xaaaa\P
1798     Partial match: Xaaaa
1799    
1800     /X\D{2,4}+b/8
1801     X\P
1802     Partial match: X
1803     Xa\P
1804     Partial match: Xa
1805     Xaa\P
1806     Partial match: Xaa
1807     Xaaa\P
1808     Partial match: Xaaa
1809     Xaaaa\P
1810     Partial match: Xaaaa
1811    
1812     /X\D{2,4}b/8
1813     X\P
1814     Partial match: X
1815     X\x{123}\P
1816     Partial match: X\x{123}
1817     X\x{123}\x{123}\P
1818     Partial match: X\x{123}\x{123}
1819     X\x{123}\x{123}\x{123}\P
1820     Partial match: X\x{123}\x{123}\x{123}
1821     X\x{123}\x{123}\x{123}\x{123}\P
1822     Partial match: X\x{123}\x{123}\x{123}\x{123}
1823    
1824     /X\D{2,4}?b/8
1825     X\P
1826     Partial match: X
1827     X\x{123}\P
1828     Partial match: X\x{123}
1829     X\x{123}\x{123}\P
1830     Partial match: X\x{123}\x{123}
1831     X\x{123}\x{123}\x{123}\P
1832     Partial match: X\x{123}\x{123}\x{123}
1833     X\x{123}\x{123}\x{123}\x{123}\P
1834     Partial match: X\x{123}\x{123}\x{123}\x{123}
1835    
1836     /X\D{2,4}+b/8
1837     X\P
1838     Partial match: X
1839     X\x{123}\P
1840     Partial match: X\x{123}
1841     X\x{123}\x{123}\P
1842     Partial match: X\x{123}\x{123}
1843     X\x{123}\x{123}\x{123}\P
1844     Partial match: X\x{123}\x{123}\x{123}
1845     X\x{123}\x{123}\x{123}\x{123}\P
1846     Partial match: X\x{123}\x{123}\x{123}\x{123}
1847    
1848     /X[abc]{2,4}b/8
1849     X\P
1850     Partial match: X
1851     Xa\P
1852     Partial match: Xa
1853     Xaa\P
1854     Partial match: Xaa
1855     Xaaa\P
1856     Partial match: Xaaa
1857     Xaaaa\P
1858     Partial match: Xaaaa
1859    
1860     /X[abc]{2,4}?b/8
1861     X\P
1862     Partial match: X
1863     Xa\P
1864     Partial match: Xa
1865     Xaa\P
1866     Partial match: Xaa
1867     Xaaa\P
1868     Partial match: Xaaa
1869     Xaaaa\P
1870     Partial match: Xaaaa
1871    
1872     /X[abc]{2,4}+b/8
1873     X\P
1874     Partial match: X
1875     Xa\P
1876     Partial match: Xa
1877     Xaa\P
1878     Partial match: Xaa
1879     Xaaa\P
1880     Partial match: Xaaa
1881     Xaaaa\P
1882     Partial match: Xaaaa
1883    
1884     /X[abc\x{123}]{2,4}b/8
1885     X\P
1886     Partial match: X
1887     X\x{123}\P
1888     Partial match: X\x{123}
1889     X\x{123}\x{123}\P
1890     Partial match: X\x{123}\x{123}
1891     X\x{123}\x{123}\x{123}\P
1892     Partial match: X\x{123}\x{123}\x{123}
1893     X\x{123}\x{123}\x{123}\x{123}\P
1894     Partial match: X\x{123}\x{123}\x{123}\x{123}
1895    
1896     /X[abc\x{123}]{2,4}?b/8
1897     X\P
1898     Partial match: X
1899     X\x{123}\P
1900     Partial match: X\x{123}
1901     X\x{123}\x{123}\P
1902     Partial match: X\x{123}\x{123}
1903     X\x{123}\x{123}\x{123}\P
1904     Partial match: X\x{123}\x{123}\x{123}
1905     X\x{123}\x{123}\x{123}\x{123}\P
1906     Partial match: X\x{123}\x{123}\x{123}\x{123}
1907    
1908     /X[abc\x{123}]{2,4}+b/8
1909     X\P
1910     Partial match: X
1911     X\x{123}\P
1912     Partial match: X\x{123}
1913     X\x{123}\x{123}\P
1914     Partial match: X\x{123}\x{123}
1915     X\x{123}\x{123}\x{123}\P
1916     Partial match: X\x{123}\x{123}\x{123}
1917     X\x{123}\x{123}\x{123}\x{123}\P
1918     Partial match: X\x{123}\x{123}\x{123}\x{123}
1919    
1920     /X[^a]{2,4}b/8
1921     X\P
1922     Partial match: X
1923     Xz\P
1924     Partial match: Xz
1925     Xzz\P
1926     Partial match: Xzz
1927     Xzzz\P
1928     Partial match: Xzzz
1929     Xzzzz\P
1930     Partial match: Xzzzz
1931    
1932     /X[^a]{2,4}?b/8
1933     X\P
1934     Partial match: X
1935     Xz\P
1936     Partial match: Xz
1937     Xzz\P
1938     Partial match: Xzz
1939     Xzzz\P
1940     Partial match: Xzzz
1941     Xzzzz\P
1942     Partial match: Xzzzz
1943    
1944     /X[^a]{2,4}+b/8
1945     X\P
1946     Partial match: X
1947     Xz\P
1948     Partial match: Xz
1949     Xzz\P
1950     Partial match: Xzz
1951     Xzzz\P
1952     Partial match: Xzzz
1953     Xzzzz\P
1954     Partial match: Xzzzz
1955    
1956     /X[^a]{2,4}b/8
1957     X\P
1958     Partial match: X
1959     X\x{123}\P
1960     Partial match: X\x{123}
1961     X\x{123}\x{123}\P
1962     Partial match: X\x{123}\x{123}
1963     X\x{123}\x{123}\x{123}\P
1964     Partial match: X\x{123}\x{123}\x{123}
1965     X\x{123}\x{123}\x{123}\x{123}\P
1966     Partial match: X\x{123}\x{123}\x{123}\x{123}
1967    
1968     /X[^a]{2,4}?b/8
1969     X\P
1970     Partial match: X
1971     X\x{123}\P
1972     Partial match: X\x{123}
1973     X\x{123}\x{123}\P
1974     Partial match: X\x{123}\x{123}
1975     X\x{123}\x{123}\x{123}\P
1976     Partial match: X\x{123}\x{123}\x{123}
1977     X\x{123}\x{123}\x{123}\x{123}\P
1978     Partial match: X\x{123}\x{123}\x{123}\x{123}
1979    
1980     /X[^a]{2,4}+b/8
1981     X\P
1982     Partial match: X
1983     X\x{123}\P
1984     Partial match: X\x{123}
1985     X\x{123}\x{123}\P
1986     Partial match: X\x{123}\x{123}
1987     X\x{123}\x{123}\x{123}\P
1988     Partial match: X\x{123}\x{123}\x{123}
1989     X\x{123}\x{123}\x{123}\x{123}\P
1990     Partial match: X\x{123}\x{123}\x{123}\x{123}
1991    
1992     /(Y)X\1{2,4}b/8
1993     YX\P
1994     Partial match: YX
1995     YXY\P
1996     Partial match: YXY
1997     YXYY\P
1998     Partial match: YXYY
1999     YXYYY\P
2000     Partial match: YXYYY
2001     YXYYYY\P
2002     Partial match: YXYYYY
2003    
2004     /(Y)X\1{2,4}?b/8
2005     YX\P
2006     Partial match: YX
2007     YXY\P
2008     Partial match: YXY
2009     YXYY\P
2010     Partial match: YXYY
2011     YXYYY\P
2012     Partial match: YXYYY
2013     YXYYYY\P
2014     Partial match: YXYYYY
2015    
2016     /(Y)X\1{2,4}+b/8
2017     YX\P
2018     Partial match: YX
2019     YXY\P
2020     Partial match: YXY
2021     YXYY\P
2022     Partial match: YXYY
2023     YXYYY\P
2024     Partial match: YXYYY
2025     YXYYYY\P
2026     Partial match: YXYYYY
2027    
2028     /(\x{123})X\1{2,4}b/8
2029     \x{123}X\P
2030     Partial match: \x{123}X
2031     \x{123}X\x{123}\P
2032     Partial match: \x{123}X\x{123}
2033     \x{123}X\x{123}\x{123}\P
2034     Partial match: \x{123}X\x{123}\x{123}
2035     \x{123}X\x{123}\x{123}\x{123}\P
2036     Partial match: \x{123}X\x{123}\x{123}\x{123}
2037     \x{123}X\x{123}\x{123}\x{123}\x{123}\P
2038     Partial match: \x{123}X\x{123}\x{123}\x{123}\x{123}
2039    
2040     /(\x{123})X\1{2,4}?b/8
2041     \x{123}X\P
2042     Partial match: \x{123}X
2043     \x{123}X\x{123}\P
2044     Partial match: \x{123}X\x{123}
2045     \x{123}X\x{123}\x{123}\P
2046     Partial match: \x{123}X\x{123}\x{123}
2047     \x{123}X\x{123}\x{123}\x{123}\P
2048     Partial match: \x{123}X\x{123}\x{123}\x{123}
2049     \x{123}X\x{123}\x{123}\x{123}\x{123}\P
2050     Partial match: \x{123}X\x{123}\x{123}\x{123}\x{123}
2051    
2052     /(\x{123})X\1{2,4}+b/8
2053     \x{123}X\P
2054     Partial match: \x{123}X
2055     \x{123}X\x{123}\P
2056     Partial match: \x{123}X\x{123}
2057     \x{123}X\x{123}\x{123}\P
2058     Partial match: \x{123}X\x{123}\x{123}
2059     \x{123}X\x{123}\x{123}\x{123}\P
2060     Partial match: \x{123}X\x{123}\x{123}\x{123}
2061     \x{123}X\x{123}\x{123}\x{123}\x{123}\P
2062     Partial match: \x{123}X\x{123}\x{123}\x{123}\x{123}
2063    
2064 nigel 49 / End of testinput5 /

Properties

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12