/[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 83 by nigel, Sat Feb 24 21:41:06 2007 UTC revision 609 by ph10, Wed Jun 15 18:09:23 2011 UTC
# Line 1  Line 1 
1  PCRE version 6.3 15-Aug-2005  /-- 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
# 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
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
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
# Line 80  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 98  Failed: missing terminating ] for charac Line 103  Failed: missing terminating ] for charac
103  /(?X)[\B]/  /(?X)[\B]/
104  Failed: invalid escape sequence in character class at offset 6  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
138    
# Line 111  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
 Partial matching not supported  
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
 Partial matching not supported  
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 137  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    Subject length lower bound = 3
179  Starting byte set: c d e  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    Subject length lower bound = 3
191  Starting byte set: C D E c d e  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    Subject length lower bound = 1
203  Starting byte set: a b c d  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    Subject length lower bound = 1
211  Starting byte set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a  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 ! " # $ % & ' ( ) * + , - . / : ; < = >
# Line 186  Starting byte set: \x00 \x01 \x02 \x03 \ Line 223  Starting byte set: \x00 \x01 \x02 \x03 \
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    Subject length lower bound = 1
232  Starting byte set: \x09 \x0a \x0c \x0d \x20 a b  Starting byte set: \x09 \x0a \x0c \x0d \x20 a b
233    
234  /(ab\2)/  /(ab\2)/
# Line 199  Failed: reference to non-existent subpat Line 237  Failed: reference to non-existent subpat
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 224  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 272  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 289  No match Line 327  No match
327  /(a)(b)(c)(d)(e)\6/  /(a)(b)(c)(d)(e)\6/
328  Failed: 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 299  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
# Line 312  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 324  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
 Partial matching not supported  
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 345  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 361  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 381  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 401  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
 Partial matching not supported  
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
 Partial matching not supported  
451  No options  No options
452  First char = '<'  First char = '<'
453  Need char = '>'  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
 Partial matching not supported  
459  No options  No options
460  First char = '<'  First char = '<'
461  Need char = '>'  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
 Partial matching not supported  
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
 Partial matching not supported  
475  Options: ungreedy  Options: ungreedy
476  First char = '<'  First char = '<'
477  Need char = '>'  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
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
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 498  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' (caseless)  First char = 'a' (caseless)
534  Need char = 'c' (caseless)  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  No need char  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
 Partial matching not supported  
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    Subject length lower bound = 1
566  Starting byte set: a b c d  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    Subject length lower bound = 1
574  Starting byte set: A B C D a b c d  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    Subject length lower bound = 1
582  Starting byte set: b c x y  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 570  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 5  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
 Partial matching not supported  
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
 Partial matching not supported  
627  No options  No options
 Case state changes  
628  First char = 'b' (caseless)  First char = 'b' (caseless)
629  Need char = 'h' (caseless)  Need char = 'h' (caseless)
630    
631  /((?i)b)/DS  /((?i)b)/IDZS
632  ------------------------------------------------------------------  ------------------------------------------------------------------
633    0  15 Bra 0          Bra
634    3   7 Bra 1          CBra 1
635    6  01 Opt       /i b
636    8  NC b          Ket
637   10   7 Ket          Ket
638   13  00 Opt          End
  15  15 Ket  
  18     End  
639  ------------------------------------------------------------------  ------------------------------------------------------------------
640  Capturing subpattern count = 1  Capturing subpattern count = 1
641  No options  No options
 Case state changes  
642  First char = 'b' (caseless)  First char = 'b' (caseless)
643  No need char  No need char
644  Study returned NULL  Subject length lower bound = 1
645    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
 Partial matching not supported  
649  No options  No options
 Case state changes  
650  No first char  No first char
651  No need char  No need char
652    Subject length lower bound = 1
653  Starting byte set: C a b c d  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 634  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 650  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  No need char  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
 Partial matching not supported  
701  Options: anchored  Options: anchored
702  No first char  No first char
703  No need char  No need char
# Line 683  No need char Line 709  No need char
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    Subject length lower bound = 1
718  Starting byte set: a b  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    Subject length lower bound = 5
726  Starting byte set: a o  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    Subject length lower bound = 1
734  Starting byte set: a b  Starting byte set: a b
735    
736  /(?<=foo\n)^bar/m  /(?<=foo\n)^bar/Im
737  Capturing subpattern count = 0  Capturing subpattern count = 0
738    Contains explicit CR or LF match
739  Options: multiline  Options: multiline
740  No first char  No first char
741  Need char = 'r'  Need char = 'r'
742      foo\nbarbar      foo\nbarbar
743   0: bar   0: bar
744      ***Failers      ***Failers
745  No match  No match
746      rhubarb      rhubarb
747  No match  No match
748      barbell      barbell
749  No match  No match
750      abc\nbarton      abc\nbarton
751  No match  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      foo\nbarbar
760   0: bar   0: bar
761      ***Failers      ***Failers
762  No match  No match
763      rhubarb      rhubarb
764  No match  No match
765      barbell      barbell
766  No match  No match
767      abc\nbarton      abc\nbarton
768  No match  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 747  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 760  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 778  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
 Partial matching not supported  
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 802  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 818  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  No need char  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 919  Failed: reference to non-existent subpat Line 968  Failed: reference to non-existent subpat
968  /(a)|\2/  /(a)|\2/
969  Failed: 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  /:(?:/  /:(?:/
# Line 953  Failed: missing ) at offset 4 Line 1002  Failed: missing ) at offset 4
1002  Failed: unrecognized character after (?< at offset 3  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 991  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 1010  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
 Partial matching not supported  
1062  No options  No options
1063  No first char  No first char
1064  No need char  No need char
# Line 1023  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
 Partial matching not supported  
1079  No options  No options
1080  No first char  No first char
1081  No need char  No need char
# Line 1044  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
 Partial matching not supported  
1093  No options  No options
1094  No first char  No first char
1095  No need char  No need char
# Line 1056  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  No need char  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 1079  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 1092  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  No need char  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): 432  
1158  Capturing subpattern count = 8  Capturing subpattern count = 8
1159  Partial matching not supported  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   7 Bra 0          Bra
1167    3     Any*          Any*
1168    5     X          X
1169    7   7 Ket          Ket
1170   10     End          End
1171  ------------------------------------------------------------------  ------------------------------------------------------------------
1172  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
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   7 Bra 0          Bra
1180    3     Any*          AllAny*
1181    5     X          X
1182    7   7 Ket          Ket
1183   10     End          End
1184  ------------------------------------------------------------------  ------------------------------------------------------------------
1185  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
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  19 Bra 0          Bra
1193    3   7 Bra 1          CBra 1
1194    6     Any*          Any*
1195    8     X          X
1196   10   6 Alt          Alt
1197   13     ^          ^
1198   14     B          B
1199   16  13 Ket          Ket
1200   19  19 Ket          Ket
1201   22     End          End
1202  ------------------------------------------------------------------  ------------------------------------------------------------------
1203  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
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  19 Bra 0          Bra
1211    3   7 Bra 1          CBra 1
1212    6     Any*          AllAny*
1213    8     X          X
1214   10   6 Alt          Alt
1215   13     ^          ^
1216   14     B          B
1217   16  13 Ket          Ket
1218   19  19 Ket          Ket
1219   22     End          End
1220  ------------------------------------------------------------------  ------------------------------------------------------------------
1221  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
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  19 Bra 0          Bra
1229    3   7 Bra 1          CBra 1
1230    6     Any*          AllAny*
1231    8     X          X
1232   10   6 Alt          Alt
1233   13     ^          ^
1234   14     B          B
1235   16  13 Ket          Ket
1236   19  19 Ket          Ket
1237   22     End          End
1238  ------------------------------------------------------------------  ------------------------------------------------------------------
1239  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
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  25 Bra 0          Bra
1247    3   9 Bra 0          Bra
1248    6  04 Opt          AllAny*
1249    8     Any*          X
1250   10     X          Alt
1251   12   8 Alt          ^
1252   15  04 Opt          B
1253   17     ^          Ket
1254   18     B          Ket
1255   20  17 Ket          End
  23  00 Opt  
  25  25 Ket  
  28     End  
1256  ------------------------------------------------------------------  ------------------------------------------------------------------
1257  Capturing subpattern count = 0  Capturing subpattern count = 0
1258  Partial matching not supported  Options: anchored
1259  No options  No first char
 First char at start or follows \n  
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 1235  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 1251  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 1260  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 1275  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 1286  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 1295  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
# Line 1303  No need char Line 1336  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
 Partial matching not supported  
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 1342  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
# Line 1355  No need char Line 1387  No need char
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  No need char  No need char
# Line 1364  No need char Line 1397  No need char
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 1375  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
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
1576  No options  No options
1577  First char = 'a'  First char = 'a'
1578  Need char = 'a'  Need char = 'a'
1579    
1580  /(?=a)a.*/  /(?=a)a.*/I
1581  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
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
 Partial matching not supported  
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 1655  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 1671  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 1700  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 1715  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
 Partial matching not supported  
1736  Options: extended  Options: extended
1737  First char = '('  First char = '('
1738  Need char = ')'  Need char = ')'
# Line 1727  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
 Partial matching not supported  
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 1759  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
 Partial matching not supported  
1778  Options: extended  Options: extended
1779  First char = '('  First char = '('
1780  Need char = ')'  Need char = ')'
# Line 1769  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
 Partial matching not supported  
1796  Options: extended  Options: extended
1797  First char = '('  First char = '('
1798  Need char = ')'  Need char = ')'
# Line 1789  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
 Partial matching not supported  
1806  Options: extended  Options: extended
1807  First char = '('  First char = '('
1808  Need char = ')'  Need char = ')'
# Line 1799  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
 Partial matching not supported  
1815  Options: extended  Options: extended
1816  First char = '('  First char = '('
1817  Need char = ')'  Need char = ')'
# Line 1810  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
 Partial matching not supported  
1825  Options: extended  Options: extended
1826  First char = '('  First char = '('
1827  Need char = ')'  Need char = ')'
# Line 1827  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
 Partial matching not supported  
1841  Options: extended  Options: extended
1842  First char = '('  First char = '('
1843  Need char = ')'  Need char = ')'
# Line 1844  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
 Partial matching not supported  
1857  Options: extended  Options: extended
1858  First char = '('  First char = '('
1859  Need char = ')'  Need char = ')'
# Line 1864  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
 Partial matching not supported  
1876  Options: extended  Options: extended
1877  First char = '('  First char = '('
1878  Need char = ')'  Need char = ')'
# Line 1874  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: <unset>  
1883    
1884  /\( ( ( (?>[^()]+) | ((?R)) )* ) \) /x  /\( ( ( (?>[^()]+) | ((?R)) )* ) \) /Ix
1885  Capturing subpattern count = 3  Capturing subpattern count = 3
 Partial matching not supported  
1886  Options: extended  Options: extended
1887  First char = '('  First char = '('
1888  Need char = ')'  Need char = ')'
# Line 1893  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    0  37 Bra 0          Bra
1916    3     ^          ^
1917    4     [0-9A-Za-z]          [\x00-/:-@[-`{-\xff] (neg)
1918   37  37 Ket          Ket
1919   40     End          End
1920  ------------------------------------------------------------------  ------------------------------------------------------------------
1921  Capturing subpattern count = 0  Capturing subpattern count = 0
1922  Options: anchored  Options: anchored
1923  No first char  No first char
1924  No need char  No need char
1925    
1926  /^[[:^alnum:]]/D  /^[[:alpha:]]/DZ
1927  ------------------------------------------------------------------  ------------------------------------------------------------------
1928    0  37 Bra 0          Bra
1929    3     ^          ^
1930    4     [\x00-/:-@[-`{-\xff]          [A-Za-z]
1931   37  37 Ket          Ket
1932   40     End          End
1933  ------------------------------------------------------------------  ------------------------------------------------------------------
1934  Capturing subpattern count = 0  Capturing subpattern count = 0
1935  Options: anchored  Options: anchored
1936  No first char  No first char
1937  No need char  No need char
1938    
1939  /^[[:alpha:]]/D  /^[[:^alpha:]]/DZ
1940  ------------------------------------------------------------------  ------------------------------------------------------------------
1941    0  37 Bra 0          Bra
1942    3     ^          ^
1943    4     [A-Za-z]          [\x00-@[-`{-\xff] (neg)
1944   37  37 Ket          Ket
1945   40     End          End
1946  ------------------------------------------------------------------  ------------------------------------------------------------------
1947  Capturing subpattern count = 0  Capturing subpattern count = 0
1948  Options: anchored  Options: anchored
1949  No first char  No first char
1950  No need char  No need char
1951    
1952  /^[[:^alpha:]]/D  /[_[: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    0  37 Bra 0          Bra
1964    3     ^          ^
1965    4     [\x00-@[-`{-\xff]          [\x00-\x7f]
1966   37  37 Ket          Ket
1967   40     End          End
1968  ------------------------------------------------------------------  ------------------------------------------------------------------
1969  Capturing subpattern count = 0  Capturing subpattern count = 0
1970  Options: anchored  Options: anchored
1971  No first char  No first char
1972  No need char  No need char
1973    
1974  /^[[:ascii:]]/D  /^[[:^ascii:]]/DZ
1975  ------------------------------------------------------------------  ------------------------------------------------------------------
1976    0  37 Bra 0          Bra
1977    3     ^          ^
1978    4     [\x00-\x7f]          [\x80-\xff] (neg)
1979   37  37 Ket          Ket
1980   40     End          End
1981  ------------------------------------------------------------------  ------------------------------------------------------------------
1982  Capturing subpattern count = 0  Capturing subpattern count = 0
1983  Options: anchored  Options: anchored
1984  No first char  No first char
1985  No need char  No need char
1986    
1987  /^[[:^ascii:]]/D  /^[[:blank:]]/DZ
1988  ------------------------------------------------------------------  ------------------------------------------------------------------
1989    0  37 Bra 0          Bra
1990    3     ^          ^
1991    4     [\x80-\xff]          [\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  /^[[:blank:]]/D  /^[[:^blank:]]/DZ
2001  ------------------------------------------------------------------  ------------------------------------------------------------------
2002    0  37 Bra 0          Bra
2003    3     ^          ^
2004    4     [\x09 ]          [\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  /^[[:cntrl:]]/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-\x1f\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  /^[[:digit:]]/D  /^[[:digit:]]/DZ
2036  ------------------------------------------------------------------  ------------------------------------------------------------------
2037    0  37 Bra 0          Bra
2038    3     ^          ^
2039    4     [0-9]          [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  /^[[:graph:]]/D  /^[[:graph:]]/DZ
2049  ------------------------------------------------------------------  ------------------------------------------------------------------
2050    0  37 Bra 0          Bra
2051    3     ^          ^
2052    4     [!-~]          [!-~]
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  /^[[:lower:]]/D  /^[[:lower:]]/DZ
2062  ------------------------------------------------------------------  ------------------------------------------------------------------
2063    0  37 Bra 0          Bra
2064    3     ^          ^
2065    4     [a-z]          [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  /^[[:print:]]/D  /^[[:print:]]/DZ
2075  ------------------------------------------------------------------  ------------------------------------------------------------------
2076    0  37 Bra 0          Bra
2077    3     ^          ^
2078    4     [ -~]          [ -~]
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  /^[[:punct:]]/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  /^[[:space:]]/D  /^[[:space:]]/DZ
2101  ------------------------------------------------------------------  ------------------------------------------------------------------
2102    0  37 Bra 0          Bra
2103    3     ^          ^
2104    4     [\x09-\x0d ]          [\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  /^[[:upper:]]/D  /^[[:upper:]]/DZ
2114  ------------------------------------------------------------------  ------------------------------------------------------------------
2115    0  37 Bra 0          Bra
2116    3     ^          ^
2117    4     [A-Z]          [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  /^[[:xdigit:]]/D  /^[[:xdigit:]]/DZ
2127  ------------------------------------------------------------------  ------------------------------------------------------------------
2128    0  37 Bra 0          Bra
2129    3     ^          ^
2130    4     [0-9A-Fa-f]          [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  /^[[:word:]]/D  /^[[:word:]]/DZ
2140  ------------------------------------------------------------------  ------------------------------------------------------------------
2141    0  37 Bra 0          Bra
2142    3     ^          ^
2143    4     [0-9A-Z_a-z]          [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  /^[[:^cntrl:]]/D  /^[[:^cntrl:]]/DZ
2153  ------------------------------------------------------------------  ------------------------------------------------------------------
2154    0  37 Bra 0          Bra
2155    3     ^          ^
2156    4     [ -~\x80-\xff]          [ -~\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  /^[12[:^digit:]]/D  /^[12[:^digit:]]/DZ
2166  ------------------------------------------------------------------  ------------------------------------------------------------------
2167    0  37 Bra 0          Bra
2168    3     ^          ^
2169    4     [\x00-/12:-\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  /^[[:^blank:]]/D  /^[[:^blank:]]/DZ
2179  ------------------------------------------------------------------  ------------------------------------------------------------------
2180    0  37 Bra 0          Bra
2181    3     ^          ^
2182    4     [\x00-\x08\x0a-\x1f!-\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     [%01A-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 2211  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  /^(?(0)f|b)oo/  /^(?(0)f|b)oo/I
2255  Failed: invalid condition (?(0) at offset 5  Failed: invalid condition (?(0) at offset 6
2256    
2257  /This one's here because of the large output vector needed/  /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 = 'T'  First char = 'T'
2261  Need char = 'd'  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)/  /(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\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  Capturing subpattern count = 271
2265  Max back reference = 270  Max back reference = 270
 Partial matching not supported  
2266  No options  No options
2267  No first char  No first char
2268  No need char  No need char
# Line 2507  No need char Line 2540  No need char
2540  270: ABC  270: ABC
2541  271: ABC  271: ABC
2542    
2543  /This one's here because Perl does this differently and PCRE can't at present/  /This one's here because Perl does this differently and PCRE can't at present/I
2544  Capturing subpattern count = 0  Capturing subpattern count = 0
2545  No options  No options
2546  First char = 'T'  First char = 'T'
2547  Need char = 't'  Need char = 't'
2548    
2549  /(main(O)?)+/  /(main(O)?)+/I
2550  Capturing subpattern count = 2  Capturing subpattern count = 2
2551  No options  No options
2552  First char = 'm'  First char = 'm'
# Line 2525  Need char = 'n' Line 2558  Need char = 'n'
2558   0: mainOmain   0: mainOmain
2559   1: main   1: main
2560   2: O   2: O
2561    
2562  /These are all cases where Perl does it differently (nested captures)/  /These are all cases where Perl does it differently (nested captures)/I
2563  Capturing subpattern count = 1  Capturing subpattern count = 1
2564  No options  No options
2565  First char = 'T'  First char = 'T'
2566  Need char = 's'  Need char = 's'
2567    
2568  /^(a(b)?)+$/  /^(a(b)?)+$/I
2569  Capturing subpattern count = 2  Capturing subpattern count = 2
2570  Options: anchored  Options: anchored
2571  No first char  No first char
# Line 2541  No need char Line 2574  No need char
2574   0: aba   0: aba
2575   1: a   1: a
2576   2: b   2: b
2577    
2578  /^(aa(bb)?)+$/  /^(aa(bb)?)+$/I
2579  Capturing subpattern count = 2  Capturing subpattern count = 2
2580  Options: anchored  Options: anchored
2581  No first char  No first char
2582  No need char  No need char
2583      aabbaa      aabbaa
2584   0: aabbaa   0: aabbaa
2585   1: aa   1: aa
2586   2: bb   2: bb
2587    
2588  /^(aa|aa(bb))+$/  /^(aa|aa(bb))+$/I
2589  Capturing subpattern count = 2  Capturing subpattern count = 2
2590  Options: anchored  Options: anchored
2591  No first char  No first char
2592  No need char  No need char
2593      aabbaa      aabbaa
2594   0: aabbaa   0: aabbaa
2595   1: aa   1: aa
2596   2: bb   2: bb
2597    
2598  /^(aa(bb)??)+$/  /^(aa(bb)??)+$/I
2599  Capturing subpattern count = 2  Capturing subpattern count = 2
2600  Options: anchored  Options: anchored
2601  No first char  No first char
2602  No need char  No need char
2603      aabbaa      aabbaa
2604   0: aabbaa   0: aabbaa
2605   1: aa   1: aa
2606   2: bb   2: bb
2607    
2608  /^(?:aa(bb)?)+$/  /^(?:aa(bb)?)+$/I
2609  Capturing subpattern count = 1  Capturing subpattern count = 1
2610  Options: anchored  Options: anchored
2611  No first char  No first char
2612  No need char  No need char
2613      aabbaa      aabbaa
2614   0: aabbaa   0: aabbaa
2615   1: bb   1: bb
2616    
2617  /^(aa(b(b))?)+$/  /^(aa(b(b))?)+$/I
2618  Capturing subpattern count = 3  Capturing subpattern count = 3
2619  Options: anchored  Options: anchored
2620  No first char  No first char
2621  No need char  No need char
2622      aabbaa      aabbaa
2623   0: aabbaa   0: aabbaa
2624   1: aa   1: aa
2625   2: bb   2: bb
2626   3: b   3: b
2627    
2628  /^(?:aa(b(b))?)+$/  /^(?:aa(b(b))?)+$/I
2629  Capturing subpattern count = 2  Capturing subpattern count = 2
2630  Options: anchored  Options: anchored
2631  No first char  No first char
2632  No need char  No need char
2633      aabbaa      aabbaa
2634   0: aabbaa   0: aabbaa
2635   1: bb   1: bb
2636   2: b   2: b
2637    
2638  /^(?:aa(b(?:b))?)+$/  /^(?:aa(b(?:b))?)+$/I
2639  Capturing subpattern count = 1  Capturing subpattern count = 1
2640  Options: anchored  Options: anchored
2641  No first char  No first char
2642  No need char  No need char
2643      aabbaa      aabbaa
2644   0: aabbaa   0: aabbaa
2645   1: bb   1: bb
2646    
2647  /^(?:aa(bb(?:b))?)+$/  /^(?:aa(bb(?:b))?)+$/I
2648  Capturing subpattern count = 1  Capturing subpattern count = 1
2649  Options: anchored  Options: anchored
2650  No first char  No first char
2651  No need char  No need char
2652      aabbbaa      aabbbaa
2653   0: aabbbaa   0: aabbbaa
2654   1: bbb   1: bbb
2655    
2656  /^(?:aa(b(?:bb))?)+$/  /^(?:aa(b(?:bb))?)+$/I
2657  Capturing subpattern count = 1  Capturing subpattern count = 1
2658  Options: anchored  Options: anchored
2659  No first char  No first char
2660  No need char  No need char
2661      aabbbaa      aabbbaa
2662   0: aabbbaa   0: aabbbaa
2663   1: bbb   1: bbb
2664    
2665  /^(?:aa(?:b(b))?)+$/  /^(?:aa(?:b(b))?)+$/I
2666  Capturing subpattern count = 1  Capturing subpattern count = 1
2667  Options: anchored  Options: anchored
2668  No first char  No first char
2669  No need char  No need char
2670      aabbaa      aabbaa
2671   0: aabbaa   0: aabbaa
2672   1: b   1: b
2673    
2674  /^(?:aa(?:b(bb))?)+$/  /^(?:aa(?:b(bb))?)+$/I
2675  Capturing subpattern count = 1  Capturing subpattern count = 1
2676  Options: anchored  Options: anchored
2677  No first char  No first char
2678  No need char  No need char
2679      aabbbaa      aabbbaa
2680   0: aabbbaa   0: aabbbaa
2681   1: bb   1: bb
2682    
2683  /^(aa(b(bb))?)+$/  /^(aa(b(bb))?)+$/I
2684  Capturing subpattern count = 3  Capturing subpattern count = 3
2685  Options: anchored  Options: anchored
2686  No first char  No first char
2687  No need char  No need char
2688      aabbbaa      aabbbaa
2689   0: aabbbaa   0: aabbbaa
2690   1: aa   1: aa
2691   2: bbb   2: bbb
2692   3: bb   3: bb
2693    
2694  /^(aa(bb(bb))?)+$/  /^(aa(bb(bb))?)+$/I
2695  Capturing subpattern count = 3  Capturing subpattern count = 3
2696  Options: anchored  Options: anchored
2697  No first char  No first char
2698  No need char  No need char
2699      aabbbbaa      aabbbbaa
2700   0: aabbbbaa   0: aabbbbaa
2701   1: aa   1: aa
2702   2: bbbb   2: bbbb
2703   3: bb   3: bb
2704    
2705  /--------------------------------------------------------------------/  /--------------------------------------------------------------------/I
2706  Capturing subpattern count = 0  Capturing subpattern count = 0
2707  No options  No options
2708  First char = '-'  First char = '-'
2709  Need char = '-'  Need char = '-'
2710    
2711  /#/xMD  /#/IxDZ
 Memory allocation (code space): 7  
2712  ------------------------------------------------------------------  ------------------------------------------------------------------
2713    0   3 Bra 0          Bra
2714    3   3 Ket          Ket
2715    6     End          End
2716  ------------------------------------------------------------------  ------------------------------------------------------------------
2717  Capturing subpattern count = 0  Capturing subpattern count = 0
2718  Options: extended  Options: extended
2719  No first char  No first char
2720  No need char  No need char
2721    
2722  /a#/xMD  /a#/IxDZ
 Memory allocation (code space): 9  
2723  ------------------------------------------------------------------  ------------------------------------------------------------------
2724    0   5 Bra 0          Bra
2725    3     a          a
2726    5   5 Ket          Ket
2727    8     End          End
2728  ------------------------------------------------------------------  ------------------------------------------------------------------
2729  Capturing subpattern count = 0  Capturing subpattern count = 0
2730  Options: extended  Options: extended
2731  First char = 'a'  First char = 'a'
2732  No need char  No need char
2733    
2734  /[\s]/D  /[\s]/DZ
2735  ------------------------------------------------------------------  ------------------------------------------------------------------
2736    0  36 Bra 0          Bra
2737    3     [\x09\x0a\x0c\x0d ]          [\x09\x0a\x0c\x0d ]
2738   36  36 Ket          Ket
2739   39     End          End
2740  ------------------------------------------------------------------  ------------------------------------------------------------------
2741  Capturing subpattern count = 0  Capturing subpattern count = 0
2742  No options  No options
2743  No first char  No first char
2744  No need char  No need char
2745    
2746  /[\S]/D  /[\S]/DZ
2747  ------------------------------------------------------------------  ------------------------------------------------------------------
2748    0  36 Bra 0          Bra
2749    3     [\x00-\x08\x0b\x0e-\x1f!-\xff]          [\x00-\x08\x0b\x0e-\x1f!-\xff] (neg)
2750   36  36 Ket          Ket
2751   39     End          End
2752  ------------------------------------------------------------------  ------------------------------------------------------------------
2753  Capturing subpattern count = 0  Capturing subpattern count = 0
2754  No options  No options
2755  No first char  No first char
2756  No need char  No need char
2757    
2758  /a(?i)b/D  /a(?i)b/DZ
2759  ------------------------------------------------------------------  ------------------------------------------------------------------
2760    0   9 Bra 0          Bra
2761    3     a          a
2762    5  01 Opt       /i b
2763    7  NC b          Ket
2764    9   9 Ket          End
  12     End  
2765  ------------------------------------------------------------------  ------------------------------------------------------------------
2766  Capturing subpattern count = 0  Capturing subpattern count = 0
2767  No options  No options
 Case state changes  
2768  First char = 'a'  First char = 'a'
2769  Need char = 'b' (caseless)  Need char = 'b' (caseless)
2770      ab      ab
2771   0: ab   0: ab
2772      aB      aB
2773   0: aB   0: aB
2774      *** Failers      *** Failers
2775  No match  No match
2776      AB      AB
2777  No match  No match
2778    
2779  /(a(?i)b)/D  /(a(?i)b)/DZ
2780  ------------------------------------------------------------------  ------------------------------------------------------------------
2781    0  17 Bra 0          Bra
2782    3   9 Bra 1          CBra 1
2783    6     a          a
2784    8  01 Opt       /i b
2785   10  NC b          Ket
2786   12   9 Ket          Ket
2787   15  00 Opt          End
  17  17 Ket  
  20     End  
2788  ------------------------------------------------------------------  ------------------------------------------------------------------
2789  Capturing subpattern count = 1  Capturing subpattern count = 1
2790  No options  No options
 Case state changes  
2791  First char = 'a'  First char = 'a'
2792  Need char = 'b' (caseless)  Need char = 'b' (caseless)
2793      ab      ab
# Line 2770  Need char = 'b' (caseless) Line 2796  Need char = 'b' (caseless)
2796      aB      aB
2797   0: aB   0: aB
2798   1: aB   1: aB
2799      *** Failers      *** Failers
2800  No match  No match
2801      AB      AB
2802  No match  No match
2803    
2804  /   (?i)abc/xD  /   (?i)abc/IxDZ
2805  ------------------------------------------------------------------  ------------------------------------------------------------------
2806    0   9 Bra 0          Bra
2807    3  NC abc       /i abc
2808    9   9 Ket          Ket
2809   12     End          End
2810  ------------------------------------------------------------------  ------------------------------------------------------------------
2811  Capturing subpattern count = 0  Capturing subpattern count = 0
2812  Options: caseless extended  Options: caseless extended
# Line 2788  First char = 'a' (caseless) Line 2814  First char = 'a' (caseless)
2814  Need char = 'c' (caseless)  Need char = 'c' (caseless)
2815    
2816  /#this is a comment  /#this is a comment
2817    (?i)abc/xD    (?i)abc/IxDZ
2818  ------------------------------------------------------------------  ------------------------------------------------------------------
2819    0   9 Bra 0          Bra
2820    3  NC abc       /i abc
2821    9   9 Ket          Ket
2822   12     End          End
2823  ------------------------------------------------------------------  ------------------------------------------------------------------
2824  Capturing subpattern count = 0  Capturing subpattern count = 0
2825  Options: caseless extended  Options: caseless extended
2826  First char = 'a' (caseless)  First char = 'a' (caseless)
2827  Need char = 'c' (caseless)  Need char = 'c' (caseless)
2828    
2829  /123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/D  /123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/DZ
2830  ------------------------------------------------------------------  ------------------------------------------------------------------
2831    0 603 Bra 0          Bra
2832    3     123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890          123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
2833  603 603 Ket          Ket
2834  606     End          End
2835  ------------------------------------------------------------------  ------------------------------------------------------------------
2836  Capturing subpattern count = 0  Capturing subpattern count = 0
2837  No options  No options
2838  First char = '1'  First char = '1'
2839  Need char = '0'  Need char = '0'
2840    
2841  /\Q123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/D  /\Q123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/DZ
2842  ------------------------------------------------------------------  ------------------------------------------------------------------
2843    0 603 Bra 0          Bra
2844    3     123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890          123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
2845  603 603 Ket          Ket
2846  606     End          End
2847  ------------------------------------------------------------------  ------------------------------------------------------------------
2848  Capturing subpattern count = 0  Capturing subpattern count = 0
2849  No options  No options
2850  First char = '1'  First char = '1'
2851  Need char = '0'  Need char = '0'
2852    
2853  /\Q\E/D  /\Q\E/DZ
2854  ------------------------------------------------------------------  ------------------------------------------------------------------
2855    0   3 Bra 0          Bra
2856    3   3 Ket          Ket
2857    6     End          End
2858  ------------------------------------------------------------------  ------------------------------------------------------------------
2859  Capturing subpattern count = 0  Capturing subpattern count = 0
2860  No options  No options
# Line 2837  No need char Line 2863  No need char
2863      \      \
2864   0:   0:
2865    
2866  /\Q\Ex/D  /\Q\Ex/DZ
2867  ------------------------------------------------------------------  ------------------------------------------------------------------
2868    0   5 Bra 0          Bra
2869    3     x          x
2870    5   5 Ket          Ket
2871    8     End          End
2872  ------------------------------------------------------------------  ------------------------------------------------------------------
2873  Capturing subpattern count = 0  Capturing subpattern count = 0
2874  No options  No options
2875  First char = 'x'  First char = 'x'
2876  No need char  No need char
2877    
2878  / \Q\E/D  / \Q\E/DZ
2879  ------------------------------------------------------------------  ------------------------------------------------------------------
2880    0   5 Bra 0          Bra
2881    3  
2882    5   5 Ket          Ket
2883    8     End          End
2884  ------------------------------------------------------------------  ------------------------------------------------------------------
2885  Capturing subpattern count = 0  Capturing subpattern count = 0
2886  No options  No options
2887  First char = ' '  First char = ' '
2888  No need char  No need char
2889    
2890  /a\Q\E/D  /a\Q\E/DZ
2891  ------------------------------------------------------------------  ------------------------------------------------------------------
2892    0   5 Bra 0          Bra
2893    3     a          a
2894    5   5 Ket          Ket
2895    8     End          End
2896  ------------------------------------------------------------------  ------------------------------------------------------------------
2897  Capturing subpattern count = 0  Capturing subpattern count = 0
2898  No options  No options
# Line 2876  No need char Line 2902  No need char
2902   0: a   0: a
2903    bca    bca
2904   0: a   0: a
2905    bac    bac
2906   0: a   0: a
2907    
2908  /a\Q\Eb/D  /a\Q\Eb/DZ
2909  ------------------------------------------------------------------  ------------------------------------------------------------------
2910    0   7 Bra 0          Bra
2911    3     ab          ab
2912    7   7 Ket          Ket
2913   10     End          End
2914  ------------------------------------------------------------------  ------------------------------------------------------------------
2915  Capturing subpattern count = 0  Capturing subpattern count = 0
2916  No options  No options
# Line 2893  Need char = 'b' Line 2919  Need char = 'b'
2919    abc    abc
2920   0: ab   0: ab
2921    
2922  /\Q\Eabc/D  /\Q\Eabc/DZ
2923  ------------------------------------------------------------------  ------------------------------------------------------------------
2924    0   9 Bra 0          Bra
2925    3     abc          abc
2926    9   9 Ket          Ket
2927   12     End          End
2928  ------------------------------------------------------------------  ------------------------------------------------------------------
2929  Capturing subpattern count = 0  Capturing subpattern count = 0
2930  No options  No options
2931  First char = 'a'  First char = 'a'
2932  Need char = 'c'  Need char = 'c'
2933    
2934  /x*+\w/D  /x*+\w/DZ
2935  ------------------------------------------------------------------  ------------------------------------------------------------------
2936    0  12 Bra 0          Bra
2937    3   5 Once          x*+
2938    6     x*          \w
2939    8   5 Ket          Ket
2940   11     \w          End
  12  12 Ket  
  15     End  
2941  ------------------------------------------------------------------  ------------------------------------------------------------------
2942  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
2943  No options  No options
2944  No first char  No first char
2945  No need char  No need char
# Line 2924  No need char Line 2947  No need char
2947   0: F   0: F
2948      xxxxx      xxxxx
2949  No match  No match
2950    
2951  /x?+/D  /x?+/DZ
2952  ------------------------------------------------------------------  ------------------------------------------------------------------
2953    0  11 Bra 0          Bra
2954    3   5 Once          x?+
2955    6     x?          Ket
2956    8   5 Ket          End
  11  11 Ket  
  14     End  
2957  ------------------------------------------------------------------  ------------------------------------------------------------------
2958  Capturing subpattern count = 0  Capturing subpattern count = 0
2959  No options  No options
2960  No first char  No first char
2961  No need char  No need char
2962    
2963  /x++/D  /x++/DZ
2964  ------------------------------------------------------------------  ------------------------------------------------------------------
2965    0  11 Bra 0          Bra
2966    3   5 Once          x++
2967    6     x+          Ket
2968    8   5 Ket          End
  11  11 Ket  
  14     End  
2969  ------------------------------------------------------------------  ------------------------------------------------------------------
2970  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
2971  No options  No options
2972  First char = 'x'  First char = 'x'
2973  No need char  No need char
2974    
2975  /x{1,3}+/D  /x{1,3}+/DZ
2976  ------------------------------------------------------------------  ------------------------------------------------------------------
2977    0  15 Bra 0          Bra
2978    3   9 Once          Once
2979    6     x          x
2980    8     x{,2}          x{0,2}
2981   12   9 Ket          Ket
2982   15  15 Ket          Ket
2983   18     End          End
2984  ------------------------------------------------------------------  ------------------------------------------------------------------
2985  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
2986  No options  No options
2987  First char = 'x'  First char = 'x'
2988  No need char  No need char
2989    
2990  /(x)*+/D  /(x)*+/DZ
2991  ------------------------------------------------------------------  ------------------------------------------------------------------
2992    0  18 Bra 0          Bra
2993    3  12 Once          Braposzero
2994    6     Brazero          CBraPos 1
2995    7   5 Bra 1          x
2996   10     x          KetRpos
2997   12   5 KetRmax          Ket
2998   15  12 Ket          End
  18  18 Ket  
  21     End  
2999  ------------------------------------------------------------------  ------------------------------------------------------------------
3000  Capturing subpattern count = 1  Capturing subpattern count = 1
3001  No options  No options
3002  No first char  No first char
3003  No need char  No need char
3004    
3005  /^(\w++|\s++)*$/  /^(\w++|\s++)*$/I
3006  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3007  Options: anchored  Options: anchored
3008  No first char  No first char
3009  No need char  No need char
# Line 3000  No need char Line 3014  No need char
3014  No match  No match
3015      this is not a line with only words and spaces!      this is not a line with only words and spaces!
3016  No match  No match
3017    
3018  /(\d++)(\w)/  /(\d++)(\w)/I
3019  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
3020  No options  No options
3021  No first char  No first char
3022  No need char  No need char
# Line 3013  No need char Line 3026  No need char
3026   2: a   2: a
3027      *** Failers      *** Failers
3028  No match  No match
3029      12345+      12345+
3030  No match  No match
3031    
3032  /a++b/  /a++b/I
3033  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3034  No options  No options
3035  First char = 'a'  First char = 'a'
3036  Need char = 'b'  Need char = 'b'
3037      aaab      aaab
3038   0: aaab   0: aaab
3039    
3040  /(a++b)/  /(a++b)/I
3041  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3042  No options  No options
3043  First char = 'a'  First char = 'a'
3044  Need char = 'b'  Need char = 'b'
# Line 3035  Need char = 'b' Line 3046  Need char = 'b'
3046   0: aaab   0: aaab
3047   1: aaab   1: aaab
3048    
3049  /(a++)b/  /(a++)b/I
3050  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3051  No options  No options
3052  First char = 'a'  First char = 'a'
3053  Need char = 'b'  Need char = 'b'
# Line 3045  Need char = 'b' Line 3055  Need char = 'b'
3055   0: aaab   0: aaab
3056   1: aaa   1: aaa
3057    
3058  /([^()]++|\([^()]*\))+/  /([^()]++|\([^()]*\))+/I
3059  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3060  No options  No options
3061  No first char  No first char
3062  No need char  No need char
3063      ((abc(ade)ufh()()x      ((abc(ade)ufh()()x
3064   0: abc(ade)ufh()()x   0: abc(ade)ufh()()x
3065   1: x   1: x
3066    
3067  /\(([^()]++|\([^()]+\))+\)/  /\(([^()]++|\([^()]+\))+\)/I
3068  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3069  No options  No options
3070  First char = '('  First char = '('
3071  Need char = ')'  Need char = ')'
# Line 3069  Need char = ')' Line 3077  Need char = ')'
3077   1: xyz   1: xyz
3078      *** Failers      *** Failers
3079  No match  No match
3080      ((()aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa      ((()aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
3081  No match  No match
3082    
3083  /(abc){1,3}+/D  /(abc){1,3}+/DZ
3084  ------------------------------------------------------------------  ------------------------------------------------------------------
3085    0  53 Bra 0          Bra
3086    3  47 Once          Once
3087    6   9 Bra 1          CBra 1
3088    9     abc          abc
3089   15   9 Ket          Ket
3090   18     Brazero          Brazero
3091   19  28 Bra 0          Bra
3092   22   9 Bra 1          CBra 1
3093   25     abc          abc
3094   31   9 Ket          Ket
3095   34     Brazero          Brazero
3096   35   9 Bra 1          CBra 1
3097   38     abc          abc
3098   44   9 Ket          Ket
3099   47  28 Ket          Ket
3100   50  47 Ket          Ket
3101   53  53 Ket          Ket
3102   56     End          End
3103  ------------------------------------------------------------------  ------------------------------------------------------------------
3104  Capturing subpattern count = 1  Capturing subpattern count = 1
3105  No options  No options
3106  First char = 'a'  First char = 'a'
3107  Need char = 'c'  Need char = 'c'
3108    
3109  /a+?+/  /a+?+/I
3110  Failed: nothing to repeat at offset 3  Failed: nothing to repeat at offset 3
3111    
3112  /a{2,3}?+b/  /a{2,3}?+b/I
3113  Failed: nothing to repeat at offset 7  Failed: nothing to repeat at offset 7
3114    
3115  /(?U)a+?+/  /(?U)a+?+/I
3116  Failed: nothing to repeat at offset 7  Failed: nothing to repeat at offset 7
3117    
3118  /a{2,3}?+b/U  /a{2,3}?+b/IU
3119  Failed: nothing to repeat at offset 7  Failed: nothing to repeat at offset 7
3120    
3121  /x(?U)a++b/D  /x(?U)a++b/DZ
3122  ------------------------------------------------------------------  ------------------------------------------------------------------
3123    0  15 Bra 0          Bra
3124    3     x          x
3125    5   5 Once          a++
3126    8     a+          b
3127   10   5 Ket          Ket
3128   13     b          End
  15  15 Ket  
  18     End  
3129  ------------------------------------------------------------------  ------------------------------------------------------------------
3130  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3131  No options  No options
3132  First char = 'x'  First char = 'x'
3133  Need char = 'b'  Need char = 'b'
3134      xaaaab      xaaaab
3135   0: xaaaab   0: xaaaab
3136    
3137  /(?U)xa++b/D  /(?U)xa++b/DZ
3138  ------------------------------------------------------------------  ------------------------------------------------------------------
3139    0  15 Bra 0          Bra
3140    3     x          x
3141    5   5 Once          a++
3142    8     a+          b
3143   10   5 Ket          Ket
3144   13     b          End
  15  15 Ket  
  18     End  
3145  ------------------------------------------------------------------  ------------------------------------------------------------------
3146  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3147  Options: ungreedy  Options: ungreedy
3148  First char = 'x'  First char = 'x'
3149  Need char = 'b'  Need char = 'b'
3150      xaaaab      xaaaab
3151   0: xaaaab   0: xaaaab
3152    
3153  /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/D  /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/DZ
3154  ------------------------------------------------------------------  ------------------------------------------------------------------
3155    0 106 Bra 0          Bra
3156    3     ^          ^
3157    4  99 Bra 1          CBra 1
3158    7   5 Bra 2          CBra 2
3159   10     a+          a+
3160   12   5 Ket          Ket
3161   15  37 Bra 3          CBra 3
3162   18     [ab]+?          [ab]+?
3163   52  37 Ket          Ket
3164   55  37 Bra 4          CBra 4
3165   58     [bc]+          [bc]+
3166   92  37 Ket          Ket
3167   95   5 Bra 5          CBra 5
3168   98     \w*          \w*
3169  100   5 Ket          Ket
3170  103  99 Ket          Ket
3171  106 106 Ket          Ket
3172  109     End          End
3173  ------------------------------------------------------------------  ------------------------------------------------------------------
3174  Capturing subpattern count = 5  Capturing subpattern count = 5
 Partial matching not supported  
3175  Options: anchored  Options: anchored
3176  No first char  No first char
3177  No need char  No need char
3178    
3179  /^x(?U)a+b/D  /^x(?U)a+b/DZ
3180  ------------------------------------------------------------------  ------------------------------------------------------------------
3181    0  10 Bra 0          Bra
3182    3     ^          ^
3183    4     x          x
3184    6     a+?          a++
3185    8     b          b
3186   10  10 Ket          Ket
3187   13     End          End
3188  ------------------------------------------------------------------  ------------------------------------------------------------------
3189  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3190  Options: anchored  Options: anchored
3191  No first char  No first char
3192  Need char = 'b'  Need char = 'b'
3193    
3194  /^x(?U)(a+)b/D  /^x(?U)(a+)b/DZ
3195  ------------------------------------------------------------------  ------------------------------------------------------------------
3196    0  16 Bra 0          Bra
3197    3     ^          ^
3198    4     x          x
3199    6   5 Bra 1          CBra 1
3200    9     a+?          a+?
3201   11   5 Ket          Ket
3202   14     b          b
3203   16  16 Ket          Ket
3204   19     End          End
3205  ------------------------------------------------------------------  ------------------------------------------------------------------
3206  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3207  Options: anchored  Options: anchored
3208  No first char  No first char
3209  Need char = 'b'  Need char = 'b'
3210    
3211  /[.x.]/  /[.x.]/I
3212  Failed: POSIX collating elements are not supported at offset 0  Failed: POSIX collating elements are not supported at offset 0
3213    
3214  /[=x=]/  /[=x=]/I
3215  Failed: POSIX collating elements are not supported at offset 0  Failed: POSIX collating elements are not supported at offset 0
3216    
3217  /[:x:]/  /[:x:]/I
3218  Failed: POSIX named classes are supported only within a class at offset 0  Failed: POSIX named classes are supported only within a class at offset 0
3219    
3220  /\l/  /\l/I
3221  Failed: PCRE does not support \L, \l, \N, \U, or \u at offset 1  Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
3222    
3223  /\L/  /\L/I
3224  Failed: PCRE does not support \L, \l, \N, \U, or \u at offset 1  Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
3225    
3226  /\N{name}/  /\N{name}/I
3227  Failed: PCRE does not support \L, \l, \N, \U, or \u at offset 1  Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
3228    
3229  /\u/  /\u/I
3230  Failed: PCRE does not support \L, \l, \N, \U, or \u at offset 1  Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
3231    
3232  /\U/  /\U/I
3233  Failed: PCRE does not support \L, \l, \N, \U, or \u at offset 1  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  Failed: missing terminating ] for character class at offset 1
3237    
3238  /[a-/  /[a-/I
3239  Failed: missing terminating ] for character class at offset 3  Failed: missing terminating ] for character class at offset 3
3240    
3241  /[[:space:]/  /[[:space:]/I
3242  Failed: missing terminating ] for character class at offset 10  Failed: missing terminating ] for character class at offset 10
3243    
3244  /[\s]/DM  /[\s]/IDZ
 Memory allocation (code space): 40  
3245  ------------------------------------------------------------------  ------------------------------------------------------------------
3246    0  36 Bra 0          Bra
3247    3     [\x09\x0a\x0c\x0d ]          [\x09\x0a\x0c\x0d ]
3248   36  36 Ket          Ket
3249   39     End          End
3250  ------------------------------------------------------------------  ------------------------------------------------------------------
3251  Capturing subpattern count = 0  Capturing subpattern count = 0
3252  No options  No options
3253  No first char  No first char
3254  No need char  No need char
3255    
3256  /[[:space:]]/DM  /[[:space:]]/IDZ
 Memory allocation (code space): 40  
3257  ------------------------------------------------------------------  ------------------------------------------------------------------
3258    0  36 Bra 0          Bra
3259    3     [\x09-\x0d ]          [\x09-\x0d ]
3260   36  36 Ket          Ket
3261   39     End          End
3262  ------------------------------------------------------------------  ------------------------------------------------------------------
3263  Capturing subpattern count = 0  Capturing subpattern count = 0
3264  No options  No options
3265  No first char  No first char
3266  No need char  No need char
3267    
3268  /[[:space:]abcde]/DM  /[[:space:]abcde]/IDZ
 Memory allocation (code space): 40  
3269  ------------------------------------------------------------------  ------------------------------------------------------------------
3270    0  36 Bra 0          Bra
3271    3     [\x09-\x0d a-e]          [\x09-\x0d a-e]
3272   36  36 Ket          Ket
3273   39     End          End
3274  ------------------------------------------------------------------  ------------------------------------------------------------------
3275  Capturing subpattern count = 0  Capturing subpattern count = 0
3276  No options  No options
3277  No first char  No first char
3278  No need char  No need char
3279    
3280  /< (?: (?(R) \d++  | [^<>]*+) | (?R)) * >/x  /< (?: (?(R) \d++  | [^<>]*+) | (?R)) * >/Ix
3281  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3282  Options: extended  Options: extended
3283  First char = '<'  First char = '<'
3284  Need char = '>'  Need char = '>'
# Line 3295  Need char = '>' Line 3290  Need char = '>'
3290   0: <abc <123> hij>   0: <abc <123> hij>
3291      <abc <def> hij>      <abc <def> hij>
3292   0: <def>   0: <def>
3293      <abc<>def>      <abc<>def>
3294   0: <abc<>def>   0: <abc<>def>
3295      <abc<>      <abc<>
3296   0: <>   0: <>
3297      *** Failers      *** Failers
3298  No match  No match
3299      <abc      <abc
3300  No match  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|DM  |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
 Memory allocation (code space): 826  
3303  ------------------------------------------------------------------  ------------------------------------------------------------------
3304    0 822 Bra 0          Bra
3305    3     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          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  821     \b          \b
3307  822 822 Ket          Ket
3308  825     End          End
3309  ------------------------------------------------------------------  ------------------------------------------------------------------
3310  Capturing subpattern count = 0  Capturing subpattern count = 0
3311  No options  No options
3312  First char = '8'  First char = '8'
3313  Need char = 'X'  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|DM  |\$\<\.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
 Memory allocation (code space): 816  
3316  ------------------------------------------------------------------  ------------------------------------------------------------------
3317    0 812 Bra 0          Bra
3318    3     $<.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          $<.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  811     \b          \b
3320  812 812 Ket          Ket
3321  815     End          End
3322  ------------------------------------------------------------------  ------------------------------------------------------------------
3323  Capturing subpattern count = 0  Capturing subpattern count = 0
3324  No options  No options
# Line 3335  Need char = 'X' Line 3328  Need char = 'X'
3328  /(.*)\d+\1/I  /(.*)\d+\1/I
3329  Capturing subpattern count = 1  Capturing subpattern count = 1
3330  Max back reference = 1  Max back reference = 1
 Partial matching not supported  
3331  No options  No options
3332  No first char  No first char
3333  No need char  No need char
3334    
3335  /(.*)\d+/I  /(.*)\d+/I
3336  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3337  No options  No options
3338  First char at start or follows \n  First char at start or follows newline
3339  No need char  No need char
3340    
3341  /(.*)\d+\1/Is  /(.*)\d+\1/Is
3342  Capturing subpattern count = 1  Capturing subpattern count = 1
3343  Max back reference = 1  Max back reference = 1
 Partial matching not supported  
3344  Options: dotall  Options: dotall
3345  No first char  No first char
3346  No need char  No need char
3347    
3348  /(.*)\d+/Is  /(.*)\d+/Is
3349  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3350  Options: anchored dotall  Options: anchored dotall
3351  No first char  No first char
3352  No need char  No need char
# Line 3365  No need char Line 3354  No need char
3354  /(.*(xyz))\d+\2/I  /(.*(xyz))\d+\2/I
3355  Capturing subpattern count = 2  Capturing subpattern count = 2
3356  Max back reference = 2  Max back reference = 2
 Partial matching not supported  
3357  No options  No options
3358  First char at start or follows \n  First char at start or follows newline
3359  Need char = 'z'  Need char = 'z'
3360    
3361  /((.*))\d+\1/I  /((.*))\d+\1/I
3362  Capturing subpattern count = 2  Capturing subpattern count = 2
3363  Max back reference = 1  Max back reference = 1
 Partial matching not supported  
3364  No options  No options
3365  No first char  No first char
3366  No need char  No need char
# Line 3381  No need char Line 3368  No need char
3368   0: bc123bc   0: bc123bc
3369   1: bc   1: bc
3370   2: bc   2: bc
3371    
3372  /a[b]/I  /a[b]/I
3373  Capturing subpattern count = 0  Capturing subpattern count = 0
3374  No options  No options
# Line 3390  Need char = 'b' Line 3377  Need char = 'b'
3377    
3378  /(?=a).*/I  /(?=a).*/I
3379  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3380  No options  No options
3381  First char = 'a'  First char = 'a'
3382  No need char  No need char
3383    
3384  /(?=abc).xyz/iI  /(?=abc).xyz/IiI
3385  Capturing subpattern count = 0  Capturing subpattern count = 0
3386  Options: caseless  Options: caseless
3387  First char = 'a' (caseless)  First char = 'a' (caseless)
# Line 3404  Need char = 'z' (caseless) Line 3390  Need char = 'z' (caseless)
3390  /(?=abc)(?i).xyz/I  /(?=abc)(?i).xyz/I
3391  Capturing subpattern count = 0  Capturing subpattern count = 0
3392  No options  No options
 Case state changes  
3393  First char = 'a'  First char = 'a'
3394  Need char = 'z' (caseless)  Need char = 'z' (caseless)
3395    
# Line 3438  No options Line 3423  No options
3423  No first char  No first char
3424  Need char = 'a'  Need char = 'a'
3425    
3426  /(?(1)ab|ac)/I  /(?(1)ab|ac)(.)/I
3427  Capturing subpattern count = 0  Capturing subpattern count = 1
3428  No options  No options
3429  First char = 'a'  First char = 'a'
3430  No need char  No need char
3431    
3432  /(?(1)abz|acz)/I  /(?(1)abz|acz)(.)/I
3433  Capturing subpattern count = 0  Capturing subpattern count = 1
3434  No options  No options
3435  First char = 'a'  First char = 'a'
3436  Need char = 'z'  Need char = 'z'
3437    
3438  /(?(1)abz)/I  /(?(1)abz)(.)/I
3439  Capturing subpattern count = 0  Capturing subpattern count = 1
3440  No options  No options
3441  No first char  No first char
3442  No need char  No need char
3443    
3444  /(?(1)abz)123/I  /(?(1)abz)(1)23/I
3445  Capturing subpattern count = 0  Capturing subpattern count = 1
3446  No options  No options
3447  No first char  No first char
3448  Need char = '3'  Need char = '3'
# Line 3497  Capturing subpattern count = 0 Line 3482  Capturing subpattern count = 0
3482  No options  No options
3483  No first char  No first char
3484  No need char  No need char
3485    Subject length lower bound = 1
3486  Starting byte set: a b  Starting byte set: a b
3487    
3488  /[^a]/I  /[^a]/I
# Line 3516  Capturing subpattern count = 0 Line 3502  Capturing subpattern count = 0
3502  No options  No options
3503  No first char  No first char
3504  Need char = '6'  Need char = '6'
3505    Subject length lower bound = 4
3506  Starting byte set: 0 1 2 3 4 5 6 7 8 9  Starting byte set: 0 1 2 3 4 5 6 7 8 9
3507    
3508  /a^b/I  /a^b/I
# Line 3524  No options Line 3511  No options
3511  First char = 'a'  First char = 'a'
3512  Need char = 'b'  Need char = 'b'
3513    
3514  /^a/mI  /^a/Im
3515  Capturing subpattern count = 0  Capturing subpattern count = 0
3516  Options: multiline  Options: multiline
3517  First char at start or follows \n  First char at start or follows newline
3518  Need char = 'a'  Need char = 'a'
3519    abcde    abcde
3520   0: a   0: a
3521    xy\nabc    xy\nabc
3522   0: a   0: a
3523    *** Failers    *** Failers
3524  No match  No match
3525    xyabc    xyabc
3526  No match  No match
3527    
3528  /c|abc/I  /c|abc/I
# Line 3549  Capturing subpattern count = 0 Line 3536  Capturing subpattern count = 0
3536  Options: caseless  Options: caseless
3537  No first char  No first char
3538  No need char  No need char
3539    Subject length lower bound = 1
3540  Starting byte set: A B a b  Starting byte set: A B a b
3541    
3542  /[ab](?i)cd/IS  /[ab](?i)cd/IS
3543  Capturing subpattern count = 0  Capturing subpattern count = 0
3544  No options  No options
 Case state changes  
3545  No first char  No first char
3546  Need char = 'd' (caseless)  Need char = 'd' (caseless)
3547    Subject length lower bound = 3
3548  Starting byte set: a b  Starting byte set: a b
3549    
3550  /abc(?C)def/  /abc(?C)def/I
3551  Capturing subpattern count = 0  Capturing subpattern count = 0
3552  No options  No options
3553  First char = 'a'  First char = 'a'
# Line 3568  Need char = 'f' Line 3556  Need char = 'f'
3556  --->abcdef  --->abcdef
3557    0 ^  ^       d    0 ^  ^       d
3558   0: abcdef   0: abcdef
3559      1234abcdef      1234abcdef
3560  --->1234abcdef  --->1234abcdef
3561    0     ^  ^       d    0     ^  ^       d
3562   0: abcdef   0: abcdef
# Line 3576  Need char = 'f' Line 3564  Need char = 'f'
3564  No match  No match
3565      abcxyz      abcxyz
3566  No match  No match
3567      abcxyzf      abcxyzf
3568  --->abcxyzf  --->abcxyzf
3569    0 ^  ^        d    0 ^  ^        d
3570  No match  No match
3571    
3572  /abc(?C)de(?C1)f/  /abc(?C)de(?C1)f/I
3573  Capturing subpattern count = 0  Capturing subpattern count = 0
3574  No options  No options
3575  First char = 'a'  First char = 'a'
# Line 3591  Need char = 'f' Line 3579  Need char = 'f'
3579    0    ^  ^       d    0    ^  ^       d
3580    1    ^    ^     f    1    ^    ^     f
3581   0: abcdef   0: abcdef
3582    
3583  /(?C1)\dabc(?C2)def/  /(?C1)\dabc(?C2)def/I
3584  Capturing subpattern count = 0  Capturing subpattern count = 0
3585  No options  No options
3586  No first char  No first char
# Line 3607  Need char = 'f' Line 3595  Need char = 'f'
3595   0: 4abcdef   0: 4abcdef
3596      *** Failers      *** Failers
3597  No match  No match
3598      abcdef      abcdef
3599  --->abcdef  --->abcdef
3600    1 ^          \d    1 ^          \d
3601    1  ^         \d    1  ^         \d
# Line 3616  No match Line 3604  No match
3604    1     ^      \d    1     ^      \d
3605    1      ^     \d    1      ^     \d
3606  No match  No match
3607    
3608  /(?C255)ab/  /(?C255)ab/I
3609  Capturing subpattern count = 0  Capturing subpattern count = 0
3610  No options  No options
3611  First char = 'a'  First char = 'a'
3612  Need char = 'b'  Need char = 'b'
3613    
3614  /(?C256)ab/  /(?C256)ab/I
3615  Failed: number after (?C is > 255 at offset 6  Failed: number after (?C is > 255 at offset 6
3616    
3617  /(?Cab)xx/  /(?Cab)xx/I
3618  Failed: closing ) for (?C expected at offset 3  Failed: closing ) for (?C expected at offset 3
3619    
3620  /(?C12vr)x/  /(?C12vr)x/I
3621  Failed: closing ) for (?C expected at offset 5  Failed: closing ) for (?C expected at offset 5
3622    
3623  /abc(?C)def/  /abc(?C)def/I
3624  Capturing subpattern count = 0  Capturing subpattern count = 0
3625  No options  No options
3626  First char = 'a'  First char = 'a'
# Line 3644  No match Line 3632  No match
3632    0         ^  ^       d    0         ^  ^       d
3633   0: abcdef   0: abcdef
3634    
3635  /(abc)(?C)de(?C1)f/  /(abc)(?C)de(?C1)f/I
3636  Capturing subpattern count = 1  Capturing subpattern count = 1
3637  No options  No options
3638  First char = 'a'  First char = 'a'
# Line 3655  Need char = 'f' Line 3643  Need char = 'f'
3643    1    ^    ^     f    1    ^    ^     f
3644   0: abcdef   0: abcdef
3645   1: abc   1: abc
3646      123abcdef\C+      123abcdef\C+
3647  Callout 0: last capture = 1  Callout 0: last capture = 1
3648   0: <unset>   0: <unset>
3649   1: abc   1: abc
# Line 3668  Callout 1: last capture = 1 Line 3656  Callout 1: last capture = 1
3656         ^    ^     f         ^    ^     f
3657   0: abcdef   0: abcdef
3658   1: abc   1: abc
3659      123abcdef\C-      123abcdef\C-
3660   0: abcdef   0: abcdef
3661   1: abc   1: abc
3662      *** Failers      *** Failers
3663  No match  No match
3664      123abcdef\C!1      123abcdef\C!1
3665  --->123abcdef  --->123abcdef
3666    0    ^  ^       d    0    ^  ^       d
3667    1    ^    ^     f    1    ^    ^     f
3668  No match  No match
3669    
3670  /(?C0)(abc(?C1))*/  /(?C0)(abc(?C1))*/I
3671  Capturing subpattern count = 1  Capturing subpattern count = 1
3672  No options  No options
3673  No first char  No first char
# Line 3692  No need char Line 3680  No need char
3680    1 ^        ^    )    1 ^        ^    )
3681   0: abcabcabc   0: abcabcabc
3682   1: abc   1: abc
3683      abcabc\C!1!3      abcabc\C!1!3
3684  --->abcabc  --->abcabc
3685    0 ^          (abc(?C1))*    0 ^          (abc(?C1))*
3686    1 ^  ^       )    1 ^  ^       )
# Line 3703  No need char Line 3691  No need char
3691  --->*** Failers  --->*** Failers
3692    0 ^               (abc(?C1))*    0 ^               (abc(?C1))*
3693   0:   0:
3694      abcabcabc\C!1!3      abcabcabc\C!1!3
3695  --->abcabcabc  --->abcabcabc
3696    0 ^             (abc(?C1))*    0 ^             (abc(?C1))*
3697    1 ^  ^          )    1 ^  ^          )
# Line 3712  No need char Line 3700  No need char
3700   0: abcabc   0: abcabc
3701   1: abc   1: abc
3702    
3703  /(\d{3}(?C))*/  /(\d{3}(?C))*/I
3704  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3705  No options  No options
3706  No first char  No first char
3707  No need char  No need char
# Line 3737  Callout 0: last capture = 1 Line 3724  Callout 0: last capture = 1
3724      ^     ^    )      ^     ^    )
3725   0: 123456   0: 123456
3726   1: 456   1: 456
3727      123456789\C+      123456789\C+
3728  Callout 0: last capture = -1  Callout 0: last capture = -1
3729   0: <unset>   0: <unset>
3730  --->123456789  --->123456789
# Line 3755  Callout 0: last capture = 1 Line 3742  Callout 0: last capture = 1
3742   0: 123456789   0: 123456789
3743   1: 789   1: 789
3744    
3745  /((xyz)(?C)p|(?C1)xyzabc)/  /((xyz)(?C)p|(?C1)xyzabc)/I
3746  Capturing subpattern count = 2  Capturing subpattern count = 2
3747  No options  No options
3748  First char = 'x'  First char = 'x'
# Line 3774  Callout 1: last capture = -1 Line 3761  Callout 1: last capture = -1
3761   0: xyzabc   0: xyzabc
3762   1: xyzabc   1: xyzabc
3763    
3764  /(X)((xyz)(?C)p|(?C1)xyzabc)/  /(X)((xyz)(?C)p|(?C1)xyzabc)/I
3765  Capturing subpattern count = 3  Capturing subpattern count = 3
3766  No options  No options
3767  First char = 'X'  First char = 'X'
# Line 3796  Callout 1: last capture = 1 Line 3783  Callout 1: last capture = 1
3783   1: X   1: X
3784   2: xyzabc   2: xyzabc
3785    
3786  /(?=(abc))(?C)abcdef/  /(?=(abc))(?C)abcdef/I
3787  Capturing subpattern count = 1  Capturing subpattern count = 1
3788  No options  No options
3789  First char = 'a'  First char = 'a'
# Line 3809  Callout 0: last capture = 1 Line 3796  Callout 0: last capture = 1
3796      ^          a      ^          a
3797   0: abcdef   0: abcdef
3798   1: abc   1: abc
3799    
3800  /(?!(abc)(?C1)d)(?C2)abcxyz/  /(?!(abc)(?C1)d)(?C2)abcxyz/I
3801  Capturing subpattern count = 1  Capturing subpattern count = 1
3802  No options  No options
3803  First char = 'a'  First char = 'a'
3804  Need char = 'z'  Need char = 'z'
3805      abcxyz\C+      abcxyz\C+
3806  Callout 1: last capture = 1  Callout 1: last capture = 1
3807   0: <unset>   0: <unset>
3808   1: abc   1: abc
# Line 3827  Callout 2: last capture = -1 Line 3814  Callout 2: last capture = -1
3814      ^          a      ^          a
3815   0: abcxyz   0: abcxyz
3816    
3817  /(?<=(abc)(?C))xyz/  /(?<=(abc)(?C))xyz/I
3818  Capturing subpattern count = 1  Capturing subpattern count = 1
3819  No options  No options
3820  First char = 'x'  First char = 'x'
# Line 3840  Callout 0: last capture = 1 Line 3827  Callout 0: last capture = 1
3827         ^       )         ^       )
3828   0: xyz   0: xyz
3829   1: abc   1: abc
3830    
3831  /a(b+)(c*)(?C1)/  /a(b+)(c*)(?C1)/I
3832  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
3833  No options  No options
3834  First char = 'a'  First char = 'a'
3835  Need char = 'b'  Need char = 'b'
# Line 3867  Callout data = 1 Line 3853  Callout data = 1
3853  Callout data = 1  Callout data = 1
3854  No match  No match
3855    
3856  /a(b+?)(c*?)(?C1)/  /a(b+?)(c*?)(?C1)/I
3857  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
3858  No options  No options
3859  First char = 'a'  First char = 'a'
3860  Need char = 'b'  Need char = 'b'
# Line 3892  Callout data = 1 Line 3877  Callout data = 1
3877    1 ^        ^    1 ^        ^
3878  Callout data = 1  Callout data = 1
3879  No match  No match
3880    
3881  /(?C)abc/  /(?C)abc/I
3882  Capturing subpattern count = 0  Capturing subpattern count = 0
3883  No options  No options
3884  First char = 'a'  First char = 'a'
3885  Need char = 'c'  Need char = 'c'
3886    
3887  /(?C)^abc/  /(?C)^abc/I
3888  Capturing subpattern count = 0  Capturing subpattern count = 0
3889  Options: anchored  Options: anchored
3890  No first char  No first char
3891  No need char  No need char
3892    
3893  /(?C)a|b/S  /(?C)a|b/IS
3894  Capturing subpattern count = 0  Capturing subpattern count = 0
3895  No options  No options
3896  No first char  No first char
3897  No need char  No need char
3898    Subject length lower bound = 1
3899  Starting byte set: a b  Starting byte set: a b
3900    
3901  /(?R)/  /(?R)/I
3902  Failed: recursive call could loop indefinitely at offset 3  Failed: recursive call could loop indefinitely at offset 3
3903    
3904  /(a|(?R))/  /(a|(?R))/I
3905  Failed: recursive call could loop indefinitely at offset 6  Failed: recursive call could loop indefinitely at offset 6
3906    
3907  /(ab|(bc|(de|(?R))))/  /(ab|(bc|(de|(?R))))/I
3908  Failed: recursive call could loop indefinitely at offset 15  Failed: recursive call could loop indefinitely at offset 15
3909    
3910  /x(ab|(bc|(de|(?R))))/  /x(ab|(bc|(de|(?R))))/I
3911  Capturing subpattern count = 3  Capturing subpattern count = 3
3912  No options  No options
3913  First char = 'x'  First char = 'x'
# Line 3950  No need char Line 3936  No need char
3936   3: xxab   3: xxab
3937      *** Failers      *** Failers
3938  No match  No match
3939      xyab      xyab
3940  No match  No match
3941    
3942  /(ab|(bc|(de|(?1))))/  /(ab|(bc|(de|(?1))))/I
3943  Failed: recursive call could loop indefinitely at offset 15  Failed: recursive call could loop indefinitely at offset 15
3944    
3945  /x(ab|(bc|(de|(?1)x)x)x)/  /x(ab|(bc|(de|(?1)x)x)x)/I
3946  Failed: recursive call could loop indefinitely at offset 16  Failed: recursive call could loop indefinitely at offset 16
3947    
3948  /^([^()]|\((?1)*\))*$/  /^([^()]|\((?1)*\))*$/I
3949  Capturing subpattern count = 1  Capturing subpattern count = 1
3950  Options: anchored  Options: anchored
3951  No first char  No first char
# Line 3970  No need char Line 3956  No need char
3956      a(b)c      a(b)c
3957   0: a(b)c   0: a(b)c
3958   1: c   1: c
3959      a(b(c))d      a(b(c))d
3960   0: a(b(c))d   0: a(b(c))d
3961   1: d   1: d
3962      *** Failers)      *** Failers)
3963  No match  No match
3964      a(b(c)d      a(b(c)d
3965  No match  No match
3966    
3967  /^>abc>([^()]|\((?1)*\))*<xyz<$/  /^>abc>([^()]|\((?1)*\))*<xyz<$/I
3968  Capturing subpattern count = 1  Capturing subpattern count = 1
3969  Options: anchored  Options: anchored
3970  No first char  No first char
# Line 3993  Need char = '<' Line 3979  Need char = '<'
3979   0: >abc>(1(2)3)<xyz<   0: >abc>(1(2)3)<xyz<
3980   1: (1(2)3)   1: (1(2)3)
3981    
3982  /(a(?1)b)/D  /(a(?1)b)/DZ
3983  ------------------------------------------------------------------  ------------------------------------------------------------------
3984    0  16 Bra 0          Bra
3985    3  10 Bra 1          CBra 1
3986    6     a          a
3987    8   3 Recurse          Once
3988   11     b          Recurse
3989   13  10 Ket          Ket
3990   16  16 Ket          b
3991   19     End          Ket
3992            Ket
3993            End
3994  ------------------------------------------------------------------  ------------------------------------------------------------------
3995  Capturing subpattern count = 1  Capturing subpattern count = 1
3996  No options  No options
3997  First char = 'a'  First char = 'a'
3998  Need char = 'b'  Need char = 'b'
3999    
4000  /(a(?1)+b)/D  /(a(?1)+b)/DZ
4001  ------------------------------------------------------------------  ------------------------------------------------------------------
4002    0  22 Bra 0          Bra
4003    3  16 Bra 1          CBra 1
4004    6     a          a
4005    8   6 Bra 0          Once
4006   11   3 Recurse          Recurse
4007   14   6 KetRmax          KetRmax
4008   17     b          b
4009   19  16 Ket          Ket
4010   22  22 Ket          Ket
4011   25     End          End
4012  ------------------------------------------------------------------  ------------------------------------------------------------------
4013  Capturing subpattern count = 1  Capturing subpattern count = 1
4014  No options  No options
4015  First char = 'a'  First char = 'a'
4016  Need char = 'b'  Need char = 'b'
4017    
4018  /^\W*(?:((.)\W*(?1)\W*\2|)|((.)\W*(?3)\W*\4|\W*.\W*))\W*$/i  /^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/I
 Capturing subpattern count = 4  
 Max back reference = 4  
 Partial matching not supported  
 Options: anchored caseless  
 No first char  
 No need char  
     1221  
  0: 1221  
  1: 1221  
  2: 1  
     Satan, oscillate my metallic sonatas!  
  0: Satan, oscillate my metallic sonatas!  
  1: <unset>  
  2: <unset>  
  3: Satan, oscillate my metallic sonatas  
  4: S  
     A man, a plan, a canal: Panama!  
  0: A man, a plan, a canal: Panama!  
  1: <unset>  
  2: <unset>  
  3: A man, a plan, a canal: Panama  
  4: A  
     Able was I ere I saw Elba.  
  0: Able was I ere I saw Elba.  
  1: <unset>  
  2: <unset>  
  3: Able was I ere I saw Elba  
  4: A  
     *** Failers  
 No match  
     The quick brown fox  
 No match  
   
 /^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/  
4019  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
4020  Options: anchored  Options: anchored
4021  No first char  No first char
4022  No need char  No need char
# Line 4081  No need char Line 4034  No need char
4034  No match  No match
4035      ((2+2)*-3)-7)      ((2+2)*-3)-7)
4036  No match  No match
4037    
4038  /^(x(y|(?1){2})z)/  /^(x(y|(?1){2})z)/I
4039  Capturing subpattern count = 2  Capturing subpattern count = 2
4040  Options: anchored  Options: anchored
4041  No first char  No first char
# Line 4091  No need char Line 4044  No need char
4044   0: xyz   0: xyz
4045   1: xyz   1: xyz
4046   2: y   2: y
4047      xxyzxyzz      xxyzxyzz
4048   0: xxyzxyzz   0: xxyzxyzz
4049   1: xxyzxyzz   1: xxyzxyzz
4050   2: xyzxyz   2: xyzxyz
# Line 4099  No need char Line 4052  No need char
4052  No match  No match
4053      xxyzz      xxyzz
4054  No match  No match
4055      xxyzxyzxyzz      xxyzxyzxyzz
4056  No match  No match
4057    
4058  /((< (?: (?(R) \d++  | [^<>]*+) | (?2)) * >))/x  /((< (?: (?(R) \d++  | [^<>]*+) | (?2)) * >))/Ix
4059  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
4060  Options: extended  Options: extended
4061  First char = '<'  First char = '<'
4062  Need char = '>'  Need char = '>'
# Line 4124  Need char = '>' Line 4076  Need char = '>'
4076   0: <def>   0: <def>
4077   1: <def>   1: <def>
4078   2: <def>   2: <def>
4079      <abc<>def>      <abc<>def>
4080   0: <abc<>def>   0: <abc<>def>
4081   1: <abc<>def>   1: <abc<>def>
4082   2: <abc<>def>   2: <abc<>def>
4083      <abc<>      <abc<>
4084   0: <>   0: <>
4085   1: <>   1: <>
4086   2: <>   2: <>
# Line 4137  No match Line 4089  No match
4089      <abc      <abc
4090  No match  No match
4091    
4092  /(?1)/  /(?1)/I
4093  Failed: reference to non-existent subpattern at offset 3  Failed: reference to non-existent subpattern at offset 3
4094    
4095  /((?2)(abc)/  /((?2)(abc)/I
4096  Failed: reference to non-existent subpattern at offset 4  Failed: missing ) at offset 10
4097    
4098  /^(abc)def(?1)/  /^(abc)def(?1)/I
4099  Capturing subpattern count = 1  Capturing subpattern count = 1
4100  Options: anchored  Options: anchored
4101  No first char  No first char
# Line 4152  No need char Line 4104  No need char
4104   0: abcdefabc   0: abcdefabc
4105   1: abc   1: abc
4106    
4107  /^(a|b|c)=(?1)+/  /^(a|b|c)=(?1)+/I
4108  Capturing subpattern count = 1  Capturing subpattern count = 1
4109  Options: anchored  Options: anchored
4110  No first char  No first char
# Line 4163  No need char Line 4115  No need char
4115      a=b      a=b
4116   0: a=b   0: a=b
4117   1: a   1: a
4118      a=bc      a=bc
4119   0: a=bc   0: a=bc
4120   1: a   1: a
4121    
4122  /^(a|b|c)=((?1))+/  /^(a|b|c)=((?1))+/I
4123  Capturing subpattern count = 2  Capturing subpattern count = 2
4124  Options: anchored  Options: anchored
4125  No first char  No first char
# Line 4180  No need char Line 4132  No need char
4132   0: a=b   0: a=b
4133   1: a   1: a
4134   2: b   2: b
4135      a=bc      a=bc
4136   0: a=bc   0: a=bc
4137   1: a   1: a
4138   2: c   2: c
4139    
4140  /a(?P<name1>b|c)d(?P<longername2>e)/D  /a(?P<name1>b|c)d(?P<longername2>e)/DZ
4141  ------------------------------------------------------------------  ------------------------------------------------------------------
4142    0  28 Bra 0          Bra
4143    3     a          a
4144    5   5 Bra 1          CBra 1
4145    8     b          b
4146   10   5 Alt          Alt
4147   13     c          c
4148   15  10 Ket          Ket
4149   18     d          d
4150   20   5 Bra 2          CBra 2
4151   23     e          e
4152   25   5 Ket          Ket
4153   28  28 Ket          Ket
4154   31     End          End
4155  ------------------------------------------------------------------  ------------------------------------------------------------------
4156  Capturing subpattern count = 2  Capturing subpattern count = 2
4157  Named capturing subpatterns:  Named capturing subpatterns:
# Line 4212  Need char = 'e' Line 4164  Need char = 'e'
4164   0: abde   0: abde
4165   1: b   1: b
4166   2: e   2: e
4167      acde      acde
4168   0: acde   0: acde
4169   1: c   1: c
4170   2: e   2: e
4171    
4172  /(?:a(?P<c>c(?P<d>d)))(?P<a>a)/D  /(?:a(?P<c>c(?P<d>d)))(?P<a>a)/DZ
4173  ------------------------------------------------------------------  ------------------------------------------------------------------
4174    0  35 Bra 0          Bra
4175    3  21 Bra 0          Bra
4176    6     a          a
4177    8  13 Bra 1          CBra 1
4178   11     c          c
4179   13   5 Bra 2          CBra 2
4180   16     d          d
4181   18   5 Ket          Ket
4182   21  13 Ket          Ket
4183   24  21 Ket          Ket
4184   27   5 Bra 3          CBra 3
4185   30     a          a
4186   32   5 Ket          Ket
4187   35  35 Ket          Ket
4188   38     End          End
4189  ------------------------------------------------------------------  ------------------------------------------------------------------
4190  Capturing subpattern count = 3  Capturing subpattern count = 3
4191  Named capturing subpatterns:  Named capturing subpatterns:
# Line 4244  No options Line 4196  No options
4196  First char = 'a'  First char = 'a'
4197  Need char = 'a'  Need char = 'a'
4198    
4199  /(?P<a>a)...(?P=a)bbb(?P>a)d/D  /(?P<a>a)...(?P=a)bbb(?P>a)d/DZ
4200  ------------------------------------------------------------------  ------------------------------------------------------------------
4201    0  28 Bra 0          Bra
4202    3   5 Bra 1          CBra 1
4203    6     a          a
4204    8   5 Ket          Ket
4205   11     Any          Any
4206   12     Any          Any
4207   13     Any          Any
4208   14     \1          \1
4209   17     bbb          bbb
4210   23   3 Recurse          Once
4211   26     d          Recurse
4212   28  28 Ket          Ket
4213   31     End          d
4214            Ket
4215            End
4216  ------------------------------------------------------------------  ------------------------------------------------------------------
4217  Capturing subpattern count = 1  Capturing subpattern count = 1
4218  Max back reference = 1  Max back reference = 1
# Line 4268  No options Line 4222  No options
4222  First char = 'a'  First char = 'a'
4223  Need char = 'd'  Need char = 'd'
4224    
4225  /^\W*(?:(?P<one>(?P<two>.)\W*(?P>one)\W*(?P=two)|)|(?P<three>(?P<four>.)\W*(?P>three)\W*(?P=four)|\W*.\W*))\W*$/i  /^\W*(?:(?P<one>(?P<two>.)\W*(?P>one)\W*(?P=two)|)|(?P<three>(?P<four>.)\W*(?P>three)\W*(?P=four)|\W*.\W*))\W*$/Ii
4226  Capturing subpattern count = 4  Capturing subpattern count = 4
4227  Max back reference = 4  Max back reference = 4
4228  Named capturing subpatterns:  Named capturing subpatterns:
# Line 4276  Named capturing subpatterns: Line 4230  Named capturing subpatterns:
4230    one     1    one     1
4231    three   3    three   3
4232    two     2    two     2
 Partial matching not supported  
4233  Options: anchored caseless  Options: anchore