/[pcre]/code/trunk/testoutput2
ViewVC logotype

Contents of /code/trunk/testoutput2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27 - (hide annotations) (download)
Sat Feb 24 21:38:49 2007 UTC (7 years, 6 months ago) by nigel
File size: 15506 byte(s)
Load pcre-2.02 into code/trunk.

1 nigel 27 PCRE version 2.02 14-Jan-1999
2 nigel 3
3     /(a)b|/
4     Identifying subpattern count = 1
5     No options
6     No first char
7    
8     /abc/
9     Identifying subpattern count = 0
10     No options
11     First char = 'a'
12     abc
13     0: abc
14     defabc
15     0: abc
16     \Aabc
17     0: abc
18     *** Failers
19     No match
20     \Adefabc
21     No match
22     ABC
23     No match
24    
25     /^abc/
26     Identifying subpattern count = 0
27     Options: anchored
28     No first char
29     abc
30     0: abc
31     \Aabc
32     0: abc
33     *** Failers
34     No match
35     defabc
36     No match
37     \Adefabc
38     No match
39    
40     /a+bc/
41     Identifying subpattern count = 0
42     No options
43     First char = 'a'
44    
45     /a*bc/
46     Identifying subpattern count = 0
47     No options
48     No first char
49    
50     /a{3}bc/
51     Identifying subpattern count = 0
52     No options
53     First char = 'a'
54    
55     /(abc|a+z)/
56     Identifying subpattern count = 1
57     No options
58     First char = 'a'
59    
60     /^abc$/
61     Identifying subpattern count = 0
62     Options: anchored
63     No first char
64     abc
65     0: abc
66     *** Failers
67     No match
68     def\nabc
69     No match
70    
71     /abc\/
72     Failed: \ at end of pattern at offset 4
73    
74     /ab\gdef/X
75     Failed: unrecognized character follows \ at offset 3
76    
77 nigel 19 /(?X)ab\gdef/X
78     Failed: unrecognized character follows \ at offset 7
79    
80 nigel 3 /x{5,4}/
81     Failed: numbers out of order in {} quantifier at offset 5
82    
83     /z{65536}/
84     Failed: number too big in {} quantifier at offset 7
85    
86     /[abcd/
87     Failed: missing terminating ] for character class at offset 5
88    
89     /[\B]/
90     Failed: invalid escape sequence in character class at offset 2
91    
92     /[a-\w]/
93     Failed: invalid escape sequence in character class at offset 4
94    
95     /[z-a]/
96     Failed: range out of order in character class at offset 3
97    
98     /^*/
99     Failed: nothing to repeat at offset 1
100    
101     /(abc/
102     Failed: missing ) at offset 4
103    
104     /(?# abc/
105     Failed: missing ) after comment at offset 7
106    
107     /(?z)abc/
108     Failed: unrecognized character after (? at offset 2
109    
110     /.*b/
111     Identifying subpattern count = 0
112     Options: anchored
113     No first char
114    
115     /.*?b/
116     Identifying subpattern count = 0
117     Options: anchored
118     No first char
119    
120     /cat|dog|elephant/
121     Identifying subpattern count = 0
122     No options
123     No first char
124     this sentence eventually mentions a cat
125     0: cat
126     this sentences rambles on and on for a while and then reaches elephant
127     0: elephant
128    
129     /cat|dog|elephant/S
130     Identifying subpattern count = 0
131     No options
132     No first char
133     Starting character set: c d e
134     this sentence eventually mentions a cat
135     0: cat
136     this sentences rambles on and on for a while and then reaches elephant
137     0: elephant
138    
139     /cat|dog|elephant/iS
140     Identifying subpattern count = 0
141     Options: caseless
142     No first char
143     Starting character set: C D E c d e
144     this sentence eventually mentions a CAT cat
145     0: CAT
146     this sentences rambles on and on for a while to elephant ElePhant
147     0: elephant
148    
149     /a|[bcd]/S
150     Identifying subpattern count = 0
151     No options
152     No first char
153     Starting character set: a b c d
154    
155     /(a|[^\dZ])/S
156     Identifying subpattern count = 1
157     No options
158     No first char
159     Starting character set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a
160     \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19
161     \x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / : ; < = >
162     ? @ 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 [ \ ] ^ _ ` a b c d
163     e f g h i j k l m n o p q r s t u v w x y z { | } ~ \x7f \x80 \x81 \x82 \x83
164     \x84 \x85 \x86 \x87 \x88 \x89 \x8a \x8b \x8c \x8d \x8e \x8f \x90 \x91 \x92
165     \x93 \x94 \x95 \x96 \x97 \x98 \x99 \x9a \x9b \x9c \x9d \x9e \x9f \xa0 \xa1
166     \xa2 \xa3 \xa4 \xa5 \xa6 \xa7 \xa8 \xa9 \xaa \xab \xac \xad \xae \xaf \xb0
167     \xb1 \xb2 \xb3 \xb4 \xb5 \xb6 \xb7 \xb8 \xb9 \xba \xbb \xbc \xbd \xbe \xbf
168     \xc0 \xc1 \xc2 \xc3 \xc4 \xc5 \xc6 \xc7 \xc8 \xc9 \xca \xcb \xcc \xcd \xce
169     \xcf \xd0 \xd1 \xd2 \xd3 \xd4 \xd5 \xd6 \xd7 \xd8 \xd9 \xda \xdb \xdc \xdd
170     \xde \xdf \xe0 \xe1 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8 \xe9 \xea \xeb \xec
171     \xed \xee \xef \xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7 \xf8 \xf9 \xfa \xfb
172     \xfc \xfd \xfe \xff
173    
174     /(a|b)*[\s]/S
175     Identifying subpattern count = 1
176     No options
177     No first char
178     Starting character set: \x09 \x0a \x0b \x0c \x0d \x20 a b
179    
180     /(ab\2)/
181 nigel 23 Failed: back reference to non-existent subpattern at offset 6
182 nigel 3
183     /{4,5}abc/
184     Failed: nothing to repeat at offset 4
185    
186     /(a)(b)(c)\2/
187     Identifying subpattern count = 3
188     No options
189     First char = 'a'
190     abcb
191     0: abcb
192     1: a
193     2: b
194     3: c
195     \O0abcb
196     Matched, but too many substrings
197 nigel 23 \O3abcb
198 nigel 3 Matched, but too many substrings
199     0: abcb
200 nigel 23 \O6abcb
201 nigel 3 Matched, but too many substrings
202     0: abcb
203     1: a
204 nigel 23 \O9abcb
205 nigel 3 Matched, but too many substrings
206     0: abcb
207     1: a
208     2: b
209 nigel 23 \O12abcb
210 nigel 3 0: abcb
211     1: a
212     2: b
213     3: c
214    
215     /(a)bc|(a)(b)\2/
216     Identifying subpattern count = 3
217     No options
218     First char = 'a'
219     abc
220     0: abc
221     1: a
222     \O0abc
223     Matched, but too many substrings
224 nigel 23 \O3abc
225 nigel 3 Matched, but too many substrings
226     0: abc
227 nigel 23 \O6abc
228 nigel 3 0: abc
229     1: a
230     aba
231     0: aba
232     1: <unset>
233     2: a
234     3: b
235     \O0aba
236     Matched, but too many substrings
237 nigel 23 \O3aba
238 nigel 3 Matched, but too many substrings
239     0: aba
240 nigel 23 \O6aba
241 nigel 3 Matched, but too many substrings
242     0: aba
243     1: <unset>
244 nigel 23 \O9aba
245 nigel 3 Matched, but too many substrings
246     0: aba
247     1: <unset>
248     2: a
249 nigel 23 \O12aba
250 nigel 3 0: aba
251     1: <unset>
252     2: a
253     3: b
254    
255     /abc$/E
256     Identifying subpattern count = 0
257     Options: dollar_endonly
258     First char = 'a'
259     abc
260     0: abc
261     *** Failers
262     No match
263     abc\n
264     No match
265     abc\ndef
266     No match
267    
268     /(a)(b)(c)(d)(e)\6/
269 nigel 23 Failed: back reference to non-existent subpattern at offset 17
270 nigel 3
271     /the quick brown fox/
272     Identifying subpattern count = 0
273     No options
274     First char = 't'
275     the quick brown fox
276     0: the quick brown fox
277     this is a line with the quick brown fox
278     0: the quick brown fox
279    
280     /the quick brown fox/A
281     Identifying subpattern count = 0
282     Options: anchored
283     No first char
284     the quick brown fox
285     0: the quick brown fox
286     *** Failers
287     No match
288     this is a line with the quick brown fox
289     No match
290    
291     /ab(?z)cd/
292     Failed: unrecognized character after (? at offset 4
293    
294     /^abc|def/
295     Identifying subpattern count = 0
296     No options
297     No first char
298     abcdef
299     0: abc
300     abcdef\B
301     0: def
302    
303     /.*((abc)$|(def))/
304     Identifying subpattern count = 3
305     Options: anchored
306     No first char
307     defabc
308     0: defabc
309     1: abc
310     2: abc
311     \Zdefabc
312     0: def
313     1: def
314     2: <unset>
315     3: def
316    
317     /abc/P
318     abc
319     0: abc
320     *** Failers
321     No match: POSIX code 17: match failed
322    
323     /^abc|def/P
324     abcdef
325     0: abc
326     abcdef\B
327     0: def
328    
329     /.*((abc)$|(def))/P
330     defabc
331     0: defabc
332     1: abc
333     2: abc
334     \Zdefabc
335     0: def
336     1: def
337     3: def
338    
339     /the quick brown fox/P
340     the quick brown fox
341     0: the quick brown fox
342     *** Failers
343     No match: POSIX code 17: match failed
344     The Quick Brown Fox
345     No match: POSIX code 17: match failed
346    
347     /the quick brown fox/Pi
348     the quick brown fox
349     0: the quick brown fox
350     The Quick Brown Fox
351     0: The Quick Brown Fox
352    
353     /abc.def/P
354     *** Failers
355     No match: POSIX code 17: match failed
356     abc\ndef
357     No match: POSIX code 17: match failed
358    
359     /abc$/P
360     abc
361     0: abc
362     abc\n
363     0: abc
364    
365     /abc\/P
366     Failed: POSIX code 9: bad escape sequence at offset 4
367    
368     /(abc)\2/P
369 nigel 23 Failed: POSIX code 15: bad back reference at offset 7
370 nigel 3
371     /(abc\1)/P
372     abc
373 nigel 23 No match: POSIX code 17: match failed
374 nigel 3
375 nigel 9 /)/
376 nigel 23 Failed: unmatched parentheses at offset 0
377 nigel 9
378     /a[]b/
379     Failed: missing terminating ] for character class at offset 4
380    
381 nigel 13 /[^aeiou ]{3,}/
382     Identifying subpattern count = 0
383     No options
384     No first char
385     co-processors, and for
386     0: -pr
387 nigel 17
388 nigel 19 /<.*>/
389     Identifying subpattern count = 0
390     No options
391     First char = '<'
392     abc<def>ghi<klm>nop
393     0: <def>ghi<klm>
394    
395     /<.*?>/
396     Identifying subpattern count = 0
397     No options
398     First char = '<'
399     abc<def>ghi<klm>nop
400     0: <def>
401    
402     /<.*>/U
403     Identifying subpattern count = 0
404     Options: ungreedy
405     First char = '<'
406     abc<def>ghi<klm>nop
407     0: <def>
408    
409     /<.*>(?U)/
410     Identifying subpattern count = 0
411     Options: ungreedy
412     First char = '<'
413     abc<def>ghi<klm>nop
414     0: <def>
415    
416     /<.*?>/U
417     Identifying subpattern count = 0
418     Options: ungreedy
419     First char = '<'
420     abc<def>ghi<klm>nop
421     0: <def>ghi<klm>
422    
423     /={3,}/U
424     Identifying subpattern count = 0
425     Options: ungreedy
426     First char = '='
427     abc========def
428     0: ===
429    
430     /(?U)={3,}?/
431     Identifying subpattern count = 0
432     Options: ungreedy
433     First char = '='
434     abc========def
435     0: ========
436 nigel 23
437     /(?<!bar|cattle)foo/
438     Identifying subpattern count = 0
439     No options
440     First char = 'f'
441     foo
442     0: foo
443     catfoo
444     0: foo
445     *** Failers
446     No match
447     the barfoo
448     No match
449     and cattlefoo
450     No match
451 nigel 19
452 nigel 23 /(?<=a+)b/
453     Failed: lookbehind assertion is not fixed length at offset 6
454    
455     /(?<=aaa|b{0,3})b/
456     Failed: lookbehind assertion is not fixed length at offset 14
457    
458     /(?<!(foo)a\1)bar/
459     Failed: lookbehind assertion is not fixed length at offset 12
460    
461     /(?i)abc/
462     Identifying subpattern count = 0
463     Options: caseless
464     First char = 'a'
465    
466     /(a|(?m)a)/
467     Identifying subpattern count = 1
468     No options
469     First char = 'a'
470    
471     /(?i)^1234/
472     Identifying subpattern count = 0
473     Options: anchored caseless
474     No first char
475    
476     /(^b|(?i)^d)/
477     Identifying subpattern count = 1
478     Options: anchored
479     No first char
480    
481     /(?s).*/
482     Identifying subpattern count = 0
483     Options: anchored dotall
484     No first char
485    
486     /[abcd]/S
487     Identifying subpattern count = 0
488     No options
489     No first char
490     Starting character set: a b c d
491    
492     /(?i)[abcd]/S
493     Identifying subpattern count = 0
494     Options: caseless
495     No first char
496     Starting character set: A B C D a b c d
497    
498     /(?m)[xy]|(b|c)/S
499     Identifying subpattern count = 1
500     Options: multiline
501     No first char
502     Starting character set: b c x y
503    
504     /(^a|^b)/m
505     Identifying subpattern count = 1
506     Options: multiline
507     First char at start or follows \n
508    
509     /(?i)(^a|^b)/m
510     Identifying subpattern count = 1
511     Options: caseless multiline
512     First char at start or follows \n
513    
514     /(a)(?(1)a|b|c)/
515     Failed: conditional group contains more than two branches at offset 13
516    
517     /(?(?=a)a|b|c)/
518     Failed: conditional group contains more than two branches at offset 12
519    
520     /(?(1a)/
521     Failed: malformed number after (?( at offset 4
522    
523     /(?(?i))/
524     Failed: assertion expected after (?( at offset 3
525    
526     /(?(abc))/
527     Failed: assertion expected after (?( at offset 3
528    
529     /(?(?<ab))/
530     Failed: unrecognized character after (?< at offset 2
531    
532     /((?s)blah)\s+\1/
533     Identifying subpattern count = 1
534     No options
535     First char = 'b'
536    
537     /((?i)blah)\s+\1/
538     Identifying subpattern count = 1
539     No options
540     No first char
541    
542     /((?i)b)/DS
543     ------------------------------------------------------------------
544     0 16 Bra 0
545     3 8 Bra 1
546     6 01 Opt
547     8 1 b
548     11 8 Ket
549     14 00 Opt
550     16 16 Ket
551     19 End
552     ------------------------------------------------------------------
553     Identifying subpattern count = 1
554     No options
555     No first char
556     Starting character set: B b
557    
558     /(a*b|(?i:c*(?-i)d))/S
559     Identifying subpattern count = 1
560     No options
561     No first char
562     Starting character set: C a b c d
563    
564     /a$/
565     Identifying subpattern count = 0
566     No options
567     First char = 'a'
568     a
569     0: a
570     a\n
571     0: a
572     *** Failers
573     No match
574     \Za
575     No match
576     \Za\n
577     No match
578    
579     /a$/m
580     Identifying subpattern count = 0
581     Options: multiline
582     First char = 'a'
583     a
584     0: a
585     a\n
586     0: a
587     \Za\n
588     0: a
589     *** Failers
590     No match
591     \Za
592     No match
593    
594     /\Aabc/m
595     Identifying subpattern count = 0
596     Options: anchored multiline
597     No first char
598    
599     /^abc/m
600     Identifying subpattern count = 0
601     Options: multiline
602     First char at start or follows \n
603    
604     /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/
605     Identifying subpattern count = 5
606     Options: anchored
607     No first char
608     aaaaabbbbbcccccdef
609     0: aaaaabbbbbcccccdef
610     1: aaaaabbbbbcccccdef
611     2: aaaaa
612     3: b
613     4: bbbbccccc
614     5: def
615    
616     /(?<=foo)[ab]/S
617     Identifying subpattern count = 0
618     No options
619     No first char
620     Starting character set: a b
621    
622     /(?<!foo)(alpha|omega)/S
623     Identifying subpattern count = 1
624     No options
625     No first char
626     Starting character set: a o
627    
628     /(?!alphabet)[ab]/S
629     Identifying subpattern count = 0
630     No options
631     No first char
632     Starting character set: a b
633    
634     /(?<=foo\n)^bar/m
635     Identifying subpattern count = 0
636     Options: multiline
637     First char at start or follows \n
638    
639     /(?>^abc)/m
640     Identifying subpattern count = 0
641     Options: multiline
642     First char at start or follows \n
643     abc
644     0: abc
645     def\nabc
646     0: abc
647     *** Failers
648     No match
649     defabc
650     No match
651    
652     /(?<=ab(c+)d)ef/
653     Failed: lookbehind assertion is not fixed length at offset 11
654    
655     /(?<=ab(?<=c+)d)ef/
656     Failed: lookbehind assertion is not fixed length at offset 12
657    
658     /(?<=ab(c|de)f)g/
659     Failed: lookbehind assertion is not fixed length at offset 13
660    
661     /The next two are in testinput2 because they have variable length branches/
662     Identifying subpattern count = 0
663     No options
664     First char = 'T'
665    
666     /(?<=bullock|donkey)-cart/
667     Identifying subpattern count = 0
668     No options
669     First char = '-'
670     the bullock-cart
671     0: -cart
672     a donkey-cart race
673     0: -cart
674     *** Failers
675     No match
676     cart
677     No match
678     horse-and-cart
679     No match
680    
681     /(?<=ab(?i)x|y|z)/
682     Identifying subpattern count = 0
683     No options
684     No first char
685    
686     /(?<=ab(?i)x(?-i)y|(?i)z|b)ZZ/
687     Identifying subpattern count = 0
688     No options
689     First char = 'Z'
690     abxyZZ
691     0: ZZ
692     abXyZZ
693     0: ZZ
694     ZZZ
695     0: ZZ
696     zZZ
697     0: ZZ
698     bZZ
699     0: ZZ
700     BZZ
701     0: ZZ
702     *** Failers
703     No match
704     ZZ
705     No match
706     abXYZZ
707     No match
708     zzz
709     No match
710     bzz
711     No match
712    
713     /(?<!(foo)a)bar/
714     Identifying subpattern count = 1
715     No options
716     First char = 'b'
717     bar
718     0: bar
719     foobbar
720     0: bar
721     *** Failers
722     No match
723     fooabar
724     No match
725    
726     /This one is here because Perl 5.005_02 doesn't fail it/
727     Identifying subpattern count = 0
728     No options
729     First char = 'T'
730    
731     /^(a)?(?(1)a|b)+$/
732     Identifying subpattern count = 1
733     Options: anchored
734     No first char
735     *** Failers
736     No match
737     a
738     No match
739    
740     /This one is here because I think Perl 5.005_02 gets the setting of $1 wrong/
741     Identifying subpattern count = 0
742     No options
743     First char = 'T'
744    
745     /^(a\1?){4}$/
746     Identifying subpattern count = 1
747     Options: anchored
748     No first char
749     aaaaaa
750     0: aaaaaa
751     1: aa
752    
753     /These are syntax tests from Perl 5.005/
754     Identifying subpattern count = 0
755     No options
756     First char = 'T'
757    
758     /a[b-a]/
759     Failed: range out of order in character class at offset 4
760    
761     /a[]b/
762     Failed: missing terminating ] for character class at offset 4
763    
764     /a[/
765     Failed: missing terminating ] for character class at offset 2
766    
767     /*a/
768     Failed: nothing to repeat at offset 0
769    
770     /(*)b/
771     Failed: nothing to repeat at offset 1
772    
773     /a\/
774     Failed: \ at end of pattern at offset 2
775    
776     /abc)/
777     Failed: unmatched parentheses at offset 3
778    
779     /(abc/
780     Failed: missing ) at offset 4
781    
782     /a**/
783     Failed: nothing to repeat at offset 2
784    
785     /)(/
786     Failed: unmatched parentheses at offset 0
787    
788     /\1/
789     Failed: back reference to non-existent subpattern at offset 2
790    
791     /\2/
792     Failed: back reference to non-existent subpattern at offset 2
793    
794     /(a)|\2/
795     Failed: back reference to non-existent subpattern at offset 6
796    
797     /a[b-a]/i
798     Failed: range out of order in character class at offset 4
799    
800     /a[]b/i
801     Failed: missing terminating ] for character class at offset 4
802    
803     /a[/i
804     Failed: missing terminating ] for character class at offset 2
805    
806     /*a/i
807     Failed: nothing to repeat at offset 0
808    
809     /(*)b/i
810     Failed: nothing to repeat at offset 1
811    
812     /a\/i
813     Failed: \ at end of pattern at offset 2
814    
815     /abc)/i
816     Failed: unmatched parentheses at offset 3
817    
818     /(abc/i
819     Failed: missing ) at offset 4
820    
821     /a**/i
822     Failed: nothing to repeat at offset 2
823    
824     /)(/i
825     Failed: unmatched parentheses at offset 0
826    
827     /:(?:/
828     Failed: missing ) at offset 4
829    
830     /(?<%)b/
831     Failed: unrecognized character after (?< at offset 0
832    
833     /a(?{)b/
834     Failed: unrecognized character after (? at offset 3
835    
836     /a(?{{})b/
837     Failed: unrecognized character after (? at offset 3
838    
839     /a(?{}})b/
840     Failed: unrecognized character after (? at offset 3
841    
842     /a(?{"{"})b/
843     Failed: unrecognized character after (? at offset 3
844    
845     /a(?{"{"}})b/
846     Failed: unrecognized character after (? at offset 3
847    
848     /(?(1?)a|b)/
849     Failed: malformed number after (?( at offset 4
850    
851     /(?(1)a|b|c)/
852     Failed: conditional group contains more than two branches at offset 10
853    
854     /[a[:xyz:/
855     Failed: missing terminating ] for character class at offset 8
856    
857     /(?<=x+)y/
858     Failed: lookbehind assertion is not fixed length at offset 6
859    
860     /a{37,17}/
861     Failed: numbers out of order in {} quantifier at offset 7
862    
863 nigel 3 / End of test input /
864     Identifying subpattern count = 0
865     No options
866     First char = ' '
867    

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12