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

Diff of /code/trunk/testdata/testoutput2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 49 by nigel, Sat Feb 24 21:39:33 2007 UTC revision 647 by ph10, Mon Aug 1 10:22:59 2011 UTC
# Line 1  Line 1 
1  PCRE version 3.3 01-Aug-2000  /-- This set of tests is not Perl-compatible. It checks on special features
2        of PCRE's API, error diagnostics, and the compiled code of some patterns.
3        It also checks the non-Perl syntax the PCRE supports (Python, .NET,
4        Oniguruma). Finally, there are some tests where PCRE and Perl differ,
5        either because PCRE can't be compatible, or there is a possible Perl
6        bug. --/
7    
8    /-- Originally, the Perl >= 5.10 things were in here too, but now I have
9        separated many (most?) of them out into test 11. However, there may still
10        be some that were overlooked. --/
11    
12  /(a)b|/  /(a)b|/I
13  Capturing subpattern count = 1  Capturing subpattern count = 1
14  No options  No options
15  No first char  No first char
16  No need char  No need char
17    
18  /abc/  /abc/I
19  Capturing subpattern count = 0  Capturing subpattern count = 0
20  No options  No options
21  First char = 'a'  First char = 'a'
# Line 24  No match Line 33  No match
33      ABC      ABC
34  No match  No match
35    
36  /^abc/  /^abc/I
37  Capturing subpattern count = 0  Capturing subpattern count = 0
38  Options: anchored  Options: anchored
39  No first char  No first char
40  Need char = 'c'  No need char
41      abc      abc
42   0: abc   0: abc
43      \Aabc      \Aabc
# Line 40  No match Line 49  No match
49      \Adefabc      \Adefabc
50  No match  No match
51    
52  /a+bc/  /a+bc/I
53  Capturing subpattern count = 0  Capturing subpattern count = 0
54  No options  No options
55  First char = 'a'  First char = 'a'
56  Need char = 'c'  Need char = 'c'
57    
58  /a*bc/  /a*bc/I
59  Capturing subpattern count = 0  Capturing subpattern count = 0
60  No options  No options
61  No first char  No first char
62  Need char = 'c'  Need char = 'c'
63    
64  /a{3}bc/  /a{3}bc/I
65  Capturing subpattern count = 0  Capturing subpattern count = 0
66  No options  No options
67  First char = 'a'  First char = 'a'
68  Need char = 'c'  Need char = 'c'
69    
70  /(abc|a+z)/  /(abc|a+z)/I
71  Capturing subpattern count = 1  Capturing subpattern count = 1
72  No options  No options
73  First char = 'a'  First char = 'a'
74  No need char  No need char
75    
76  /^abc$/  /^abc$/I
77  Capturing subpattern count = 0  Capturing subpattern count = 0
78  Options: anchored  Options: anchored
79  No first char  No first char
80  Need char = 'c'  No need char
81      abc      abc
82   0: abc   0: abc
83      *** Failers      *** Failers
# Line 76  No match Line 85  No match
85      def\nabc      def\nabc
86  No match  No match
87    
88  /ab\gdef/X  /ab\idef/X
89  Failed: unrecognized character follows \ at offset 3  Failed: unrecognized character follows \ at offset 3
90    
91  /(?X)ab\gdef/X  /(?X)ab\idef/X
92  Failed: unrecognized character follows \ at offset 7  Failed: unrecognized character follows \ at offset 7
93    
94  /x{5,4}/  /x{5,4}/
# Line 91  Failed: number too big in {} quantifier Line 100  Failed: number too big in {} quantifier
100  /[abcd/  /[abcd/
101  Failed: missing terminating ] for character class at offset 5  Failed: missing terminating ] for character class at offset 5
102    
103  /[\B]/  /(?X)[\B]/
104  Failed: invalid escape sequence in character class at offset 2  Failed: invalid escape sequence in character class at offset 6
105    
106    /(?X)[\R]/
107    Failed: invalid escape sequence in character class at offset 6
108    
109    /(?X)[\X]/
110    Failed: invalid escape sequence in character class at offset 6
111    
112    /[\B]/BZ
113    ------------------------------------------------------------------
114            Bra
115            B
116            Ket
117            End
118    ------------------------------------------------------------------
119    
120    /[\R]/BZ
121    ------------------------------------------------------------------
122            Bra
123            R
124            Ket
125            End
126    ------------------------------------------------------------------
127    
128    /[\X]/BZ
129    ------------------------------------------------------------------
130            Bra
131            X
132            Ket
133            End
134    ------------------------------------------------------------------
135    
136  /[z-a]/  /[z-a]/
137  Failed: range out of order in character class at offset 3  Failed: range out of order in character class at offset 3
# Line 107  Failed: missing ) at offset 4 Line 146  Failed: missing ) at offset 4
146  Failed: missing ) after comment at offset 7  Failed: missing ) after comment at offset 7
147    
148  /(?z)abc/  /(?z)abc/
149  Failed: unrecognized character after (? at offset 2  Failed: unrecognized character after (? or (?- at offset 2
150    
151  /.*b/  /.*b/I
152  Capturing subpattern count = 0  Capturing subpattern count = 0
153  No options  No options
154  First char at start or follows \n  First char at start or follows newline
155  Need char = 'b'  Need char = 'b'
156    
157  /.*?b/  /.*?b/I
158  Capturing subpattern count = 0  Capturing subpattern count = 0
159  No options  No options
160  First char at start or follows \n  First char at start or follows newline
161  Need char = 'b'  Need char = 'b'
162    
163  /cat|dog|elephant/  /cat|dog|elephant/I
164  Capturing subpattern count = 0  Capturing subpattern count = 0
165  No options  No options
166  No first char  No first char
# Line 131  No need char Line 170  No need char
170      this sentences rambles on and on for a while and then reaches elephant      this sentences rambles on and on for a while and then reaches elephant
171   0: elephant   0: elephant
172    
173  /cat|dog|elephant/S  /cat|dog|elephant/IS
174  Capturing subpattern count = 0  Capturing subpattern count = 0
175  No options  No options
176  No first char  No first char
177  No need char  No need char
178  Starting character set: c d e  Subject length lower bound = 3
179    Starting byte set: c d e
180      this sentence eventually mentions a cat      this sentence eventually mentions a cat
181   0: cat   0: cat
182      this sentences rambles on and on for a while and then reaches elephant      this sentences rambles on and on for a while and then reaches elephant
183   0: elephant   0: elephant
184    
185  /cat|dog|elephant/iS  /cat|dog|elephant/IiS
186  Capturing subpattern count = 0  Capturing subpattern count = 0
187  Options: caseless  Options: caseless
188  No first char  No first char
189  No need char  No need char
190  Starting character set: C D E c d e  Subject length lower bound = 3
191    Starting byte set: C D E c d e
192      this sentence eventually mentions a CAT cat      this sentence eventually mentions a CAT cat
193   0: CAT   0: CAT
194      this sentences rambles on and on for a while to elephant ElePhant      this sentences rambles on and on for a while to elephant ElePhant
195   0: elephant   0: elephant
196    
197  /a|[bcd]/S  /a|[bcd]/IS
198  Capturing subpattern count = 0  Capturing subpattern count = 0
199  No options  No options
200  No first char  No first char
201  No need char  No need char
202  Starting character set: a b c d  Subject length lower bound = 1
203    Starting byte set: a b c d
204    
205  /(a|[^\dZ])/S  /(a|[^\dZ])/IS
206  Capturing subpattern count = 1  Capturing subpattern count = 1
207  No options  No options
208  No first char  No first char
209  No need char  No need char
210  Starting character set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a  Subject length lower bound = 1
211    Starting byte set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a
212    \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19    \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19
213    \x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / : ; < = >    \x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / : ; < = >
214    ? @ 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    ? @ 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
# Line 180  Starting character set: \x00 \x01 \x02 \ Line 223  Starting character set: \x00 \x01 \x02 \
223    \xed \xee \xef \xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7 \xf8 \xf9 \xfa \xfb    \xed \xee \xef \xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7 \xf8 \xf9 \xfa \xfb
224    \xfc \xfd \xfe \xff    \xfc \xfd \xfe \xff
225    
226  /(a|b)*[\s]/S  /(a|b)*[\s]/IS
227  Capturing subpattern count = 1  Capturing subpattern count = 1
228  No options  No options
229  No first char  No first char
230  No need char  No need char
231  Starting character set: \x09 \x0a \x0b \x0c \x0d \x20 a b  Subject length lower bound = 1
232    Starting byte set: \x09 \x0a \x0c \x0d \x20 a b
233    
234  /(ab\2)/  /(ab\2)/
235  Failed: back reference to non-existent subpattern at offset 6  Failed: reference to non-existent subpattern at offset 6
236    
237  /{4,5}abc/  /{4,5}abc/
238  Failed: nothing to repeat at offset 4  Failed: nothing to repeat at offset 4
239    
240  /(a)(b)(c)\2/  /(a)(b)(c)\2/I
241  Capturing subpattern count = 3  Capturing subpattern count = 3
242  Max back reference = 2  Max back reference = 2
243  No options  No options
# Line 218  Matched, but too many substrings Line 262  Matched, but too many substrings
262   0: abcb   0: abcb
263   1: a   1: a
264   2: b   2: b
265      \O12abcb      \O12abcb
266   0: abcb   0: abcb
267   1: a   1: a
268   2: b   2: b
269   3: c   3: c
270    
271  /(a)bc|(a)(b)\2/  /(a)bc|(a)(b)\2/I
272  Capturing subpattern count = 3  Capturing subpattern count = 3
273  Max back reference = 2  Max back reference = 2
274  No options  No options
# Line 266  Matched, but too many substrings Line 310  Matched, but too many substrings
310   2: a   2: a
311   3: b   3: b
312    
313  /abc$/E  /abc$/IE
314  Capturing subpattern count = 0  Capturing subpattern count = 0
315  Options: dollar_endonly  Options: dollar_endonly
316  First char = 'a'  First char = 'a'
# Line 281  No match Line 325  No match
325  No match  No match
326    
327  /(a)(b)(c)(d)(e)\6/  /(a)(b)(c)(d)(e)\6/
328  Failed: back reference to non-existent subpattern at offset 17  Failed: reference to non-existent subpattern at offset 17
329    
330  /the quick brown fox/  /the quick brown fox/I
331  Capturing subpattern count = 0  Capturing subpattern count = 0
332  No options  No options
333  First char = 't'  First char = 't'
# Line 293  Need char = 'x' Line 337  Need char = 'x'
337      this is a line with the quick brown fox      this is a line with the quick brown fox
338   0: the quick brown fox   0: the quick brown fox
339    
340  /the quick brown fox/A  /the quick brown fox/IA
341  Capturing subpattern count = 0  Capturing subpattern count = 0
342  Options: anchored  Options: anchored
343  No first char  No first char
344  Need char = 'x'  No need char
345      the quick brown fox      the quick brown fox
346   0: the quick brown fox   0: the quick brown fox
347      *** Failers      *** Failers
# Line 306  No match Line 350  No match
350  No match  No match
351    
352  /ab(?z)cd/  /ab(?z)cd/
353  Failed: unrecognized character after (? at offset 4  Failed: unrecognized character after (? or (?- at offset 4
354    
355  /^abc|def/  /^abc|def/I
356  Capturing subpattern count = 0  Capturing subpattern count = 0
357  No options  No options
358  No first char  No first char
# Line 318  No need char Line 362  No need char
362      abcdef\B      abcdef\B
363   0: def   0: def
364    
365  /.*((abc)$|(def))/  /.*((abc)$|(def))/I
366  Capturing subpattern count = 3  Capturing subpattern count = 3
367  No options  No options
368  First char at start or follows \n  First char at start or follows newline
369  No need char  No need char
370      defabc      defabc
371   0: defabc   0: defabc
# Line 338  No need char Line 382  No need char
382   0: abc   0: abc
383      *** Failers      *** Failers
384  No match: POSIX code 17: match failed  No match: POSIX code 17: match failed
385    
386  /^abc|def/P  /^abc|def/P
387      abcdef      abcdef
388   0: abc   0: abc
# Line 354  No match: POSIX code 17: match failed Line 398  No match: POSIX code 17: match failed
398   0: def   0: def
399   1: def   1: def
400   3: def   3: def
401    
402  /the quick brown fox/P  /the quick brown fox/P
403      the quick brown fox      the quick brown fox
404   0: the quick brown fox   0: the quick brown fox
405      *** Failers      *** Failers
406  No match: POSIX code 17: match failed  No match: POSIX code 17: match failed
407      The Quick Brown Fox      The Quick Brown Fox
408  No match: POSIX code 17: match failed  No match: POSIX code 17: match failed
409    
410  /the quick brown fox/Pi  /the quick brown fox/Pi
411      the quick brown fox      the quick brown fox
412   0: the quick brown fox   0: the quick brown fox
413      The Quick Brown Fox      The Quick Brown Fox
414   0: The Quick Brown Fox   0: The Quick Brown Fox
415    
416  /abc.def/P  /abc.def/P
# Line 374  No match: POSIX code 17: match failed Line 418  No match: POSIX code 17: match failed
418  No match: POSIX code 17: match failed  No match: POSIX code 17: match failed
419      abc\ndef      abc\ndef
420  No match: POSIX code 17: match failed  No match: POSIX code 17: match failed
421    
422  /abc$/P  /abc$/P
423      abc      abc
424   0: abc   0: abc
425      abc\n      abc\n
426   0: abc   0: abc
427    
428  /(abc)\2/P  /(abc)\2/P
# Line 394  Failed: unmatched parentheses at offset Line 438  Failed: unmatched parentheses at offset
438  /a[]b/  /a[]b/
439  Failed: missing terminating ] for character class at offset 4  Failed: missing terminating ] for character class at offset 4
440    
441  /[^aeiou ]{3,}/  /[^aeiou ]{3,}/I
442  Capturing subpattern count = 0  Capturing subpattern count = 0
443  No options  No options
444  No first char  No first char
445  No need char  No need char
446      co-processors, and for      co-processors, and for
447   0: -pr   0: -pr
448    
449  /<.*>/  /<.*>/I
450  Capturing subpattern count = 0  Capturing subpattern count = 0
451  No options  No options
452  First char = '<'  First char = '<'
# Line 410  Need char = '>' Line 454  Need char = '>'
454      abc<def>ghi<klm>nop      abc<def>ghi<klm>nop
455   0: <def>ghi<klm>   0: <def>ghi<klm>
456    
457  /<.*?>/  /<.*?>/I
458  Capturing subpattern count = 0  Capturing subpattern count = 0
459  No options  No options
460  First char = '<'  First char = '<'
# Line 418  Need char = '>' Line 462  Need char = '>'
462      abc<def>ghi<klm>nop      abc<def>ghi<klm>nop
463   0: <def>   0: <def>
464    
465  /<.*>/U  /<.*>/IU
466  Capturing subpattern count = 0  Capturing subpattern count = 0
467  Options: ungreedy  Options: ungreedy
468  First char = '<'  First char = '<'
469  Need char = '>'  Need char = '>'
470      abc<def>ghi<klm>nop      abc<def>ghi<klm>nop
471   0: <def>   0: <def>
472    
473  /<.*>(?U)/  /(?U)<.*>/I
474  Capturing subpattern count = 0  Capturing subpattern count = 0
475  Options: ungreedy  Options: ungreedy
476  First char = '<'  First char = '<'
# Line 434  Need char = '>' Line 478  Need char = '>'
478      abc<def>ghi<klm>nop      abc<def>ghi<klm>nop
479   0: <def>   0: <def>
480    
481  /<.*?>/U  /<.*?>/IU
482  Capturing subpattern count = 0  Capturing subpattern count = 0
483  Options: ungreedy  Options: ungreedy
484  First char = '<'  First char = '<'
485  Need char = '>'  Need char = '>'
486      abc<def>ghi<klm>nop      abc<def>ghi<klm>nop
487   0: <def>ghi<klm>   0: <def>ghi<klm>
488    
489  /={3,}/U  /={3,}/IU
490  Capturing subpattern count = 0  Capturing subpattern count = 0
491  Options: ungreedy  Options: ungreedy
492  First char = '='  First char = '='
493  Need char = '='  Need char = '='
494      abc========def      abc========def
495   0: ===   0: ===
496    
497  /(?U)={3,}?/  /(?U)={3,}?/I
498  Capturing subpattern count = 0  Capturing subpattern count = 0
499  Options: ungreedy  Options: ungreedy
500  First char = '='  First char = '='
501  Need char = '='  Need char = '='
502      abc========def      abc========def
503   0: ========   0: ========
504    
505  /(?<!bar|cattle)foo/  /(?<!bar|cattle)foo/I
506  Capturing subpattern count = 0  Capturing subpattern count = 0
507  No options  No options
508  First char = 'f'  First char = 'f'
509  Need char = 'o'  Need char = 'o'
510      foo      foo
511   0: foo   0: foo
512      catfoo      catfoo
513   0: foo   0: foo
514      *** Failers      *** Failers
515  No match  No match
516      the barfoo      the barfoo
517  No match  No match
518      and cattlefoo      and cattlefoo
519  No match  No match
520    
521  /(?<=a+)b/  /(?<=a+)b/
# Line 483  Failed: lookbehind assertion is not fixe Line 527  Failed: lookbehind assertion is not fixe
527  /(?<!(foo)a\1)bar/  /(?<!(foo)a\1)bar/
528  Failed: lookbehind assertion is not fixed length at offset 12  Failed: lookbehind assertion is not fixed length at offset 12
529    
530  /(?i)abc/  /(?i)abc/I
531  Capturing subpattern count = 0  Capturing subpattern count = 0
532  Options: caseless  Options: caseless
533  First char = 'a'  First char = 'a' (caseless)
534  Need char = 'c'  Need char = 'c' (caseless)
535    
536  /(a|(?m)a)/  /(a|(?m)a)/I
537  Capturing subpattern count = 1  Capturing subpattern count = 1
538  No options  No options
539  First char = 'a'  First char = 'a'
540  No need char  No need char
541    
542  /(?i)^1234/  /(?i)^1234/I
543  Capturing subpattern count = 0  Capturing subpattern count = 0
544  Options: anchored caseless  Options: anchored caseless
545  No first char  No first char
546  Need char = '4'  No need char
547    
548  /(^b|(?i)^d)/  /(^b|(?i)^d)/I
549  Capturing subpattern count = 1  Capturing subpattern count = 1
550  Options: anchored  Options: anchored
 Case state changes  
551  No first char  No first char
552  No need char  No need char
553    
554  /(?s).*/  /(?s).*/I
555  Capturing subpattern count = 0  Capturing subpattern count = 0
556  Options: anchored dotall  Options: anchored dotall
557  No first char  No first char
558  No need char  No need char
559    
560  /[abcd]/S  /[abcd]/IS
561  Capturing subpattern count = 0  Capturing subpattern count = 0
562  No options  No options
563  No first char  No first char
564  No need char  No need char
565  Starting character set: a b c d  Subject length lower bound = 1
566    Starting byte set: a b c d
567    
568  /(?i)[abcd]/S  /(?i)[abcd]/IS
569  Capturing subpattern count = 0  Capturing subpattern count = 0
570  Options: caseless  Options: caseless
571  No first char  No first char
572  No need char  No need char
573  Starting character set: A B C D a b c d  Subject length lower bound = 1
574    Starting byte set: A B C D a b c d
575    
576  /(?m)[xy]|(b|c)/S  /(?m)[xy]|(b|c)/IS
577  Capturing subpattern count = 1  Capturing subpattern count = 1
578  Options: multiline  Options: multiline
579  No first char  No first char
580  No need char  No need char
581  Starting character set: b c x y  Subject length lower bound = 1
582    Starting byte set: b c x y
583    
584  /(^a|^b)/m  /(^a|^b)/Im
585  Capturing subpattern count = 1  Capturing subpattern count = 1
586  Options: multiline  Options: multiline
587  First char at start or follows \n  First char at start or follows newline
588  No need char  No need char
589    
590  /(?i)(^a|^b)/m  /(?i)(^a|^b)/Im
591  Capturing subpattern count = 1  Capturing subpattern count = 1
592  Options: caseless multiline  Options: caseless multiline
593  First char at start or follows \n  First char at start or follows newline
594  No need char  No need char
595    
596  /(a)(?(1)a|b|c)/  /(a)(?(1)a|b|c)/
# Line 554  Failed: conditional group contains more Line 600  Failed: conditional group contains more
600  Failed: conditional group contains more than two branches at offset 12  Failed: conditional group contains more than two branches at offset 12
601    
602  /(?(1a)/  /(?(1a)/
603  Failed: malformed number after (?( at offset 4  Failed: missing ) at offset 6
604    
605    /(?(1a))/
606    Failed: reference to non-existent subpattern at offset 6
607    
608  /(?(?i))/  /(?(?i))/
609  Failed: assertion expected after (?( at offset 3  Failed: assertion expected after (?( at offset 3
610    
611  /(?(abc))/  /(?(abc))/
612  Failed: assertion expected after (?( at offset 3  Failed: reference to non-existent subpattern at offset 7
613    
614  /(?(?<ab))/  /(?(?<ab))/
615  Failed: unrecognized character after (?< at offset 2  Failed: syntax error in subpattern name (missing terminator) at offset 7
616    
617  /((?s)blah)\s+\1/  /((?s)blah)\s+\1/I
618  Capturing subpattern count = 1  Capturing subpattern count = 1
619  Max back reference = 1  Max back reference = 1
620  No options  No options
621  First char = 'b'  First char = 'b'
622  Need char = 'h'  Need char = 'h'
623    
624  /((?i)blah)\s+\1/  /((?i)blah)\s+\1/I
625  Capturing subpattern count = 1  Capturing subpattern count = 1
626  Max back reference = 1  Max back reference = 1
627  No options  No options
628  Case state changes  First char = 'b' (caseless)
629  No first char  Need char = 'h' (caseless)
 Need char = 'h'  
630    
631  /((?i)b)/DS  /((?i)b)/IDZS
632  ------------------------------------------------------------------  ------------------------------------------------------------------
633    0  16 Bra 0          Bra
634    3   8 Bra 1          CBra 1
635    6  01 Opt       /i b
636    8   1 b          Ket
637   11   8 Ket          Ket
638   14  00 Opt          End
  16  16 Ket  
  19     End  
639  ------------------------------------------------------------------  ------------------------------------------------------------------
640  Capturing subpattern count = 1  Capturing subpattern count = 1
641  No options  No options
642  Case state changes  First char = 'b' (caseless)
643  No first char  No need char
644  Need char = 'b'  Subject length lower bound = 1
645  Starting character set: B b  No set of starting bytes
646    
647  /(a*b|(?i:c*(?-i)d))/S  /(a*b|(?i:c*(?-i)d))/IS
648  Capturing subpattern count = 1  Capturing subpattern count = 1
649  No options  No options
 Case state changes  
650  No first char  No first char
651  No need char  No need char
652  Starting character set: C a b c d  Subject length lower bound = 1
653    Starting byte set: C a b c d
654    
655  /a$/  /a$/I
656  Capturing subpattern count = 0  Capturing subpattern count = 0
657  No options  No options
658  First char = 'a'  First char = 'a'
# Line 615  No need char Line 661  No need char
661   0: a   0: a
662      a\n      a\n
663   0: a   0: a
664      *** Failers      *** Failers
665  No match  No match
666      \Za      \Za
667  No match  No match
668      \Za\n      \Za\n
669  No match  No match
670    
671  /a$/m  /a$/Im
672  Capturing subpattern count = 0  Capturing subpattern count = 0
673  Options: multiline  Options: multiline
674  First char = 'a'  First char = 'a'
# Line 631  No need char Line 677  No need char
677   0: a   0: a
678      a\n      a\n
679   0: a   0: a
680      \Za\n      \Za\n
681   0: a   0: a
682      *** Failers      *** Failers
683  No match  No match
684      \Za      \Za
685  No match  No match
686    
687  /\Aabc/m  /\Aabc/Im
688  Capturing subpattern count = 0  Capturing subpattern count = 0
689  Options: anchored multiline  Options: anchored multiline
690  No first char  No first char
691  Need char = 'c'  No need char
692    
693  /^abc/m  /^abc/Im
694  Capturing subpattern count = 0  Capturing subpattern count = 0
695  Options: multiline  Options: multiline
696  First char at start or follows \n  First char at start or follows newline
697  Need char = 'c'  Need char = 'c'
698    
699  /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/  /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/I
700  Capturing subpattern count = 5  Capturing subpattern count = 5
701  Options: anchored  Options: anchored
702  No first char  No first char
703  Need char = 'a'  No need char
704    aaaaabbbbbcccccdef    aaaaabbbbbcccccdef
705   0: aaaaabbbbbcccccdef   0: aaaaabbbbbcccccdef
706   1: aaaaabbbbbcccccdef   1: aaaaabbbbbcccccdef
# Line 663  Need char = 'a' Line 709  Need char = 'a'
709   4: bbbbccccc   4: bbbbccccc
710   5: def   5: def
711    
712  /(?<=foo)[ab]/S  /(?<=foo)[ab]/IS
713  Capturing subpattern count = 0  Capturing subpattern count = 0
714  No options  No options
715  No first char  No first char
716  No need char  No need char
717  Starting character set: a b  Subject length lower bound = 1
718    Starting byte set: a b
719    
720  /(?<!foo)(alpha|omega)/S  /(?<!foo)(alpha|omega)/IS
721  Capturing subpattern count = 1  Capturing subpattern count = 1
722  No options  No options
723  No first char  No first char
724  Need char = 'a'  Need char = 'a'
725  Starting character set: a o  Subject length lower bound = 5
726    Starting byte set: a o
727    
728  /(?!alphabet)[ab]/S  /(?!alphabet)[ab]/IS
729  Capturing subpattern count = 0  Capturing subpattern count = 0
730  No options  No options
731  No first char  No first char
732  No need char  No need char
733  Starting character set: a b  Subject length lower bound = 1
734    Starting byte set: a b
735    
736    /(?<=foo\n)^bar/Im
737    Capturing subpattern count = 0
738    Contains explicit CR or LF match
739    Options: multiline
740    No first char
741    Need char = 'r'
742        foo\nbarbar
743     0: bar
744        ***Failers
745    No match
746        rhubarb
747    No match
748        barbell
749    No match
750        abc\nbarton
751    No match
752    
753  /(?<=foo\n)^bar/m  /^(?<=foo\n)bar/Im
754  Capturing subpattern count = 0  Capturing subpattern count = 0
755    Contains explicit CR or LF match
756  Options: multiline  Options: multiline
757  First char at start or follows \n  First char at start or follows newline
758  Need char = 'r'  Need char = 'r'
759        foo\nbarbar
760     0: bar
761        ***Failers
762    No match
763        rhubarb
764    No match
765        barbell
766    No match
767        abc\nbarton
768    No match
769    
770  /(?>^abc)/m  /(?>^abc)/Im
771  Capturing subpattern count = 0  Capturing subpattern count = 0
772  Options: multiline  Options: multiline
773  First char at start or follows \n  First char at start or follows newline
774  Need char = 'c'  Need char = 'c'
775      abc      abc
776   0: abc   0: abc
# Line 701  Need char = 'c' Line 778  Need char = 'c'
778   0: abc   0: abc
779      *** Failers      *** Failers
780  No match  No match
781      defabc      defabc
782  No match  No match
783    
784  /(?<=ab(c+)d)ef/  /(?<=ab(c+)d)ef/
# Line 714  Failed: lookbehind assertion is not fixe Line 791  Failed: lookbehind assertion is not fixe
791  Failed: lookbehind assertion is not fixed length at offset 13  Failed: lookbehind assertion is not fixed length at offset 13
792    
793  /The next three are in testinput2 because they have variable length branches/  /The next three are in testinput2 because they have variable length branches/
 Capturing subpattern count = 0  
 No options  
 First char = 'T'  
 Need char = 's'  
794    
795  /(?<=bullock|donkey)-cart/  /(?<=bullock|donkey)-cart/I
796  Capturing subpattern count = 0  Capturing subpattern count = 0
797  No options  No options
798  First char = '-'  First char = '-'
# Line 732  Need char = 't' Line 805  Need char = 't'
805  No match  No match
806      cart      cart
807  No match  No match
808      horse-and-cart      horse-and-cart
809  No match  No match
810    
811  /(?<=ab(?i)x|y|z)/  /(?<=ab(?i)x|y|z)/I
812  Capturing subpattern count = 0  Capturing subpattern count = 0
813  No options  No options
 Case state changes  
814  No first char  No first char
815  No need char  No need char
816    
817  /(?>.*)(?<=(abcd)|(xyz))/  /(?>.*)(?<=(abcd)|(xyz))/I
818  Capturing subpattern count = 2  Capturing subpattern count = 2
819  No options  No options
820  First char at start or follows \n  First char at start or follows newline
821  No need char  No need char
822      alphabetabcd      alphabetabcd
823   0: alphabetabcd   0: alphabetabcd
# Line 755  No need char Line 827  No need char
827   1: <unset>   1: <unset>
828   2: xyz   2: xyz
829    
830  /(?<=ab(?i)x(?-i)y|(?i)z|b)ZZ/  /(?<=ab(?i)x(?-i)y|(?i)z|b)ZZ/I
831  Capturing subpattern count = 0  Capturing subpattern count = 0
832  No options  No options
 Case state changes  
833  First char = 'Z'  First char = 'Z'
834  Need char = 'Z'  Need char = 'Z'
835      abxyZZ      abxyZZ
# Line 771  Need char = 'Z' Line 842  Need char = 'Z'
842   0: ZZ   0: ZZ
843      bZZ      bZZ
844   0: ZZ   0: ZZ
845      BZZ      BZZ
846   0: ZZ   0: ZZ
847      *** Failers      *** Failers
848  No match  No match
849      ZZ      ZZ
850  No match  No match
851      abXYZZ      abXYZZ
852  No match  No match
853      zzz      zzz
854  No match  No match
855      bzz      bzz
856  No match  No match
857    
858  /(?<!(foo)a)bar/  /(?<!(foo)a)bar/I
859  Capturing subpattern count = 1  Capturing subpattern count = 1
860  No options  No options
861  First char = 'b'  First char = 'b'
862  Need char = 'r'  Need char = 'r'
863      bar      bar
864   0: bar   0: bar
865      foobbar      foobbar
866   0: bar   0: bar
867      *** Failers      *** Failers
868  No match  No match
869      fooabar      fooabar
870  No match  No match
871    
872  /This one is here because Perl 5.005_02 doesn't fail it/  /This one is here because Perl 5.005_02 doesn't fail it/I
873  Capturing subpattern count = 0  Capturing subpattern count = 0
874  No options  No options
875  First char = 'T'  First char = 'T'
876  Need char = 't'  Need char = 't'
877    
878  /^(a)?(?(1)a|b)+$/  /^(a)?(?(1)a|b)+$/I
879  Capturing subpattern count = 1  Capturing subpattern count = 1
880  Options: anchored  Options: anchored
881  No first char  No first char
882  No need char  No need char
883      *** Failers      *** Failers
884  No match  No match
885      a      a
886  No match  No match
887    
888  /This one is here because I think Perl 5.005_02 gets the setting of $1 wrong/  /This one is here because Perl behaves differently; see also the following/I
889  Capturing subpattern count = 0  Capturing subpattern count = 0
890  No options  No options
891  First char = 'T'  First char = 'T'
892  Need char = 'g'  Need char = 'g'
893    
894  /^(a\1?){4}$/  /^(a\1?){4}$/I
895  Capturing subpattern count = 1  Capturing subpattern count = 1
896  Max back reference = 1  Max back reference = 1
897  Options: anchored  Options: anchored
898  No first char  No first char
899  Need char = 'a'  No need char
900        aaaa
901    No match
902      aaaaaa      aaaaaa
903   0: aaaaaa  No match
  1: aa  
904    
905  /These are syntax tests from Perl 5.005/  /Perl does not fail these two for the final subjects. Neither did PCRE until/
906    /release 8.01. The problem is in backtracking into a subpattern that contains/
907    No match
908    /a recursive reference to itself. PCRE has now made these into atomic patterns./
909    No match
910    
911    /^(xa|=?\1a){2}$/
912        xa=xaa
913     0: xa=xaa
914     1: =xaa
915        ** Failers
916    No match
917        xa=xaaa
918    No match
919    
920    /^(xa|=?\1a)+$/
921        xa=xaa
922     0: xa=xaa
923     1: =xaa
924        ** Failers
925    No match
926        xa=xaaa
927    No match
928    
929    /These are syntax tests from Perl 5.005/I
930  Capturing subpattern count = 0  Capturing subpattern count = 0
931  No options  No options
932  First char = 'T'  First char = 'T'
# Line 864  Failed: nothing to repeat at offset 2 Line 960  Failed: nothing to repeat at offset 2
960  Failed: unmatched parentheses at offset 0  Failed: unmatched parentheses at offset 0
961    
962  /\1/  /\1/
963  Failed: back reference to non-existent subpattern at offset 2  Failed: reference to non-existent subpattern at offset 2
964    
965  /\2/  /\2/
966  Failed: back reference to non-existent subpattern at offset 2  Failed: reference to non-existent subpattern at offset 2
967    
968  /(a)|\2/  /(a)|\2/
969  Failed: back reference to non-existent subpattern at offset 6  Failed: reference to non-existent subpattern at offset 6
970    
971  /a[b-a]/i  /a[b-a]/Ii
972  Failed: range out of order in character class at offset 4  Failed: range out of order in character class at offset 4
973    
974  /a[]b/i  /a[]b/Ii
975  Failed: missing terminating ] for character class at offset 4  Failed: missing terminating ] for character class at offset 4
976    
977  /a[/i  /a[/Ii
978  Failed: missing terminating ] for character class at offset 2  Failed: missing terminating ] for character class at offset 2
979    
980  /*a/i  /*a/Ii
981  Failed: nothing to repeat at offset 0  Failed: nothing to repeat at offset 0
982    
983  /(*)b/i  /(*)b/Ii
984  Failed: nothing to repeat at offset 1  Failed: nothing to repeat at offset 1
985    
986  /abc)/i  /abc)/Ii
987  Failed: unmatched parentheses at offset 3  Failed: unmatched parentheses at offset 3
988    
989  /(abc/i  /(abc/Ii
990  Failed: missing ) at offset 4  Failed: missing ) at offset 4
991    
992  /a**/i  /a**/Ii
993  Failed: nothing to repeat at offset 2  Failed: nothing to repeat at offset 2
994    
995  /)(/i  /)(/Ii
996  Failed: unmatched parentheses at offset 0  Failed: unmatched parentheses at offset 0
997    
998  /:(?:/  /:(?:/
999  Failed: missing ) at offset 4  Failed: missing ) at offset 4
1000    
1001  /(?<%)b/  /(?<%)b/
1002  Failed: unrecognized character after (?< at offset 0  Failed: unrecognized character after (?< at offset 3
1003    
1004  /a(?{)b/  /a(?{)b/
1005  Failed: unrecognized character after (? at offset 3  Failed: unrecognized character after (? or (?- at offset 3
1006    
1007  /a(?{{})b/  /a(?{{})b/
1008  Failed: unrecognized character after (? at offset 3  Failed: unrecognized character after (? or (?- at offset 3
1009    
1010  /a(?{}})b/  /a(?{}})b/
1011  Failed: unrecognized character after (? at offset 3  Failed: unrecognized character after (? or (?- at offset 3
1012    
1013  /a(?{"{"})b/  /a(?{"{"})b/
1014  Failed: unrecognized character after (? at offset 3  Failed: unrecognized character after (? or (?- at offset 3
1015    
1016  /a(?{"{"}})b/  /a(?{"{"}})b/
1017  Failed: unrecognized character after (? at offset 3  Failed: unrecognized character after (? or (?- at offset 3
1018    
1019  /(?(1?)a|b)/  /(?(1?)a|b)/
1020  Failed: malformed number after (?( at offset 4  Failed: malformed number or name after (?( at offset 4
   
 /(?(1)a|b|c)/  
 Failed: conditional group contains more than two branches at offset 10  
1021    
1022  /[a[:xyz:/  /[a[:xyz:/
1023  Failed: missing terminating ] for character class at offset 8  Failed: missing terminating ] for character class at offset 8
# Line 944  Failed: POSIX code 9: bad escape sequenc Line 1037  Failed: POSIX code 9: bad escape sequenc
1037  /abc/\i  /abc/\i
1038  Failed: \ at end of pattern at offset 4  Failed: \ at end of pattern at offset 4
1039    
1040  /(a)bc(d)/  /(a)bc(d)/I
1041  Capturing subpattern count = 2  Capturing subpattern count = 2
1042  No options  No options
1043  First char = 'a'  First char = 'a'
# Line 963  Need char = 'd' Line 1056  Need char = 'd'
1056   1: a   1: a
1057   2: d   2: d
1058  copy substring 5 failed -7  copy substring 5 failed -7
1059    
1060  /(.{20})/  /(.{20})/I
1061  Capturing subpattern count = 1  Capturing subpattern count = 1
1062  No options  No options
1063  No first char  No first char
# Line 975  No need char Line 1068  No need char
1068      abcdefghijklmnopqrstuvwxyz\C1      abcdefghijklmnopqrstuvwxyz\C1
1069   0: abcdefghijklmnopqrst   0: abcdefghijklmnopqrst
1070   1: abcdefghijklmnopqrst   1: abcdefghijklmnopqrst
1071  copy substring 1 failed -6   1C abcdefghijklmnopqrst (20)
1072      abcdefghijklmnopqrstuvwxyz\G1      abcdefghijklmnopqrstuvwxyz\G1
1073   0: abcdefghijklmnopqrst   0: abcdefghijklmnopqrst
1074   1: abcdefghijklmnopqrst   1: abcdefghijklmnopqrst
1075   1G abcdefghijklmnopqrst (20)   1G abcdefghijklmnopqrst (20)
1076    
1077  /(.{15})/  /(.{15})/I
1078  Capturing subpattern count = 1  Capturing subpattern count = 1
1079  No options  No options
1080  No first char  No first char
# Line 995  No need char Line 1088  No need char
1088   1C abcdefghijklmno (15)   1C abcdefghijklmno (15)
1089   1G abcdefghijklmno (15)   1G abcdefghijklmno (15)
1090    
1091  /(.{16})/  /(.{16})/I
1092  Capturing subpattern count = 1  Capturing subpattern count = 1
1093  No options  No options
1094  No first char  No first char
# Line 1006  No need char Line 1099  No need char
1099      abcdefghijklmnopqrstuvwxyz\C1\G1\L      abcdefghijklmnopqrstuvwxyz\C1\G1\L
1100   0: abcdefghijklmnop   0: abcdefghijklmnop
1101   1: abcdefghijklmnop   1: abcdefghijklmnop
1102  copy substring 1 failed -6   1C abcdefghijklmnop (16)
1103   1G abcdefghijklmnop (16)   1G abcdefghijklmnop (16)
1104   0L abcdefghijklmnop   0L abcdefghijklmnop
1105   1L abcdefghijklmnop   1L abcdefghijklmnop
1106    
1107  /^(a|(bc))de(f)/  /^(a|(bc))de(f)/I
1108  Capturing subpattern count = 3  Capturing subpattern count = 3
1109  Options: anchored  Options: anchored
1110  No first char  No first char
1111  Need char = 'f'  No need char
1112      adef\G1\G2\G3\G4\L      adef\G1\G2\G3\G4\L
1113   0: adef   0: adef
1114   1: a   1: a
1115   2: <unset>   2: <unset>
# Line 1029  get substring 4 failed -7 Line 1122  get substring 4 failed -7
1122   1L a   1L a
1123   2L   2L
1124   3L f   3L f
1125      bcdef\G1\G2\G3\G4\L      bcdef\G1\G2\G3\G4\L
1126   0: bcdef   0: bcdef
1127   1: bc   1: bc
1128   2: bc   2: bc
# Line 1042  get substring 4 failed -7 Line 1135  get substring 4 failed -7
1135   1L bc   1L bc
1136   2L bc   2L bc
1137   3L f   3L f
1138      adefghijk\C0      adefghijk\C0
1139   0: adef   0: adef
1140   1: a   1: a
1141   2: <unset>   2: <unset>
1142   3: f   3: f
1143   0C adef (4)   0C adef (4)
1144    
1145  /^abc\00def/  /^abc\00def/I
1146  Capturing subpattern count = 0  Capturing subpattern count = 0
1147  Options: anchored  Options: anchored
1148  No first char  No first char
1149  Need char = 'f'  No need char
1150      abc\00def\L\C0      abc\00def\L\C0
1151   0: abc\x00def   0: abc\x00def
1152   0C abc (7)   0C abc (7)
1153   0L abc   0L abc
1154    
1155  /word ((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+  /word ((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
1156  )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+  )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
1157  )?)?)?)?)?)?)?)?)?otherword/M  )?)?)?)?)?)?)?)?)?otherword/I
 Memory allocation (code space): 428  
1158  Capturing subpattern count = 8  Capturing subpattern count = 8
1159    Contains explicit CR or LF match
1160  No options  No options
1161  First char = 'w'  First char = 'w'
1162  Need char = 'd'  Need char = 'd'
1163    
1164  /.*X/D  /.*X/IDZ
1165  ------------------------------------------------------------------  ------------------------------------------------------------------
1166    0   8 Bra 0          Bra
1167    3     Any*          Any*
1168    5   1 X          X
1169    8   8 Ket          Ket
1170   11     End          End
1171  ------------------------------------------------------------------  ------------------------------------------------------------------
1172  Capturing subpattern count = 0  Capturing subpattern count = 0
1173  No options  No options
1174  First char at start or follows \n  First char at start or follows newline
1175  Need char = 'X'  Need char = 'X'
1176    
1177  /.*X/Ds  /.*X/IDZs
1178  ------------------------------------------------------------------  ------------------------------------------------------------------
1179    0   8 Bra 0          Bra
1180    3     Any*          AllAny*
1181    5   1 X          X
1182    8   8 Ket          Ket
1183   11     End          End
1184  ------------------------------------------------------------------  ------------------------------------------------------------------
1185  Capturing subpattern count = 0  Capturing subpattern count = 0
1186  Options: anchored dotall  Options: anchored dotall
1187  No first char  No first char
1188  Need char = 'X'  Need char = 'X'
1189    
1190  /(.*X|^B)/D  /(.*X|^B)/IDZ
1191  ------------------------------------------------------------------  ------------------------------------------------------------------
1192    0  21 Bra 0          Bra
1193    3   8 Bra 1          CBra 1
1194    6     Any*          Any*
1195    8   1 X          X
1196   11   7 Alt          Alt
1197   14     ^          ^
1198   15   1 B          B
1199   18  15 Ket          Ket
1200   21  21 Ket          Ket
1201   24     End          End
1202  ------------------------------------------------------------------  ------------------------------------------------------------------
1203  Capturing subpattern count = 1  Capturing subpattern count = 1
1204  No options  No options
1205  First char at start or follows \n  First char at start or follows newline
1206  No need char  No need char
1207    
1208  /(.*X|^B)/Ds  /(.*X|^B)/IDZs
1209  ------------------------------------------------------------------  ------------------------------------------------------------------
1210    0  21 Bra 0          Bra
1211    3   8 Bra 1          CBra 1
1212    6     Any*          AllAny*
1213    8   1 X          X
1214   11   7 Alt          Alt
1215   14     ^          ^
1216   15   1 B          B
1217   18  15 Ket          Ket
1218   21  21 Ket          Ket
1219   24     End          End
1220  ------------------------------------------------------------------  ------------------------------------------------------------------
1221  Capturing subpattern count = 1  Capturing subpattern count = 1
1222  Options: anchored dotall  Options: anchored dotall
1223  No first char  No first char
1224  No need char  No need char
1225    
1226  /(?s)(.*X|^B)/D  /(?s)(.*X|^B)/IDZ
1227  ------------------------------------------------------------------  ------------------------------------------------------------------
1228    0  21 Bra 0          Bra
1229    3   8 Bra 1          CBra 1
1230    6     Any*          AllAny*
1231    8   1 X          X
1232   11   7 Alt          Alt
1233   14     ^          ^
1234   15   1 B          B
1235   18  15 Ket          Ket
1236   21  21 Ket          Ket
1237   24     End          End
1238  ------------------------------------------------------------------  ------------------------------------------------------------------
1239  Capturing subpattern count = 1  Capturing subpattern count = 1
1240  Options: anchored dotall  Options: anchored dotall
1241  No first char  No first char
1242  No need char  No need char
1243    
1244  /(?s:.*X|^B)/D  /(?s:.*X|^B)/IDZ
1245  ------------------------------------------------------------------  ------------------------------------------------------------------
1246    0  27 Bra 0          Bra
1247    3  10 Bra 0          Bra
1248    6  04 Opt          AllAny*
1249    8     Any*          X
1250   10   1 X          Alt
1251   13   9 Alt          ^
1252   16  04 Opt          B
1253   18     ^          Ket
1254   19   1 B          Ket
1255   22  19 Ket          End
  25  00 Opt  
  27  27 Ket  
  30     End  
1256  ------------------------------------------------------------------  ------------------------------------------------------------------
1257  Capturing subpattern count = 0  Capturing subpattern count = 0
1258  No options  Options: anchored
1259  First char at start or follows \n  No first char
1260  No need char  No need char
1261    
1262  /\Biss\B/+  /\Biss\B/I+
1263  Capturing subpattern count = 0  Capturing subpattern count = 0
1264  No options  No options
1265  First char = 'i'  First char = 'i'
# Line 1178  Need char = 's' Line 1268  Need char = 's'
1268   0: iss   0: iss
1269   0+ issippi   0+ issippi
1270    
1271  /\Biss\B/+P  /\Biss\B/I+P
1272      Mississippi      Mississippi
1273   0: iss   0: iss
1274   0+ issippi   0+ issippi
1275    
1276  /iss/G+  /iss/IG+
1277  Capturing subpattern count = 0  Capturing subpattern count = 0
1278  No options  No options
1279  First char = 'i'  First char = 'i'
# Line 1194  Need char = 's' Line 1284  Need char = 's'
1284   0: iss   0: iss
1285   0+ ippi   0+ ippi
1286    
1287  /\Biss\B/G+  /\Biss\B/IG+
1288  Capturing subpattern count = 0  Capturing subpattern count = 0
1289  No options  No options
1290  First char = 'i'  First char = 'i'
# Line 1203  Need char = 's' Line 1293  Need char = 's'
1293   0: iss   0: iss
1294   0+ issippi   0+ issippi
1295    
1296  /\Biss\B/g+  /\Biss\B/Ig+
1297  Capturing subpattern count = 0  Capturing subpattern count = 0
1298  No options  No options
1299  First char = 'i'  First char = 'i'
# Line 1218  No match Line 1308  No match
1308      Mississippi\A      Mississippi\A
1309  No match  No match
1310    
1311  /(?<=[Ms])iss/g+  /(?<=[Ms])iss/Ig+
1312  Capturing subpattern count = 0  Capturing subpattern count = 0
1313  No options  No options
1314  First char = 'i'  First char = 'i'
# Line 1229  Need char = 's' Line 1319  Need char = 's'
1319   0: iss   0: iss
1320   0+ ippi   0+ ippi
1321    
1322  /(?<=[Ms])iss/G+  /(?<=[Ms])iss/IG+
1323  Capturing subpattern count = 0  Capturing subpattern count = 0
1324  No options  No options
1325  First char = 'i'  First char = 'i'
# Line 1238  Need char = 's' Line 1328  Need char = 's'
1328   0: iss   0: iss
1329   0+ issippi   0+ issippi
1330    
1331  /^iss/g+  /^iss/Ig+
1332  Capturing subpattern count = 0  Capturing subpattern count = 0
1333  Options: anchored  Options: anchored
1334  No first char  No first char
1335  Need char = 's'  No need char
1336      ississippi      ississippi
1337   0: iss   0: iss
1338   0+ issippi   0+ issippi
1339    
1340  /.*iss/g+  /.*iss/Ig+
1341  Capturing subpattern count = 0  Capturing subpattern count = 0
1342  No options  No options
1343  First char at start or follows \n  First char at start or follows newline
1344  Need char = 's'  Need char = 's'
1345      abciss\nxyzisspqr      abciss\nxyzisspqr
1346   0: abciss   0: abciss
1347   0+ \x0axyzisspqr   0+ \x0axyzisspqr
1348   0: xyziss   0: xyziss
1349   0+ pqr   0+ pqr
1350    
1351  /.i./+g  /.i./I+g
1352  Capturing subpattern count = 0  Capturing subpattern count = 0
1353  No options  No options
1354  No first char  No first char
# Line 1284  Need char = 'i' Line 1374  Need char = 'i'
1374   0+ river   0+ river
1375   0: riv   0: riv
1376   0+ er   0+ er
1377      Missouri river\A      Missouri river\A
1378   0: Mis   0: Mis
1379   0+ souri river   0+ souri river
1380    
1381  /^.is/+g  /^.is/I+g
1382  Capturing subpattern count = 0  Capturing subpattern count = 0
1383  Options: anchored  Options: anchored
1384  No first char  No first char
1385  Need char = 's'  No need char
1386      Mississippi      Mississippi
1387   0: Mis   0: Mis
1388   0+ sissippi   0+ sissippi
1389    
1390  /^ab\n/g+  /^ab\n/Ig+
1391  Capturing subpattern count = 0  Capturing subpattern count = 0
1392    Contains explicit CR or LF match
1393  Options: anchored  Options: anchored
1394  No first char  No first char
1395  Need char = 10  No need char
1396      ab\nab\ncd      ab\nab\ncd
1397   0: ab\x0a   0: ab\x0a
1398   0+ ab\x0acd   0+ ab\x0acd
1399    
1400  /^ab\n/mg+  /^ab\n/Img+
1401  Capturing subpattern count = 0  Capturing subpattern count = 0
1402    Contains explicit CR or LF match
1403  Options: multiline  Options: multiline
1404  First char at start or follows \n  First char at start or follows newline
1405  Need char = 10  Need char = 10
1406      ab\nab\ncd      ab\nab\ncd
1407   0: ab\x0a   0: ab\x0a
# Line 1317  Need char = 10 Line 1409  Need char = 10
1409   0: ab\x0a   0: ab\x0a
1410   0+ cd   0+ cd
1411    
1412  /abc/  /abc/I
1413  Capturing subpattern count = 0  Capturing subpattern count = 0
1414  No options  No options
1415  First char = 'a'  First char = 'a'
1416  Need char = 'c'  Need char = 'c'
1417    
1418  /abc|bac/  /abc|bac/I
1419  Capturing subpattern count = 0  Capturing subpattern count = 0
1420  No options  No options
1421  No first char  No first char
1422  Need char = 'c'  Need char = 'c'
1423    
1424  /(abc|bac)/  /(abc|bac)/I
1425  Capturing subpattern count = 1  Capturing subpattern count = 1
1426  No options  No options
1427  No first char  No first char
1428  Need char = 'c'  Need char = 'c'
1429    
1430  /(abc|(c|dc))/  /(abc|(c|dc))/I
1431  Capturing subpattern count = 2  Capturing subpattern count = 2
1432  No options  No options
1433  No first char  No first char
1434  Need char = 'c'  Need char = 'c'
1435    
1436  /(abc|(d|de)c)/  /(abc|(d|de)c)/I
1437  Capturing subpattern count = 2  Capturing subpattern count = 2
1438  No options  No options
1439  No first char  No first char
1440  Need char = 'c'  Need char = 'c'
1441    
1442  /a*/  /a*/I
1443  Capturing subpattern count = 0  Capturing subpattern count = 0
1444  No options  No options
1445  No first char  No first char
1446  No need char  No need char
1447    
1448  /a+/  /a+/I
1449  Capturing subpattern count = 0  Capturing subpattern count = 0
1450  No options  No options
1451  First char = 'a'  First char = 'a'
1452  No need char  No need char
1453    
1454  /(baa|a+)/  /(baa|a+)/I
1455  Capturing subpattern count = 1  Capturing subpattern count = 1
1456  No options  No options
1457  No first char  No first char
1458  Need char = 'a'  Need char = 'a'
1459    
1460  /a{0,3}/  /a{0,3}/I
1461  Capturing subpattern count = 0  Capturing subpattern count = 0
1462  No options  No options
1463  No first char  No first char
1464  No need char  No need char
1465    
1466  /baa{3,}/  /baa{3,}/I
1467  Capturing subpattern count = 0  Capturing subpattern count = 0
1468  No options  No options
1469  First char = 'b'  First char = 'b'
1470  Need char = 'a'  Need char = 'a'
1471    
1472  /"([^\\"]+|\\.)*"/  /"([^\\"]+|\\.)*"/I
1473  Capturing subpattern count = 1  Capturing subpattern count = 1
1474  No options  No options
1475  First char = '"'  First char = '"'
1476  Need char = '"'  Need char = '"'
1477    
1478  /(abc|ab[cd])/  /(abc|ab[cd])/I
1479  Capturing subpattern count = 1  Capturing subpattern count = 1
1480  No options  No options
1481  First char = 'a'  First char = 'a'
1482  No need char  No need char
1483    
1484  /(a|.)/  /(a|.)/I
1485  Capturing subpattern count = 1  Capturing subpattern count = 1
1486  No options  No options
1487  No first char  No first char
1488  No need char  No need char
1489    
1490  /a|ba|\w/  /a|ba|\w/I
1491  Capturing subpattern count = 0  Capturing subpattern count = 0
1492  No options  No options
1493  No first char  No first char
1494  No need char  No need char
1495    
1496  /abc(?=pqr)/  /abc(?=pqr)/I
1497  Capturing subpattern count = 0  Capturing subpattern count = 0
1498  No options  No options
1499  First char = 'a'  First char = 'a'
1500  Need char = 'r'  Need char = 'r'
1501    
1502  /...(?<=abc)/  /...(?<=abc)/I
1503  Capturing subpattern count = 0  Capturing subpattern count = 0
1504  No options  No options
1505  No first char  No first char
1506  No need char  No need char
1507    
1508  /abc(?!pqr)/  /abc(?!pqr)/I
1509  Capturing subpattern count = 0  Capturing subpattern count = 0
1510  No options  No options
1511  First char = 'a'  First char = 'a'
1512  Need char = 'c'  Need char = 'c'
1513    
1514  /ab./  /ab./I
1515  Capturing subpattern count = 0  Capturing subpattern count = 0
1516  No options  No options
1517  First char = 'a'  First char = 'a'
1518  Need char = 'b'  Need char = 'b'
1519    
1520  /ab[xyz]/  /ab[xyz]/I
1521  Capturing subpattern count = 0  Capturing subpattern count = 0
1522  No options  No options
1523  First char = 'a'  First char = 'a'
1524  Need char = 'b'  Need char = 'b'
1525    
1526  /abc*/  /abc*/I
1527  Capturing subpattern count = 0  Capturing subpattern count = 0
1528  No options  No options
1529  First char = 'a'  First char = 'a'
1530  Need char = 'b'  Need char = 'b'
1531    
1532  /ab.c*/  /ab.c*/I
1533  Capturing subpattern count = 0  Capturing subpattern count = 0
1534  No options  No options
1535  First char = 'a'  First char = 'a'
1536  Need char = 'b'  Need char = 'b'
1537    
1538  /a.c*/  /a.c*/I
1539  Capturing subpattern count = 0  Capturing subpattern count = 0
1540  No options  No options
1541  First char = 'a'  First char = 'a'
1542  No need char  No need char
1543    
1544  /.c*/  /.c*/I
1545  Capturing subpattern count = 0  Capturing subpattern count = 0
1546  No options  No options
1547  No first char  No first char
1548  No need char  No need char
1549    
1550  /ac*/  /ac*/I
1551  Capturing subpattern count = 0  Capturing subpattern count = 0
1552  No options  No options
1553  First char = 'a'  First char = 'a'
1554  No need char  No need char
1555    
1556  /(a.c*|b.c*)/  /(a.c*|b.c*)/I
1557  Capturing subpattern count = 1  Capturing subpattern count = 1
1558  No options  No options
1559  No first char  No first char
1560  No need char  No need char
1561    
1562  /a.c*|aba/  /a.c*|aba/I
1563  Capturing subpattern count = 0  Capturing subpattern count = 0
1564  No options  No options
1565  First char = 'a'  First char = 'a'
1566  No need char  No need char
1567    
1568  /.+a/  /.+a/I
1569  Capturing subpattern count = 0  Capturing subpattern count = 0
1570  No options  No options
1571  No first char  No first char
1572  Need char = 'a'  Need char = 'a'
1573    
1574  /(?=abcda)a.*/  /(?=abcda)a.*/I
1575  Capturing subpattern count = 0  Capturing subpattern count = 0
1576  No options  No options
1577  First char = 'a'  First char = 'a'
1578  No need char  Need char = 'a'
1579    
1580  /(?=a)a.*/  /(?=a)a.*/I
1581  Capturing subpattern count = 0  Capturing subpattern count = 0
1582  No options  No options
1583  First char = 'a'  First char = 'a'
1584  No need char  No need char
1585    
1586  /a(b)*/  /a(b)*/I
1587  Capturing subpattern count = 1  Capturing subpattern count = 1
1588  No options  No options
1589  First char = 'a'  First char = 'a'
1590  No need char  No need char
1591    
1592  /a\d*/  /a\d*/I
1593  Capturing subpattern count = 0  Capturing subpattern count = 0
1594  No options  No options
1595  First char = 'a'  First char = 'a'
1596  No need char  No need char
1597    
1598  /ab\d*/  /ab\d*/I
1599  Capturing subpattern count = 0  Capturing subpattern count = 0
1600  No options  No options
1601  First char = 'a'  First char = 'a'
1602  Need char = 'b'  Need char = 'b'
1603    
1604  /a(\d)*/  /a(\d)*/I
1605  Capturing subpattern count = 1  Capturing subpattern count = 1
1606  No options  No options
1607  First char = 'a'  First char = 'a'
1608  No need char  No need char
1609    
1610  /abcde{0,0}/  /abcde{0,0}/I
1611  Capturing subpattern count = 0  Capturing subpattern count = 0
1612  No options  No options
1613  First char = 'a'  First char = 'a'
1614  Need char = 'd'  Need char = 'd'
1615    
1616  /ab\d+/  /ab\d+/I
1617  Capturing subpattern count = 0  Capturing subpattern count = 0
1618  No options  No options
1619  First char = 'a'  First char = 'a'
1620  Need char = 'b'  Need char = 'b'
1621    
1622  /a(?(1)b)/  /a(?(1)b)(.)/I
1623  Capturing subpattern count = 0  Capturing subpattern count = 1
1624  No options  No options
1625  First char = 'a'  First char = 'a'
1626  No need char  No need char
1627    
1628  /a(?(1)bag|big)/  /a(?(1)bag|big)(.)/I
1629  Capturing subpattern count = 0  Capturing subpattern count = 1
1630  No options  No options
1631  First char = 'a'  First char = 'a'
1632  Need char = 'g'  Need char = 'g'
1633    
1634  /a(?(1)bag|big)*/  /a(?(1)bag|big)*(.)/I
1635  Capturing subpattern count = 0  Capturing subpattern count = 1
1636  No options  No options
1637  First char = 'a'  First char = 'a'
1638  No need char  No need char
1639    
1640  /a(?(1)bag|big)+/  /a(?(1)bag|big)+(.)/I
1641  Capturing subpattern count = 0  Capturing subpattern count = 1
1642  No options  No options
1643  First char = 'a'  First char = 'a'
1644  Need char = 'g'  Need char = 'g'
1645    
1646  /a(?(1)b..|b..)/  /a(?(1)b..|b..)(.)/I
1647  Capturing subpattern count = 0  Capturing subpattern count = 1
1648  No options  No options
1649  First char = 'a'  First char = 'a'
1650  Need char = 'b'  Need char = 'b'
1651    
1652  /ab\d{0}e/  /ab\d{0}e/I
1653  Capturing subpattern count = 0  Capturing subpattern count = 0
1654  No options  No options
1655  First char = 'a'  First char = 'a'
1656  Need char = 'e'  Need char = 'e'
1657    
1658  /a?b?/  /a?b?/I
1659  Capturing subpattern count = 0  Capturing subpattern count = 0
1660  No options  No options
1661  No first char  No first char
# Line 1578  No need char Line 1670  No need char
1670   0:   0:
1671      *** Failers      *** Failers
1672   0:   0:
1673      \N      \N
1674  No match  No match
1675    
1676  /|-/  /|-/I
1677  Capturing subpattern count = 0  Capturing subpattern count = 0
1678  No options  No options
1679  No first char  No first char
# Line 1594  No need char Line 1686  No need char
1686   0: -   0: -
1687      *** Failers      *** Failers
1688   0:   0:
1689      \Nabc      \Nabc
1690  No match  No match
1691    
1692  /a*(b+)(z)(z)/P  /a*(b+)(z)(z)/P
# Line 1623  No match Line 1715  No match
1715   1: bbbb   1: bbbb
1716   2: z   2: z
1717   3: z   3: z
1718    
1719  /^.?abcd/S  /^.?abcd/IS
1720  Capturing subpattern count = 0  Capturing subpattern count = 0
1721  Options: anchored  Options: anchored
1722  No first char  No first char
1723  Need char = 'd'  Need char = 'd'
1724  Study returned NULL  Subject length lower bound = 4
1725    No set of starting bytes
1726    
1727  /\(             # ( at start  /\(             # ( at start
1728    (?:           # Non-capturing bracket    (?:           # Non-capturing bracket
# Line 1638  Study returned NULL Line 1731  Study returned NULL
1731    (?R)          # Recurse - i.e. nested bracketed string    (?R)          # Recurse - i.e. nested bracketed string
1732    )*            # Zero or more contents    )*            # Zero or more contents
1733    \)            # Closing )    \)            # Closing )
1734    /x    /Ix
1735  Capturing subpattern count = 0  Capturing subpattern count = 0
1736  Options: extended  Options: extended
1737  First char = '('  First char = '('
# Line 1649  Need char = ')' Line 1742  Need char = ')'
1742   0: (abcd)   0: (abcd)
1743      xyz(abcd)      xyz(abcd)
1744   0: (abcd)   0: (abcd)
1745      (ab(xy)cd)pqr      (ab(xy)cd)pqr
1746   0: (ab(xy)cd)   0: (ab(xy)cd)
1747      (ab(xycd)pqr      (ab(xycd)pqr
1748   0: (xycd)   0: (xycd)
1749      () abc ()      () abc ()
1750   0: ()   0: ()
1751      12(abcde(fsh)xyz(foo(bar))lmno)89      12(abcde(fsh)xyz(foo(bar))lmno)89
1752   0: (abcde(fsh)xyz(foo(bar))lmno)   0: (abcde(fsh)xyz(foo(bar))lmno)
1753      *** Failers      *** Failers
1754  No match  No match
1755      abcd      abcd
1756  No match  No match
1757      abcd)      abcd)
1758  No match  No match
1759      (abcd      (abcd
1760  No match  No match
1761    
1762  /\(  ( (?>[^()]+) | (?R) )* \) /xg  /\(  ( (?>[^()]+) | (?R) )* \) /Ixg
1763  Capturing subpattern count = 1  Capturing subpattern count = 1
1764  Options: extended  Options: extended
1765  First char = '('  First char = '('
1766  Need char = ')'  Need char = ')'
1767      (ab(xy)cd)pqr      (ab(xy)cd)pqr
1768   0: (ab(xy)cd)   0: (ab(xy)cd)
1769   1: cd   1: cd
1770      1(abcd)(x(y)z)pqr      1(abcd)(x(y)z)pqr
# Line 1680  Need char = ')' Line 1773  Need char = ')'
1773   0: (x(y)z)   0: (x(y)z)
1774   1: z   1: z
1775    
1776  /\(  (?: (?>[^()]+) | (?R) ) \) /x  /\(  (?: (?>[^()]+) | (?R) ) \) /Ix
1777  Capturing subpattern count = 0  Capturing subpattern count = 0
1778  Options: extended  Options: extended
1779  First char = '('  First char = '('
# Line 1689  Need char = ')' Line 1782  Need char = ')'
1782   0: (abcd)   0: (abcd)
1783      (ab(xy)cd)      (ab(xy)cd)
1784   0: (xy)   0: (xy)
1785      (a(b(c)d)e)      (a(b(c)d)e)
1786   0: (c)   0: (c)
1787      ((ab))      ((ab))
1788   0: ((ab))   0: ((ab))
1789      *** Failers      *** Failers
1790  No match  No match
1791      ()      ()
1792  No match  No match
1793    
1794  /\(  (?: (?>[^()]+) | (?R) )? \) /x  /\(  (?: (?>[^()]+) | (?R) )? \) /Ix
1795  Capturing subpattern count = 0  Capturing subpattern count = 0
1796  Options: extended  Options: extended
1797  First char = '('  First char = '('
# Line 1708  Need char = ')' Line 1801  Need char = ')'
1801      12(abcde(fsh)xyz(foo(bar))lmno)89      12(abcde(fsh)xyz(foo(bar))lmno)89
1802   0: (fsh)   0: (fsh)
1803    
1804  /\(  ( (?>[^()]+) | (?R) )* \) /x  /\(  ( (?>[^()]+) | (?R) )* \) /Ix
1805  Capturing subpattern count = 1  Capturing subpattern count = 1
1806  Options: extended  Options: extended
1807  First char = '('  First char = '('
# Line 1717  Need char = ')' Line 1810  Need char = ')'
1810   0: (ab(xy)cd)   0: (ab(xy)cd)
1811   1: cd   1: cd
1812    
1813  /\( ( ( (?>[^()]+) | (?R) )* ) \) /x  /\( ( ( (?>[^()]+) | (?R) )* ) \) /Ix
1814  Capturing subpattern count = 2  Capturing subpattern count = 2
1815  Options: extended  Options: extended
1816  First char = '('  First char = '('
# Line 1727  Need char = ')' Line 1820  Need char = ')'
1820   1: ab(xy)cd   1: ab(xy)cd
1821   2: cd   2: cd
1822    
1823  /\( (123)? ( ( (?>[^()]+) | (?R) )* ) \) /x  /\( (123)? ( ( (?>[^()]+) | (?R) )* ) \) /Ix
1824  Capturing subpattern count = 3  Capturing subpattern count = 3
1825  Options: extended  Options: extended
1826  First char = '('  First char = '('
# Line 1743  Need char = ')' Line 1836  Need char = ')'
1836   2: ab(xy)cd   2: ab(xy)cd
1837   3: cd   3: cd
1838    
1839  /\( ( (123)? ( (?>[^()]+) | (?R) )* ) \) /x  /\( ( (123)? ( (?>[^()]+) | (?R) )* ) \) /Ix
1840  Capturing subpattern count = 3  Capturing subpattern count = 3
1841  Options: extended  Options: extended
1842  First char = '('  First char = '('
# Line 1759  Need char = ')' Line 1852  Need char = ')'
1852   2: 123   2: 123
1853   3: cd   3: cd
1854    
1855  /\( (((((((((( ( (?>[^()]+) | (?R) )* )))))))))) \) /x  /\( (((((((((( ( (?>[^()]+) | (?R) )* )))))))))) \) /Ix
1856  Capturing subpattern count = 11  Capturing subpattern count = 11
1857  Options: extended  Options: extended
1858  First char = '('  First char = '('
# Line 1778  Need char = ')' Line 1871  Need char = ')'
1871  10: ab(xy)cd  10: ab(xy)cd
1872  11: cd  11: cd
1873    
1874  /\( ( ( (?>[^()<>]+) | ((?>[^()]+)) | (?R) )* ) \) /x  /\( ( ( (?>[^()<>]+) | ((?>[^()]+)) | (?R) )* ) \) /Ix
1875  Capturing subpattern count = 3  Capturing subpattern count = 3
1876  Options: extended  Options: extended
1877  First char = '('  First char = '('
# Line 1787  Need char = ')' Line 1880  Need char = ')'
1880   0: (abcd(xyz<p>qrs)123)   0: (abcd(xyz<p>qrs)123)
1881   1: abcd(xyz<p>qrs)123   1: abcd(xyz<p>qrs)123
1882   2: 123   2: 123
  3: <p>qrs  
1883    
1884  /\( ( ( (?>[^()]+) | ((?R)) )* ) \) /x  /\( ( ( (?>[^()]+) | ((?R)) )* ) \) /Ix
1885  Capturing subpattern count = 3  Capturing subpattern count = 3
1886  Options: extended  Options: extended
1887  First char = '('  First char = '('
# Line 1805  Need char = ')' Line 1897  Need char = ')'
1897   2: ij   2: ij
1898   3: (cd(ef)gh)   3: (cd(ef)gh)
1899    
1900  /^[[:alnum:]]/D  /^[[:alnum:]]/DZ
1901    ------------------------------------------------------------------
1902            Bra
1903            ^
1904            [0-9A-Za-z]
1905            Ket
1906            End
1907    ------------------------------------------------------------------
1908    Capturing subpattern count = 0
1909    Options: anchored
1910    No first char
1911    No need char
1912    
1913    /^[[:^alnum:]]/DZ
1914    ------------------------------------------------------------------
1915            Bra
1916            ^
1917            [\x00-/:-@[-`{-\xff] (neg)
1918            Ket
1919            End
1920    ------------------------------------------------------------------
1921    Capturing subpattern count = 0
1922    Options: anchored
1923    No first char
1924    No need char
1925    
1926    /^[[:alpha:]]/DZ
1927    ------------------------------------------------------------------
1928            Bra
1929            ^
1930            [A-Za-z]
1931            Ket
1932            End
1933    ------------------------------------------------------------------
1934    Capturing subpattern count = 0
1935    Options: anchored
1936    No first char
1937    No need char
1938    
1939    /^[[:^alpha:]]/DZ
1940    ------------------------------------------------------------------
1941            Bra
1942            ^
1943            [\x00-@[-`{-\xff] (neg)
1944            Ket
1945            End
1946    ------------------------------------------------------------------
1947    Capturing subpattern count = 0
1948    Options: anchored
1949    No first char
1950    No need char
1951    
1952    /[_[:alpha:]]/IS
1953    Capturing subpattern count = 0
1954    No options
1955    No first char
1956    No need char
1957    Subject length lower bound = 1
1958    Starting byte set: 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 Z
1959      _ 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 z
1960    
1961    /^[[:ascii:]]/DZ
1962    ------------------------------------------------------------------
1963            Bra
1964            ^
1965            [\x00-\x7f]
1966            Ket
1967            End
1968    ------------------------------------------------------------------
1969    Capturing subpattern count = 0
1970    Options: anchored
1971    No first char
1972    No need char
1973    
1974    /^[[:^ascii:]]/DZ
1975    ------------------------------------------------------------------
1976            Bra
1977            ^
1978            [\x80-\xff] (neg)
1979            Ket
1980            End
1981    ------------------------------------------------------------------
1982    Capturing subpattern count = 0
1983    Options: anchored
1984    No first char
1985    No need char
1986    
1987    /^[[:blank:]]/DZ
1988  ------------------------------------------------------------------  ------------------------------------------------------------------
1989    0  37 Bra 0          Bra
1990    3     ^          ^
1991    4     [0-9A-Za-z]          [\x09 ]
1992   37  37 Ket          Ket
1993   40     End          End
1994  ------------------------------------------------------------------  ------------------------------------------------------------------
1995  Capturing subpattern count = 0  Capturing subpattern count = 0
1996  Options: anchored  Options: anchored
1997  No first char  No first char
1998  No need char  No need char
1999    
2000  /^[[:alpha:]]/D  /^[[:^blank:]]/DZ
2001  ------------------------------------------------------------------  ------------------------------------------------------------------
2002    0  37 Bra 0          Bra
2003    3     ^          ^
2004    4     [A-Za-z]          [\x00-\x08\x0a-\x1f!-\xff] (neg)
2005   37  37 Ket          Ket
2006   40     End          End
2007  ------------------------------------------------------------------  ------------------------------------------------------------------
2008  Capturing subpattern count = 0  Capturing subpattern count = 0
2009  Options: anchored  Options: anchored
2010  No first char  No first char
2011  No need char  No need char
2012    
2013  /^[[:ascii:]]/D  /[\n\x0b\x0c\x0d[:blank:]]/IS
2014    Capturing subpattern count = 0
2015    Contains explicit CR or LF match
2016    No options
2017    No first char
2018    No need char
2019    Subject length lower bound = 1
2020    Starting byte set: \x09 \x0a \x0b \x0c \x0d \x20
2021    
2022    /^[[:cntrl:]]/DZ
2023  ------------------------------------------------------------------  ------------------------------------------------------------------
2024    0  37 Bra 0          Bra
2025    3     ^          ^
2026    4     [\x00-\x7f]          [\x00-\x1f\x7f]
2027   37  37 Ket          Ket
2028   40     End          End
2029  ------------------------------------------------------------------  ------------------------------------------------------------------
2030  Capturing subpattern count = 0  Capturing subpattern count = 0
2031  Options: anchored  Options: anchored
2032  No first char  No first char
2033  No need char  No need char
2034    
2035  /^[[:cntrl:]]/D  /^[[:digit:]]/DZ
2036  ------------------------------------------------------------------  ------------------------------------------------------------------
2037    0  37 Bra 0          Bra
2038    3     ^          ^
2039    4     [\x00-\x1f\x7f]          [0-9]
2040   37  37 Ket          Ket
2041   40     End          End
2042  ------------------------------------------------------------------  ------------------------------------------------------------------
2043  Capturing subpattern count = 0  Capturing subpattern count = 0
2044  Options: anchored  Options: anchored
2045  No first char  No first char
2046  No need char  No need char
2047    
2048  /^[[:digit:]]/D  /^[[:graph:]]/DZ
2049  ------------------------------------------------------------------  ------------------------------------------------------------------
2050    0  37 Bra 0          Bra
2051    3     ^          ^
2052    4     [0-9]          [!-~]
2053   37  37 Ket          Ket
2054   40     End          End
2055  ------------------------------------------------------------------  ------------------------------------------------------------------
2056  Capturing subpattern count = 0  Capturing subpattern count = 0
2057  Options: anchored  Options: anchored
2058  No first char  No first char
2059  No need char  No need char
2060    
2061  /^[[:graph:]]/D  /^[[:lower:]]/DZ
2062  ------------------------------------------------------------------  ------------------------------------------------------------------
2063    0  37 Bra 0          Bra
2064    3     ^          ^
2065    4     [!-~]          [a-z]
2066   37  37 Ket          Ket
2067   40     End          End
2068  ------------------------------------------------------------------  ------------------------------------------------------------------
2069  Capturing subpattern count = 0  Capturing subpattern count = 0
2070  Options: anchored  Options: anchored
2071  No first char  No first char
2072  No need char  No need char
2073    
2074  /^[[:lower:]]/D  /^[[:print:]]/DZ
2075  ------------------------------------------------------------------  ------------------------------------------------------------------
2076    0  37 Bra 0          Bra
2077    3     ^          ^
2078    4     [a-z]          [ -~]
2079   37  37 Ket          Ket
2080   40     End          End
2081  ------------------------------------------------------------------  ------------------------------------------------------------------
2082  Capturing subpattern count = 0  Capturing subpattern count = 0
2083  Options: anchored  Options: anchored
2084  No first char  No first char
2085  No need char  No need char
2086    
2087  /^[[:print:]]/D  /^[[:punct:]]/DZ
2088  ------------------------------------------------------------------  ------------------------------------------------------------------
2089    0  37 Bra 0          Bra
2090    3     ^          ^
2091    4     [ -~]          [!-/:-@[-`{-~]
2092   37  37 Ket          Ket
2093   40     End          End
2094  ------------------------------------------------------------------  ------------------------------------------------------------------
2095  Capturing subpattern count = 0  Capturing subpattern count = 0
2096  Options: anchored  Options: anchored
2097  No first char  No first char
2098  No need char  No need char
2099    
2100  /^[[:punct:]]/D  /^[[:space:]]/DZ
2101  ------------------------------------------------------------------  ------------------------------------------------------------------
2102    0  37 Bra 0          Bra
2103    3     ^          ^
2104    4     [!-/:-@[-`{-~]          [\x09-\x0d ]
2105   37  37 Ket          Ket
2106   40     End          End
2107  ------------------------------------------------------------------  ------------------------------------------------------------------
2108  Capturing subpattern count = 0  Capturing subpattern count = 0
2109  Options: anchored  Options: anchored
2110  No first char  No first char
2111  No need char  No need char
2112    
2113  /^[[:space:]]/D  /^[[:upper:]]/DZ
2114  ------------------------------------------------------------------  ------------------------------------------------------------------
2115    0  37 Bra 0          Bra
2116    3     ^          ^
2117    4     [\x09-\x0d ]          [A-Z]
2118   37  37 Ket          Ket
2119   40     End          End
2120  ------------------------------------------------------------------  ------------------------------------------------------------------
2121  Capturing subpattern count = 0  Capturing subpattern count = 0
2122  Options: anchored  Options: anchored
2123  No first char  No first char
2124  No need char  No need char
2125    
2126  /^[[:upper:]]/D  /^[[:xdigit:]]/DZ
2127  ------------------------------------------------------------------  ------------------------------------------------------------------
2128    0  37 Bra 0          Bra
2129    3     ^          ^
2130    4     [A-Z]          [0-9A-Fa-f]
2131   37  37 Ket          Ket
2132   40     End          End
2133  ------------------------------------------------------------------  ------------------------------------------------------------------
2134  Capturing subpattern count = 0  Capturing subpattern count = 0
2135  Options: anchored  Options: anchored
2136  No first char  No first char
2137  No need char  No need char
2138    
2139  /^[[:xdigit:]]/D  /^[[:word:]]/DZ
2140  ------------------------------------------------------------------  ------------------------------------------------------------------
2141    0  37 Bra 0          Bra
2142    3     ^          ^
2143    4     [0-9A-Fa-f]          [0-9A-Z_a-z]
2144   37  37 Ket          Ket
2145   40     End          End
2146  ------------------------------------------------------------------  ------------------------------------------------------------------
2147  Capturing subpattern count = 0  Capturing subpattern count = 0
2148  Options: anchored  Options: anchored
2149  No first char  No first char
2150  No need char  No need char
2151    
2152  /^[[:word:]]/D  /^[[:^cntrl:]]/DZ
2153  ------------------------------------------------------------------  ------------------------------------------------------------------
2154    0  37 Bra 0          Bra
2155    3     ^          ^
2156    4     [0-9A-Z_a-z]          [ -~\x80-\xff] (neg)
2157   37  37 Ket          Ket
2158   40     End          End
2159  ------------------------------------------------------------------  ------------------------------------------------------------------
2160  Capturing subpattern count = 0  Capturing subpattern count = 0
2161  Options: anchored  Options: anchored
2162  No first char  No first char
2163  No need char  No need char
2164    
2165  /^[[:^cntrl:]]/D  /^[12[:^digit:]]/DZ
2166  ------------------------------------------------------------------  ------------------------------------------------------------------
2167    0  37 Bra 0          Bra
2168    3     ^          ^
2169    4     [ -~\x80-\xff]          [\x00-/12:-\xff] (neg)
2170   37  37 Ket          Ket
2171   40     End          End
2172  ------------------------------------------------------------------  ------------------------------------------------------------------
2173  Capturing subpattern count = 0  Capturing subpattern count = 0
2174  Options: anchored  Options: anchored
2175  No first char  No first char
2176  No need char  No need char
2177    
2178  /^[12[:^digit:]]/D  /^[[:^blank:]]/DZ
2179  ------------------------------------------------------------------  ------------------------------------------------------------------
2180    0  37 Bra 0          Bra
2181    3     ^          ^
2182    4     [\x00-/1-2:-\xff]          [\x00-\x08\x0a-\x1f!-\xff] (neg)
2183   37  37 Ket          Ket
2184   40     End          End
2185  ------------------------------------------------------------------  ------------------------------------------------------------------
2186  Capturing subpattern count = 0  Capturing subpattern count = 0
2187  Options: anchored  Options: anchored
2188  No first char  No first char
2189  No need char  No need char
2190    
2191  /[01[:alpha:]%]/D  /[01[:alpha:]%]/DZ
2192  ------------------------------------------------------------------  ------------------------------------------------------------------
2193    0  36 Bra 0          Bra
2194    3     [%0-1A-Za-z]          [%01A-Za-z]
2195   36  36 Ket          Ket
2196   39     End          End
2197  ------------------------------------------------------------------  ------------------------------------------------------------------
2198  Capturing subpattern count = 0  Capturing subpattern count = 0
2199  No options  No options
2200  No first char  No first char
2201  No need char  No need char
2202    
2203  /[[.ch.]]/  /[[.ch.]]/I
2204  Failed: POSIX collating elements are not supported at offset 1  Failed: POSIX collating elements are not supported at offset 1
2205    
2206  /[[=ch=]]/  /[[=ch=]]/I
2207  Failed: POSIX collating elements are not supported at offset 1  Failed: POSIX collating elements are not supported at offset 1
2208    
2209  /[[:rhubarb:]]/  /[[:rhubarb:]]/I
2210  Failed: unknown POSIX class name at offset 3  Failed: unknown POSIX class name at offset 3
2211    
2212  /[[:upper:]]/i  /[[:upper:]]/Ii
2213  Capturing subpattern count = 0  Capturing subpattern count = 0
2214  Options: caseless  Options: caseless
2215  No first char  No first char
2216  No need char  No need char
2217      A      A
2218   0: A   0: A
2219      a      a
2220   0: a   0: a
2221    
2222  /[[:lower:]]/i  /[[:lower:]]/Ii
2223  Capturing subpattern count = 0  Capturing subpattern count = 0
2224  Options: caseless  Options: caseless
2225  No first char  No first char
2226  No need char  No need char
2227      A      A
2228   0: A   0: A
2229      a      a
2230   0: a   0: a
2231    
2232  /((?-i)[[:lower:]])[[:lower:]]/i  /((?-i)[[:lower:]])[[:lower:]]/Ii
2233  Capturing subpattern count = 1  Capturing subpattern count = 1
2234  Options: caseless  Options: caseless
 Case state changes  
2235  No first char  No first char
2236  No need char  No need char
2237      ab      ab
# Line 2058  No need char Line 2245  No need char
2245   1: a   1: a
2246      Ab      Ab
2247  No match  No match
2248      AB      AB
2249  No match  No match
2250    
2251  /[\200-\410]/  /[\200-\110]/I
2252  Failed: range out of order in character class at offset 9  Failed: range out of order in character class at offset 9
2253    
2254  / End of testinput2 /  /^(?(0)f|b)oo/I
2255    Failed: invalid condition (?(0) at offset 6
2256    
2257    /This one's here because of the large output vector needed/I
2258  Capturing subpattern count = 0  Capturing subpattern count = 0
2259  No options  No options
2260  First char = ' '  First char = 'T'
2261  Need char = ' '  Need char = 'd'
2262    
2263    /(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\w+)\s+(\270)/I
2264    Capturing subpattern count = 271
2265    Max back reference = 270
2266    No options
2267    No first char
2268    No need char
2269        \O900 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 ABC ABC
2270     0: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 ABC ABC
2271     1: 1
2272     2: 2
2273     3: 3
2274     4: 4
2275     5: 5
2276     6: 6
2277     7: 7
2278     8: 8
2279     9: 9
2280    10: 10
2281    11: 11
2282    12: 12
2283    13: 13
2284    14: 14
2285    15: 15
2286    16: 16
2287    17: 17
2288    18: 18
2289    19: 19
2290    20: 20
2291    21: 21
2292    22: 22
2293    23: 23
2294    24: 24
2295    25: 25
2296    26: 26
2297    27: 27
2298    28: 28
2299    29: 29
2300    30: 30
2301    31: 31
2302    32: 32
2303    33: 33
2304    34: 34
2305    35: 35
2306    36: 36
2307    37: 37
2308    38: 38
2309    39: 39
2310    40: 40
2311    41: 41
2312    42: 42
2313    43: 43
2314    44: 44
2315    45: 45
2316    46: 46
2317    47: 47
2318    48: 48
2319    49: 49
2320    50: 50
2321    51: 51
2322    52: 52
2323    53: 53
2324    54: 54
2325    55: 55
2326    56: 56
2327    57: 57
2328    58: 58
2329    59: 59
2330    60: 60
2331    61: 61
2332    62: 62
2333    63: 63
2334    64: 64
2335    65: 65
2336    66: 66
2337    67: 67
2338    68: 68
2339    69: 69
2340    70: 70
2341    71: 71
2342    72: 72
2343    73: 73
2344    74: 74
2345    75: 75
2346    76: 76
2347    77: 77
2348    78: 78
2349    79: 79
2350    80: 80
2351    81: 81
2352    82: 82
2353    83: 83
2354    84: 84
2355    85: 85
2356    86: 86
2357    87: 87
2358    88: 88
2359    89: 89
2360    90: 90
2361    91: 91
2362    92: 92
2363    93: 93
2364    94: 94
2365    95: 95
2366    96: 96
2367    97: 97
2368    98: 98
2369    99: 99
2370    100: 100
2371    101: 101
2372    102: 102
2373    103: 103
2374    104: 104
2375    105: 105
2376    106: 106
2377    107: 107
2378    108: 108
2379    109: 109
2380    110: 110
2381    111: 111
2382    112: 112
2383    113: 113
2384    114: 114
2385    115: 115
2386    116: 116
2387    117: 117
2388    118: 118
2389    119: 119
2390    120: 120
2391    121: 121
2392    122: 122
2393    123: 123
2394    124: 124
2395    125: 125
2396    126: 126
2397    127: 127
2398    128: 128
2399    129: 129
2400    130: 130
2401    131: 131
2402    132: 132
2403    133: 133
2404    134: 134
2405    135: 135
2406    136: 136
2407    137: 137
2408    138: 138
2409    139: 139
2410    140: 140
2411    141: 141
2412    142: 142
2413    143: 143
2414    144: 144
2415    145: 145
2416    146: 146
2417    147: 147
2418    148: 148
2419    149: 149
2420    150: 150
2421    151: 151
2422    152: 152
2423    153: 153
2424    154: 154
2425    155: 155
2426    156: 156
2427    157: 157
2428    158: 158
2429    159: 159
2430    160: 160
2431    161: 161
2432    162: 162
2433    163: 163
2434    164: 164
2435    165: 165
2436    166: 166
2437    167: 167
2438    168: 168
2439    169: 169
2440    170: 170
2441    171: 171
2442    172: 172
2443    173: 173
2444    174: 174
2445    175: 175
2446    176: 176
2447    177: 177
2448    178: 178
2449    179: 179
2450    180: 180
2451    181: 181
2452    182: 182
2453    183: 183
2454    184: 184
2455    185: 185
2456    186: 186
2457    187: 187
2458    188: 188
2459    189: 189
2460    190: 190
2461    191: 191
2462    192: 192
2463    193: 193
2464    194: 194
2465    195: 195
2466    196: 196
2467    197: 197
2468    198: 198
2469    199: 199
2470    200: 200
2471    201: 201
2472    202: 202
2473    203: 203
2474    204: 204
2475    205: 205
2476    206: 206
2477    207: 207
2478    208: 208
2479    209: 209
2480    210: 210
2481    211: 211
2482    212: 212
2483    213: 213
2484    214: 214
2485    215: 215
2486    216: 216
2487    217: 217
2488    218: 218
2489    219: 219
2490    220: 220
2491    221: 221
2492    222: 222
2493    223: 223
2494    224: 224
2495    225: 225
2496    226: 226
2497    227: 227
2498    228: 228
2499    229: 229
2500    230: 230
2501    231: 231
2502    232: 232
2503    233: 233
2504    234: 234
2505    235: 235
2506    236: 236
2507    237: 237
2508    238: 238
2509    239: 239
2510    240: 240
2511    241: 241
2512    242: 242
2513    243: 243
2514    244: 244
2515    245: 245
2516    246: 246
2517    247: 247
2518    248: 248
2519    249: 249
2520    250: 250
2521    251: 251
2522    252: 252
2523    253: 253
2524    254: 254
2525    255: 255
2526    256: 256
2527    257: 257
2528    258: 258
2529    259: 259
2530    260: 260
2531    261: 261
2532    262: 262
2533    263: 263
2534    264: 264
2535    265: 265
2536    266: 266
2537    267: 267
2538    268: 268
2539    269: 269
2540    270: ABC
2541    271: ABC
2542    
2543    /This one's here because Perl does this differently and PCRE can't at present/I
2544    Capturing subpattern count = 0
2545    No options
2546    First char = 'T'
2547    Need char = 't'
2548    
2549    /(main(O)?)+/I
2550    Capturing subpattern count = 2
2551    No options
2552    First char = 'm'
2553    Need char = 'n'
2554        mainmain
2555     0: mainmain
2556     1: main
2557        mainOmain
2558     0: mainOmain
2559     1: main
2560     2: O
2561    
2562    /These are all cases where Perl does it differently (nested captures)/I
2563    Capturing subpattern count = 1
2564    No options
2565    First char = 'T'
2566    Need char = 's'
2567    
2568    /^(a(b)?)+$/I
2569    Capturing subpattern count = 2
2570    Options: anchored
2571    No first char
2572    No need char
2573        aba
2574     0: aba
2575     1: a
2576     2: b
2577    
2578    /^(aa(bb)?)+$/I
2579    Capturing subpattern count = 2
2580    Options: anchored
2581    No first char
2582    No need char
2583        aabbaa
2584     0: aabbaa
2585     1: aa
2586     2: bb
2587    
2588    /^(aa|aa(bb))+$/I
2589    Capturing subpattern count = 2
2590    Options: anchored
2591    No first char
2592    No need char
2593        aabbaa
2594     0: aabbaa
2595     1: aa
2596     2: bb
2597    
2598    /^(aa(bb)??)+$/I
2599    Capturing subpattern count = 2
2600    Options: anchored
2601    No first char
2602    No need char
2603        aabbaa
2604     0: aabbaa
2605     1: aa
2606     2: bb
2607    
2608    /^(?:aa(bb)?)+$/I
2609    Capturing subpattern count = 1
2610    Options: anchored
2611    No first char
2612    No need char
2613        aabbaa
2614     0: aabbaa
2615     1: bb
2616    
2617    /^(aa(b(b))?)+$/I
2618    Capturing subpattern count = 3
2619    Options: anchored
2620    No first char
2621    No need char
2622        aabbaa
2623     0: aabbaa
2624     1: aa
2625     2: bb
2626     3: b
2627    
2628    /^(?:aa(b(b))?)+$/I
2629    Capturing subpattern count = 2
2630    Options: anchored
2631    No first char
2632    No need char
2633        aabbaa
2634     0: aabbaa
2635     1: bb
2636     2: b
2637    
2638    /^(?:aa(b(?:b))?)+$/I
2639    Capturing subpattern count = 1
2640    Options: anchored
2641    No first char
2642    No need char
2643        aabbaa
2644     0: aabbaa
2645     1: bb
2646    
2647    /^(?:aa(bb(?:b))?)+$/I
2648    Capturing subpattern count = 1
2649    Options: anchored
2650    No first char
2651    No need char
2652        aabbbaa
2653     0: aabbbaa
2654     1: bbb
2655    
2656    /^(?:aa(b(?:bb))?)+$/I
2657    Capturing subpattern count = 1
2658    Options: anchored
2659    No first char
2660    No need char
2661        aabbbaa
2662     0: aabbbaa
2663     1: bbb
2664    
2665    /^(?:aa(?:b(b))?)+$/I
2666    Capturing subpattern count = 1
2667    Options: anchored
2668    No first char
2669    No need char
2670        aabbaa
2671     0: aabbaa
2672     1: b
2673    
2674    /^(?:aa(?:b(bb))?)+$/I
2675    Capturing subpattern count = 1
2676    Options: anchored
2677    No first char
2678    No need char
2679        aabbbaa
2680     0: aabbbaa
2681     1: bb
2682    
2683    /^(aa(b(bb))?)+$/I
2684    Capturing subpattern count = 3
2685    Options: anchored
2686    No first char
2687    No need char
2688        aabbbaa
2689     0: aabbbaa
2690     1: aa
2691     2: bbb
2692     3: bb
2693    
2694    /^(aa(bb(bb))?)+$/I
2695    Capturing subpattern count = 3
2696    Options: anchored
2697    No first char
2698    No need char
2699        aabbbbaa
2700     0: aabbbbaa
2701     1: aa
2702     2: bbbb
2703     3: bb
2704    
2705    /--------------------------------------------------------------------/I
2706    Capturing subpattern count = 0
2707    No options
2708    First char = '-'
2709    Need char = '-'
2710    
2711    /#/IxDZ
2712    ------------------------------------------------------------------
2713            Bra
2714            Ket
2715            End
2716    ------------------------------------------------------------------
2717    Capturing subpattern count = 0
2718    Options: extended
2719    No first char
2720    No need char
2721    
2722    /a#/IxDZ
2723    ------------------------------------------------------------------
2724            Bra
2725            a
2726            Ket
2727            End
2728    ------------------------------------------------------------------
2729    Capturing subpattern count = 0
2730    Options: extended
2731    First char = 'a'
2732    No need char
2733    
2734    /[\s]/DZ
2735    ------------------------------------------------------------------
2736            Bra
2737            [\x09\x0a\x0c\x0d ]
2738            Ket
2739            End
2740    ------------------------------------------------------------------
2741    Capturing subpattern count = 0
2742    No options
2743    No first char
2744    No need char
2745    
2746    /[\S]/DZ
2747    ------------------------------------------------------------------
2748            Bra
2749            [\x00-\x08\x0b\x0e-\x1f!-\xff] (neg)
2750            Ket
2751            End
2752    ------------------------------------------------------------------
2753    Capturing subpattern count = 0
2754    No options
2755    No first char
2756    No need char
2757    
2758    /a(?i)b/DZ
2759    ------------------------------------------------------------------
2760            Bra
2761            a
2762         /i b
2763            Ket
2764            End
2765    ------------------------------------------------------------------
2766    Capturing subpattern count = 0
2767    No options
2768    First char = 'a'
2769    Need char = 'b' (caseless)
2770        ab
2771     0: ab
2772        aB
2773     0: aB
2774        *** Failers
2775    No match
2776        AB
2777    No match
2778    
2779    /(a(?i)b)/DZ
2780    ------------------------------------------------------------------
2781            Bra
2782            CBra 1
2783            a
2784         /i b
2785            Ket
2786            Ket
2787            End
2788    ------------------------------------------------------------------
2789    Capturing subpattern count = 1
2790    No options
2791    First char = 'a'
2792    Need char = 'b' (caseless)
2793        ab
2794     0: ab
2795     1: ab
2796        aB
2797     0: aB
2798     1: aB
2799        *** Failers
2800    No match
2801        AB
2802    No match
2803    
2804    /   (?i)abc/IxDZ
2805    ------------------------------------------------------------------
2806            Bra
2807         /i abc
2808            Ket
2809            End
2810    ------------------------------------------------------------------
2811    Capturing subpattern count = 0
2812    Options: caseless extended
2813    First char = 'a' (caseless)
2814    Need char = 'c' (caseless)
2815    
2816    /#this is a comment
2817      (?i)abc/IxDZ
2818    ------------------------------------------------------------------
2819            Bra
2820         /i abc
2821            Ket
2822            End
2823    ------------------------------------------------------------------
2824    Capturing subpattern count = 0
2825    Options: caseless extended
2826    First char = 'a' (caseless)
2827    Need char = 'c' (caseless)
2828    
2829    /123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/DZ
2830    ------------------------------------------------------------------
2831            Bra
2832            123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
2833            Ket
2834            End
2835    ------------------------------------------------------------------
2836    Capturing subpattern count = 0
2837    No options
2838    First char = '1'
2839    Need char = '0'
2840    
2841    /\Q123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/DZ
2842    ------------------------------------------------------------------
2843            Bra
2844            123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
2845            Ket
2846            End
2847    ------------------------------------------------------------------
2848    Capturing subpattern count = 0
2849    No options
2850    First char = '1'
2851    Need char = '0'
2852    
2853    /\Q\E/DZ
2854    ------------------------------------------------------------------
2855            Bra
2856            Ket
2857            End
2858    ------------------------------------------------------------------
2859    Capturing subpattern count = 0
2860    No options
2861    No first char
2862    No need char
2863        \
2864     0:
2865    
2866    /\Q\Ex/DZ
2867    ------------------------------------------------------------------
2868            Bra
2869            x
2870            Ket
2871            End
2872    ------------------------------------------------------------------
2873    Capturing subpattern count = 0
2874    No options
2875    First char = 'x'
2876    No need char
2877    
2878    / \Q\E/DZ
2879    ------------------------------------------------------------------
2880            Bra
2881    
2882            Ket
2883            End
2884    ------------------------------------------------------------------
2885    Capturing subpattern count = 0
2886    No options
2887    First char = ' '
2888    No need char
2889    
2890    /a\Q\E/DZ
2891    ------------------------------------------------------------------
2892            Bra
2893            a
2894            Ket
2895            End
2896    ------------------------------------------------------------------
2897    Capturing subpattern count = 0
2898    No options
2899    First char = 'a'
2900    No need char
2901      abc
2902     0: a
2903      bca
2904     0: a
2905      bac
2906     0: a
2907    
2908    /a\Q\Eb/DZ
2909    ------------------------------------------------------------------
2910            Bra
2911            ab
2912            Ket
2913            End
2914    ------------------------------------------------------------------
2915    Capturing subpattern count = 0
2916    No options
2917    First char = 'a'
2918    Need char = 'b'
2919      abc
2920     0: ab
2921    
2922    /\Q\Eabc/DZ
2923    ------------------------------------------------------------------
2924            Bra
2925            abc
2926            Ket
2927            End
2928    ------------------------------------------------------------------
2929    Capturing subpattern count = 0
2930    No options
2931    First char = 'a'
2932    Need char = 'c'
2933    
2934    /x*+\w/DZ
2935    ------------------------------------------------------------------
2936            Bra
2937            x*+
2938            \w
2939            Ket
2940            End
2941    ------------------------------------------------------------------
2942    Capturing subpattern count = 0
2943    No options
2944    No first char
2945    No need char
2946        *** Failers
2947     0: F
2948        xxxxx
2949    No match
2950    
2951    /x?+/DZ
2952    ------------------------------------------------------------------
2953            Bra
2954            x?+
2955            Ket
2956            End
2957    ------------------------------------------------------------------
2958    Capturing subpattern count = 0
2959    No options
2960    No first char
2961    No need char
2962    
2963    /x++/DZ
2964    ------------------------------------------------------------------
2965            Bra
2966            x++
2967            Ket
2968            End
2969    ------------------------------------------------------------------
2970    Capturing subpattern count = 0
2971    No options
2972    First char = 'x'
2973    No need char
2974    
2975    /x{1,3}+/DZ
2976    ------------------------------------------------------------------
2977            Bra
2978            Once
2979            x
2980            x{0,2}
2981            Ket
2982            Ket
2983            End
2984    ------------------------------------------------------------------
2985    Capturing subpattern count = 0
2986    No options
2987    First char = 'x'
2988    No need char
2989    
2990    /(x)*+/DZ
2991    ------------------------------------------------------------------
2992            Bra
2993            Braposzero
2994            CBraPos 1
2995            x
2996            KetRpos
2997            Ket
2998            End
2999    ------------------------------------------------------------------
3000    Capturing subpattern count = 1
3001    No options
3002    No first char
3003    No need char
3004    
3005    /^(\w++|\s++)*$/I
3006    Capturing subpattern count = 1
3007    Options: anchored
3008    No first char
3009    No need char
3010        now is the time for all good men to come to the aid of the party
3011     0: now is the time for all good men to come to the aid of the party
3012     1: party
3013        *** Failers
3014    No match
3015        this is not a line with only words and spaces!
3016    No match
3017    
3018    /(\d++)(\w)/I
3019    Capturing subpattern count = 2
3020    No options
3021    No first char
3022    No need char
3023        12345a
3024     0: 12345a
3025     1: 12345
3026     2: a
3027        *** Failers
3028    No match
3029        12345+
3030    No match
3031    
3032    /a++b/I
3033    Capturing subpattern count = 0
3034    No options
3035    First char = 'a'
3036    Need char = 'b'
3037        aaab
3038     0: aaab
3039    
3040    /(a++b)/I
3041    Capturing subpattern count = 1
3042    No options
3043    First char = 'a'
3044    Need char = 'b'
3045        aaab
3046     0: aaab
3047     1: aaab
3048    
3049    /(a++)b/I
3050    Capturing subpattern count = 1
3051    No options
3052    First char = 'a'
3053    Need char = 'b'
3054        aaab
3055     0: aaab
3056     1: aaa
3057    
3058    /([^()]++|\([^()]*\))+/I
3059    Capturing subpattern count = 1
3060    No options
3061    No first char
3062    No need char
3063        ((abc(ade)ufh()()x
3064     0: abc(ade)ufh()()x
3065     1: x
3066    
3067    /\(([^()]++|\([^()]+\))+\)/I
3068    Capturing subpattern count = 1
3069    No options
3070    First char = '('
3071    Need char = ')'
3072        (abc)
3073     0: (abc)
3074     1: abc
3075        (abc(def)xyz)
3076     0: (abc(def)xyz)
3077     1: xyz
3078        *** Failers
3079    No match
3080        ((()aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
3081    No match
3082    
3083    /(abc){1,3}+/DZ
3084    ------------------------------------------------------------------
3085            Bra
3086            Once
3087            CBra 1
3088            abc
3089            Ket
3090            Brazero
3091            Bra
3092            CBra 1
3093            abc
3094            Ket
3095            Brazero
3096            CBra 1
3097            abc
3098            Ket
3099            Ket
3100            Ket
3101            Ket
3102            End
3103    ------------------------------------------------------------------
3104    Capturing subpattern count = 1
3105    No options
3106    First char = 'a'
3107    Need char = 'c'
3108    
3109    /a+?+/I
3110    Failed: nothing to repeat at offset 3
3111    
3112    /a{2,3}?+b/I
3113    Failed: nothing to repeat at offset 7
3114    
3115    /(?U)a+?+/I
3116    Failed: nothing to repeat at offset 7
3117    
3118    /a{2,3}?+b/IU
3119    Failed: nothing to repeat at offset 7
3120    
3121    /x(?U)a++b/DZ
3122    ------------------------------------------------------------------
3123            Bra
3124            x
3125            a++
3126            b
3127            Ket
3128            End
3129    ------------------------------------------------------------------
3130    Capturing subpattern count = 0
3131    No options
3132    First char = 'x'
3133    Need char = 'b'
3134        xaaaab
3135     0: xaaaab
3136    
3137    /(?U)xa++b/DZ
3138    ------------------------------------------------------------------
3139            Bra
3140            x
3141            a++
3142            b
3143            Ket
3144            End
3145    ------------------------------------------------------------------
3146    Capturing subpattern count = 0
3147    Options: ungreedy
3148    First char = 'x'
3149    Need char = 'b'
3150        xaaaab
3151     0: xaaaab
3152    
3153    /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/DZ
3154    ------------------------------------------------------------------
3155            Bra
3156            ^
3157            CBra 1
3158            CBra 2
3159            a+
3160            Ket
3161            CBra 3
3162            [ab]+?
3163            Ket
3164            CBra 4
3165            [bc]+
3166            Ket
3167            CBra 5
3168            \w*
3169            Ket
3170            Ket
3171            Ket
3172            End
3173    ------------------------------------------------------------------
3174    Capturing subpattern count = 5
3175    Options: anchored
3176    No first char
3177    No need char
3178    
3179    /^x(?U)a+b/DZ
3180    ------------------------------------------------------------------
3181            Bra
3182            ^
3183            x
3184            a++
3185            b
3186            Ket
3187            End
3188    ------------------------------------------------------------------
3189    Capturing subpattern count = 0
3190    Options: anchored
3191    No first char
3192    Need char = 'b'
3193    
3194    /^x(?U)(a+)b/DZ
3195    ------------------------------------------------------------------
3196            Bra
3197            ^
3198            x
3199            CBra 1
3200            a+?
3201            Ket
3202            b
3203            Ket
3204            End
3205    ------------------------------------------------------------------
3206    Capturing subpattern count = 1
3207    Options: anchored
3208    No first char
3209    Need char = 'b'
3210    
3211    /[.x.]/I
3212    Failed: POSIX collating elements are not supported at offset 0
3213    
3214    /[=x=]/I
3215    Failed: POSIX collating elements are not supported at offset 0
3216    
3217    /[:x:]/I
3218    Failed: POSIX named classes are supported only within a class at offset 0
3219    
3220    /\l/I
3221    Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
3222    
3223    /\L/I
3224    Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
3225    
3226    /\N{name}/I
3227    Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
3228    
3229    /\u/I
3230    Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
3231    
3232    /\U/I
3233    Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
3234    
3235    /[/I
3236    Failed: missing terminating ] for character class at offset 1
3237    
3238    /[a-/I
3239    Failed: missing terminating ] for character class at offset 3
3240    
3241    /[[:space:]/I
3242    Failed: missing terminating ] for character class at offset 10
3243    
3244    /[\s]/IDZ
3245    ------------------------------------------------------------------
3246            Bra
3247            [\x09\x0a\x0c\x0d ]
3248            Ket
3249            End
3250    ------------------------------------------------------------------
3251    Capturing subpattern count = 0
3252    No options
3253    No first char
3254    No need char
3255    
3256    /[[:space:]]/IDZ
3257    ------------------------------------------------------------------
3258            Bra
3259            [\x09-\x0d ]
3260            Ket
3261            End
3262    ------------------------------------------------------------------
3263    Capturing subpattern count = 0
3264    No options
3265    No first char
3266    No need char
3267    
3268    /[[:space:]abcde]/IDZ
3269    ------------------------------------------------------------------
3270            Bra
3271            [\x09-\x0d a-e]
3272            Ket
3273            End
3274    ------------------------------------------------------------------
3275    Capturing subpattern count = 0
3276    No options
3277    No first char
3278    No need char
3279    
3280    /< (?: (?(R) \d++  | [^<>]*+) | (?R)) * >/Ix
3281    Capturing subpattern count = 0
3282    Options: extended
3283    First char = '<'
3284    Need char = '>'
3285        <>
3286     0: <>
3287        <abcd>
3288     0: <abcd>
3289        <abc <123> hij>
3290     0: <abc <123> hij>
3291        <abc <def> hij>
3292     0: <def>
3293        <abc<>def>
3294     0: <abc<>def>
3295        <abc<>
3296     0: <>
3297        *** Failers
3298    No match
3299        <abc
3300    No match
3301    
3302    |8J\$WE\<\.rX\+ix\[d1b\!H\#\?vV0vrK\:ZH1\=2M\>iV\;\?aPhFB\<\*vW\@QW\@sO9\}cfZA\-i\'w\%hKd6gt1UJP\,15_\#QY\$M\^Mss_U\/\]\&LK9\[5vQub\^w\[KDD\<EjmhUZ\?\.akp2dF\>qmj\;2\}YWFdYx\.Ap\]hjCPTP\(n28k\+3\;o\&WXqs\/gOXdr\$\:r\'do0\;b4c\(f_Gr\=\"\\4\)\[01T7ajQJvL\$W\~mL_sS\/4h\:x\*\[ZN\=KLs\&L5zX\/\/\>it\,o\:aU\(\;Z\>pW\&T7oP\'2K\^E\:x9\'c\[\%z\-\,64JQ5AeH_G\#KijUKghQw\^\\vea3a\?kka_G\$8\#\`\*kynsxzBLru\'\]k_\[7FrVx\}\^\=\$blx\>s\-N\%j\;D\*aZDnsw\:YKZ\%Q\.Kne9\#hP\?\+b3\(SOvL\,\^\;\&u5\@\?5C5Bhb\=m\-vEh_L15Jl\]U\)0RP6\{q\%L\^_z5E\'Dw6X\b|IDZ
3303    ------------------------------------------------------------------
3304            Bra
3305            8J$WE<.rX+ix[d1b!H#?vV0vrK:ZH1=2M>iV;?aPhFB<*vW@QW@sO9}cfZA-i'w%hKd6gt1UJP,15_#QY$M^Mss_U/]&LK9[5vQub^w[KDD<EjmhUZ?.akp2dF>qmj;2}YWFdYx.Ap]hjCPTP(n28k+3;o&WXqs/gOXdr$:r'do0;b4c(f_Gr="\4)[01T7ajQJvL$W~mL_sS/4h:x*[ZN=KLs&L5zX//>it,o:aU(;Z>pW&T7oP'2K^E:x9'c[%z-,64JQ5AeH_G#KijUKghQw^\vea3a?kka_G$8#`*kynsxzBLru']k_[7FrVx}^=$blx>s-N%j;D*aZDnsw:YKZ%Q.Kne9#hP?+b3(SOvL,^;&u5@?5C5Bhb=m-vEh_L15Jl]U)0RP6{q%L^_z5E'Dw6X
3306            \b
3307            Ket
3308            End
3309    ------------------------------------------------------------------
3310    Capturing subpattern count = 0
3311    No options
3312    First char = '8'
3313    Need char = 'X'
3314    
3315    |\$\<\.X\+ix\[d1b\!H\#\?vV0vrK\:ZH1\=2M\>iV\;\?aPhFB\<\*vW\@QW\@sO9\}cfZA\-i\'w\%hKd6gt1UJP\,15_\#QY\$M\^Mss_U\/\]\&LK9\[5vQub\^w\[KDD\<EjmhUZ\?\.akp2dF\>qmj\;2\}YWFdYx\.Ap\]hjCPTP\(n28k\+3\;o\&WXqs\/gOXdr\$\:r\'do0\;b4c\(f_Gr\=\"\\4\)\[01T7ajQJvL\$W\~mL_sS\/4h\:x\*\[ZN\=KLs\&L5zX\/\/\>it\,o\:aU\(\;Z\>pW\&T7oP\'2K\^E\:x9\'c\[\%z\-\,64JQ5AeH_G\#KijUKghQw\^\\vea3a\?kka_G\$8\#\`\*kynsxzBLru\'\]k_\[7FrVx\}\^\=\$blx\>s\-N\%j\;D\*aZDnsw\:YKZ\%Q\.Kne9\#hP\?\+b3\(SOvL\,\^\;\&u5\@\?5C5Bhb\=m\-vEh_L15Jl\]U\)0RP6\{q\%L\^_z5E\'Dw6X\b|IDZ
3316    ------------------------------------------------------------------
3317            Bra
3318            $<.X+ix[d1b!H#?vV0vrK:ZH1=2M>iV;?aPhFB<*vW@QW@sO9}cfZA-i'w%hKd6gt1UJP,15_#QY$M^Mss_U/]&LK9[5vQub^w[KDD<EjmhUZ?.akp2dF>qmj;2}YWFdYx.Ap]hjCPTP(n28k+3;o&WXqs/gOXdr$:r'do0;b4c(f_Gr="\4)[01T7ajQJvL$W~mL_sS/4h:x*[ZN=KLs&L5zX//>it,o:aU(;Z>pW&T7oP'2K^E:x9'c[%z-,64JQ5AeH_G#KijUKghQw^\vea3a?kka_G$8#`*kynsxzBLru']k_[7FrVx}^=$blx>s-N%j;D*aZDnsw:YKZ%Q.Kne9#hP?+b3(SOvL,^;&u5@?5C5Bhb=m-vEh_L15Jl]U)0RP6{q%L^_z5E'Dw6X
3319            \b
3320            Ket
3321            End
3322    ------------------------------------------------------------------
3323    Capturing subpattern count = 0
3324    No options
3325    First char = '$'
3326    Need char = 'X'
3327    
3328    /(.*)\d+\1/I
3329    Capturing subpattern count = 1
3330    Max back reference = 1
3331    No options
3332    No first char
3333    No need char
3334    
3335    /(.*)\d+/I
3336    Capturing subpattern count = 1
3337    No options
3338    First char at start or follows newline
3339    No need char
3340    
3341    /(.*)\d+\1/Is
3342    Capturing subpattern count = 1
3343    Max back reference = 1
3344    Options: dotall
3345    No first char
3346    No need char
3347    
3348    /(.*)\d+/Is
3349    Capturing subpattern count = 1
3350    Options: anchored dotall
3351    No first char
3352    No need char
3353    
3354    /(.*(xyz))\d+\2/I
3355    Capturing subpattern count = 2
3356    Max back reference = 2
3357    No options
3358    First char at start or follows newline
3359    Need char = 'z'
3360    
3361    /((.*))\d+\1/I
3362    Capturing subpattern count = 2
3363    Max back reference = 1
3364    No options
3365    No first char
3366    No need char
3367        abc123bc
3368     0: bc123bc
3369     1: bc
3370     2: bc
3371    
3372    /a[b]/I
3373    Capturing subpattern count = 0
3374    No options
3375    First char = 'a'
3376    Need char = 'b'
3377    
3378    /(?=a).*/I
3379    Capturing subpattern count = 0
3380    No options
3381    First char = 'a'
3382    No need char
3383    
3384    /(?=abc).xyz/IiI
3385    Capturing subpattern count = 0
3386    Options: caseless
3387    First char = 'a' (caseless)
3388    Need char = 'z' (caseless)
3389    
3390    /(?=abc)(?i).xyz/I
3391    Capturing subpattern count = 0
3392    No options
3393    First char = 'a'
3394    Need char = 'z' (caseless)
3395    
3396    /(?=a)(?=b)/I
3397    Capturing subpattern count = 0
3398    No options
3399    First char = 'a'
3400    No need char
3401    
3402    /(?=.)a/I
3403    Capturing subpattern count = 0
3404    No options
3405    First char = 'a'
3406    No need char
3407    
3408    /((?=abcda)a)/I
3409    Capturing subpattern count = 1
3410    No options
3411    First char = 'a'
3412    Need char = 'a'
3413    
3414    /((?=abcda)ab)/I
3415    Capturing subpattern count = 1
3416    No options
3417    First char = 'a'
3418    Need char = 'b'
3419    
3420    /()a/I
3421    Capturing subpattern count = 1
3422    No options
3423    No first char
3424    Need char = 'a'
3425    
3426    /(?(1)ab|ac)(.)/I
3427    Capturing subpattern count = 1
3428    No options
3429    First char = 'a'
3430    No need char
3431    
3432    /(?(1)abz|acz)(.)/I
3433    Capturing subpattern count = 1
3434    No options
3435    First char = 'a'
3436    Need char = 'z'
3437    
3438    /(?(1)abz)(.)/I
3439    Capturing subpattern count = 1
3440    No options
3441    No first char
3442    No need char
3443    
3444    /(?(1)abz)(1)23/I
3445    Capturing subpattern count = 1
3446    No options
3447    No first char
3448    Need char = '3'
3449    
3450    /(a)+/I
3451    Capturing subpattern count = 1
3452    No options
3453    First char = 'a'
3454    No need char
3455    
3456    /(a){2,3}/I
3457    Capturing subpattern count = 1
3458    No options
3459    First char = 'a'
3460    Need char = 'a'
3461    
3462    /(a)*/I
3463    Capturing subpattern count = 1
3464    No options
3465    No first char
3466    No need char
3467    
3468    /[a]/I
3469    Capturing subpattern count = 0
3470    No options
3471    First char = 'a'
3472    No need char
3473    
3474    /[ab]/I
3475    Capturing subpattern count = 0
3476    No options
3477    No first char
3478    No need char
3479    
3480    /[ab]/IS
3481    Capturing subpattern count = 0
3482    No options
3483    No first char
3484    No need char
3485    Subject length lower bound = 1
3486    Starting byte set: a b
3487    
3488    /[^a]/I
3489    Capturing subpattern count = 0
3490    No options
3491    No first char
3492    No need char
3493    
3494    /\d456/I
3495    Capturing subpattern count = 0
3496    No options
3497    No first char
3498    Need char = '6'
3499    
3500    /\d456/IS
3501    Capturing subpattern count = 0
3502    No options
3503    No first char
3504    Need char = '6'
3505    Subject length lower bound = 4
3506    Starting byte set: 0 1 2 3 4 5 6 7 8 9
3507    
3508    /a^b/I
3509    Capturing subpattern count = 0
3510    No options
3511    First char = 'a'
3512    Need char = 'b'
3513    
3514    /^a/Im
3515    Capturing subpattern count = 0
3516    Options: multiline
3517    First char at start or follows newline
3518    Need char = 'a'
3519      abcde
3520     0: a
3521      xy\nabc
3522     0: a
3523      *** Failers
3524    No match
3525      xyabc
3526    No match
3527    
3528    /c|abc/I
3529    Capturing subpattern count = 0
3530    No options
3531    No first char
3532    Need char = 'c'
3533    
3534    /(?i)[ab]/IS
3535    Capturing subpattern count = 0
3536    Options: caseless
3537    No first char
3538    No need char
3539    Subject length lower bound = 1
3540    Starting byte set: A B a b
3541    
3542    /[ab](?i)cd/IS
3543    Capturing subpattern count = 0
3544    No options
3545    No first char
3546    Need char = 'd' (caseless)
3547    Subject length lower bound = 3
3548    Starting byte set: a b
3549    
3550    /abc(?C)def/I
3551    Capturing subpattern count = 0
3552    No options
3553    First char = 'a'
3554    Need char = 'f'
3555        abcdef
3556    --->abcdef
3557      0 ^  ^       d
3558     0: abcdef
3559        1234abcdef
3560    --->1234abcdef
3561      0     ^  ^       d
3562     0: abcdef
3563        *** Failers
3564    No match
3565        abcxyz
3566    No match
3567        abcxyzf
3568    --->abcxyzf
3569      0 ^  ^        d
3570    No match
3571    
3572    /abc(?C)de(?C1)f/I
3573    Capturing subpattern count = 0
3574    No options
3575    First char = 'a'
3576    Need char = 'f'
3577        123abcdef
3578    --->123abcdef
3579      0    ^  ^       d
3580      1    ^    ^     f
3581     0: abcdef
3582    
3583    /(?C1)\dabc(?C2)def/IS
3584    Capturing subpattern count = 0
3585    No options
3586    No first char
3587    Need char = 'f'
3588    Subject length lower bound = 7
3589    Starting byte set: 0 1 2 3 4 5 6 7 8 9
3590        1234abcdef
3591    --->1234abcdef
3592      1 ^              \d
3593      1  ^             \d
3594      1   ^            \d
3595      1    ^           \d
3596      2    ^   ^       d
3597     0: 4abcdef
3598        *** Failers
3599    No match
3600        abcdef
3601    No match
3602    
3603    /(?C1)\dabc(?C2)def/ISS
3604    Capturing subpattern count = 0
3605    No options
3606    No first char
3607    Need char = 'f'
3608        1234abcdef
3609    --->1234abcdef
3610      1 ^              \d
3611      1  ^             \d
3612      1   ^            \d
3613      1    ^           \d
3614      2    ^   ^       d
3615     0: 4abcdef
3616        *** Failers
3617    No match
3618        abcdef
3619    --->abcdef
3620      1 ^          \d
3621      1  ^         \d
3622      1   ^        \d
3623      1    ^       \d
3624      1     ^      \d
3625      1      ^     \d
3626    No match
3627    
3628    /(?C255)ab/I
3629    Capturing subpattern count = 0
3630    No options
3631    First char = 'a'
3632    Need char = 'b'
3633    
3634    /(?C256)ab/I
3635    Failed: number after (?C is > 255 at offset 6
3636    
3637    /(?Cab)xx/I
3638    Failed: closing ) for (?C expected at offset 3
3639    
3640    /(?C12vr)x/I
3641    Failed: closing ) for (?C expected at offset 5
3642    
3643    /abc(?C)def/I
3644    Capturing subpattern count = 0
3645    No options
3646    First char = 'a'
3647    Need char = 'f'
3648        *** Failers
3649    No match
3650        \x83\x0\x61bcdef
3651    --->\x83\x00abcdef
3652      0         ^  ^       d
3653     0: abcdef
3654    
3655    /(abc)(?C)de(?C1)f/I
3656    Capturing subpattern count = 1
3657    No options
3658    First char = 'a'
3659    Need char = 'f'
3660        123abcdef
3661    --->123abcdef
3662      0    ^  ^       d
3663      1    ^    ^     f
3664     0: abcdef
3665     1: abc
3666        123abcdef\C+
3667    Callout 0: last capture = 1
3668     0: <unset>
3669     1: abc
3670    --->123abcdef
3671           ^  ^       d
3672    Callout 1: last capture = 1
3673     0: <unset>
3674     1: abc
3675    --->123abcdef
3676           ^    ^     f
3677     0: abcdef
3678     1: abc
3679        123abcdef\C-
3680     0: abcdef
3681     1: abc
3682        *** Failers
3683    No match
3684        123abcdef\C!1
3685    --->123abcdef
3686      0    ^  ^       d
3687      1    ^    ^     f
3688    No match
3689    
3690    /(?C0)(abc(?C1))*/I
3691    Capturing subpattern count = 1
3692    No options
3693    No first char
3694    No need char
3695        abcabcabc
3696    --->abcabcabc
3697      0 ^             (abc(?C1))*
3698      1 ^  ^          )
3699      1 ^     ^       )
3700      1 ^        ^    )
3701     0: abcabcabc
3702     1: abc
3703        abcabc\C!1!3
3704    --->abcabc
3705      0 ^          (abc(?C1))*
3706      1 ^  ^       )
3707      1 ^     ^    )
3708     0: abcabc
3709     1: abc
3710        *** Failers
3711    --->*** Failers
3712      0 ^               (abc(?C1))*
3713     0:
3714        abcabcabc\C!1!3
3715    --->abcabcabc
3716      0 ^             (abc(?C1))*
3717      1 ^  ^          )
3718      1 ^     ^       )
3719      1 ^        ^    )
3720     0: abcabc
3721     1: abc
3722    
3723    /(\d{3}(?C))*/I
3724    Capturing subpattern count = 1
3725    No options
3726    No first char
3727    No need char
3728        123\C+
3729    Callout 0: last capture = -1
3730     0: <unset>
3731    --->123
3732        ^  ^    )
3733     0: 123
3734     1: 123
3735        123456\C+
3736    Callout 0: last capture = -1
3737     0: <unset>