/[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 353 by ph10, Mon Jul 7 15:44:24 2008 UTC revision 602 by ph10, Wed May 25 08:29:03 2011 UTC
# Line 1  Line 1 
1    /-- 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|/I  /(a)b|/I
13  Capturing subpattern count = 1  Capturing subpattern count = 1
14  No options  No options
# Line 40  No match Line 51  No match
51    
52  /a+bc/I  /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/I  /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/I  /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)/I  /(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
# Line 96  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 113  Failed: unrecognized character after (? Line 150  Failed: unrecognized character after (?
150    
151  /.*b/I  /.*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 newline  First char at start or follows newline
155  Need char = 'b'  Need char = 'b'
156    
157  /.*?b/I  /.*?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 newline  First char at start or follows newline
161  Need char = 'b'  Need char = 'b'
# Line 140  Capturing subpattern count = 0 Line 175  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
# Line 151  Capturing subpattern count = 0 Line 187  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
# Line 162  Capturing subpattern count = 0 Line 199  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])/IS  /(a|[^\dZ])/IS
# Line 169  Capturing subpattern count = 1 Line 207  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 189  Capturing subpattern count = 1 Line 228  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 324  No need char Line 364  No need char
364    
365  /.*((abc)$|(def))/I  /.*((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 newline  First char at start or follows newline
369  No need char  No need char
# Line 338  No need char Line 377  No need char
377   2: <unset>   2: <unset>
378   3: def   3: def
379    
380  /abc/IP  /abc/P
381      abc      abc
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/IP  /^abc|def/P
387      abcdef      abcdef
388   0: abc   0: abc
389      abcdef\B      abcdef\B
390   0: def   0: def
391    
392  /.*((abc)$|(def))/IP  /.*((abc)$|(def))/P
393      defabc      defabc
394   0: defabc   0: defabc
395   1: abc   1: abc
# Line 360  No match: POSIX code 17: match failed Line 399  No match: POSIX code 17: match failed
399   1: def   1: def
400   3: def   3: def
401    
402  /the quick brown fox/IP  /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
# Line 368  No match: POSIX code 17: match failed Line 407  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/IPi  /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/IP  /abc.def/P
417      *** Failers      *** Failers
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$/IP  /abc$/P
423      abc      abc
424   0: abc   0: abc
425      abc\n      abc\n
426   0: abc   0: abc
427    
428  /(abc)\2/IP  /(abc)\2/P
429  Failed: POSIX code 15: bad back reference at offset 7  Failed: POSIX code 15: bad back reference at offset 7
430    
431  /(abc\1)/IP  /(abc\1)/P
432      abc      abc
433  No match: POSIX code 17: match failed  No match: POSIX code 17: match failed
434    
# Line 401  Failed: missing terminating ] for charac Line 440  Failed: missing terminating ] for charac
440    
441  /[^aeiou ]{3,}/I  /[^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
# Line 410  No need char Line 448  No need char
448    
449  /<.*>/I  /<.*>/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 = '>'
# Line 419  Need char = '>' Line 456  Need char = '>'
456    
457  /<.*?>/I  /<.*?>/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 = '>'
# Line 428  Need char = '>' Line 464  Need char = '>'
464    
465  /<.*>/IU  /<.*>/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 = '>'
# Line 437  Need char = '>' Line 472  Need char = '>'
472    
473  /(?U)<.*>/I  /(?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 = '>'
# Line 446  Need char = '>' Line 480  Need char = '>'
480    
481  /<.*?>/IU  /<.*?>/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 = '>'
# Line 455  Need char = '>' Line 488  Need char = '>'
488    
489  /={3,}/IU  /={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 = '='
# Line 464  Need char = '=' Line 496  Need char = '='
496    
497  /(?U)={3,}?/I  /(?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 = '='
# Line 522  No need char Line 553  No need char
553    
554  /(?s).*/I  /(?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
# Line 532  Capturing subpattern count = 0 Line 562  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]/IS  /(?i)[abcd]/IS
# Line 539  Capturing subpattern count = 0 Line 570  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)/IS  /(?m)[xy]|(b|c)/IS
# Line 546  Capturing subpattern count = 1 Line 578  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)/Im  /(^a|^b)/Im
# Line 584  Failed: syntax error in subpattern name Line 617  Failed: syntax error in subpattern name
617  /((?s)blah)\s+\1/I  /((?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'
# Line 592  Need char = 'h' Line 624  Need char = 'h'
624  /((?i)blah)\s+\1/I  /((?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
628  First char = 'b' (caseless)  First char = 'b' (caseless)
629  Need char = 'h' (caseless)  Need char = 'h' (caseless)
# Line 601  Need char = 'h' (caseless) Line 632  Need char = 'h' (caseless)
632  ------------------------------------------------------------------  ------------------------------------------------------------------
633          Bra          Bra
634          CBra 1          CBra 1
635       01 Opt       /i b
      NC b  
636          Ket          Ket
      00 Opt  
637          Ket          Ket
638          End          End
639  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 612  Capturing subpattern count = 1 Line 641  Capturing subpattern count = 1
641  No options  No options
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))/IS  /(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
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$/I  /a$/I
# Line 668  Need char = 'c' Line 698  Need char = 'c'
698    
699  /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/I  /^((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 685  Capturing subpattern count = 0 Line 714  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)/IS  /(?<!foo)(alpha|omega)/IS
# Line 692  Capturing subpattern count = 1 Line 722  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]/IS  /(?!alphabet)[ab]/IS
# Line 699  Capturing subpattern count = 0 Line 730  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/Im  /(?<=foo\n)^bar/Im
# Line 784  No need char Line 816  No need char
816    
817  /(?>.*)(?<=(abcd)|(xyz))/I  /(?>.*)(?<=(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 newline  First char at start or follows newline
821  No need char  No need char
# Line 854  No match Line 885  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/I  /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'
# Line 866  Max back reference = 1 Line 897  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
904   1: aa  
905    /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  /These are syntax tests from Perl 5.005/I
930  Capturing subpattern count = 0  Capturing subpattern count = 0
# Line 1003  copy substring 5 failed -7 Line 1059  copy substring 5 failed -7
1059    
1060  /(.{20})/I  /(.{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 1021  No need char Line 1076  No need char
1076    
1077  /(.{15})/I  /(.{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 1036  No need char Line 1090  No need char
1090    
1091  /(.{16})/I  /(.{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 1103  No need char Line 1156  No need char
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/I  )?)?)?)?)?)?)?)?)?otherword/I
1158  Capturing subpattern count = 8  Capturing subpattern count = 8
 Partial matching not supported  
1159  Contains explicit CR or LF match  Contains explicit CR or LF match
1160  No options  No options
1161  First char = 'w'  First char = 'w'
# Line 1118  Need char = 'd' Line 1170  Need char = 'd'
1170          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 newline  First char at start or follows newline
1175  Need char = 'X'  Need char = 'X'
# Line 1132  Need char = 'X' Line 1183  Need char = 'X'
1183          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'
# Line 1151  Need char = 'X' Line 1201  Need char = 'X'
1201          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 newline  First char at start or follows newline
1206  No need char  No need char
# Line 1170  No need char Line 1219  No need char
1219          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
# Line 1189  No need char Line 1237  No need char
1237          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
# Line 1198  No need char Line 1245  No need char
1245  ------------------------------------------------------------------  ------------------------------------------------------------------
1246          Bra          Bra
1247          Bra          Bra
      04 Opt  
1248          AllAny*          AllAny*
1249          X          X
1250          Alt          Alt
      04 Opt  
1251          ^          ^
1252          B          B
1253          Ket          Ket
      00 Opt  
1254          Ket          Ket
1255          End          End
1256  ------------------------------------------------------------------  ------------------------------------------------------------------
1257  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1258  Options: anchored  Options: anchored
1259  No first char  No first char
1260  No need char  No need char
# Line 1296  No need char Line 1339  No need char
1339    
1340  /.*iss/Ig+  /.*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 newline  First char at start or follows newline
1344  Need char = 's'  Need char = 's'
# Line 1399  Need char = 'c' Line 1441  Need char = 'c'
1441    
1442  /a*/I  /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+/I  /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+)/I  /(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}/I  /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,}/I  /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  /"([^\\"]+|\\.)*"/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 = '"'
# Line 1489  Need char = 'b' Line 1525  Need char = 'b'
1525    
1526  /abc*/I  /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*/I  /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*/I  /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*/I  /.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*/I  /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*)/I  /(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/I  /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/I  /.+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.*/I  /(?=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.*/I  /(?=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
# Line 1565  No need char Line 1591  No need char
1591    
1592  /a\d*/I  /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*/I  /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'
# Line 1591  Need char = 'd' Line 1615  Need char = 'd'
1615    
1616  /ab\d+/I  /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'
# Line 1666  No need char Line 1689  No need char
1689      \Nabc      \Nabc
1690  No match  No match
1691    
1692  /a*(b+)(z)(z)/IP  /a*(b+)(z)(z)/P
1693      aaaabbbbzzzz      aaaabbbbzzzz
1694   0: aaaabbbbzz   0: aaaabbbbzz
1695   1: bbbb   1: bbbb
# Line 1698  Capturing subpattern count = 0 Line 1721  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 1709  Study returned NULL Line 1733  Study returned NULL
1733    \)            # Closing )    \)            # Closing )
1734    /Ix    /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 1738  No match Line 1761  No match
1761    
1762  /\(  ( (?>[^()]+) | (?R) )* \) /Ixg  /\(  ( (?>[^()]+) | (?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 = ')'
# Line 1753  Need char = ')' Line 1775  Need char = ')'
1775    
1776  /\(  (?: (?>[^()]+) | (?R) ) \) /Ix  /\(  (?: (?>[^()]+) | (?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 1772  No match Line 1793  No match
1793    
1794  /\(  (?: (?>[^()]+) | (?R) )? \) /Ix  /\(  (?: (?>[^()]+) | (?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 1783  Need char = ')' Line 1803  Need char = ')'
1803    
1804  /\(  ( (?>[^()]+) | (?R) )* \) /Ix  /\(  ( (?>[^()]+) | (?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 1793  Need char = ')' Line 1812  Need char = ')'
1812    
1813  /\( ( ( (?>[^()]+) | (?R) )* ) \) /Ix  /\( ( ( (?>[^()]+) | (?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 1804  Need char = ')' Line 1822  Need char = ')'
1822    
1823  /\( (123)? ( ( (?>[^()]+) | (?R) )* ) \) /Ix  /\( (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 1821  Need char = ')' Line 1838  Need char = ')'
1838    
1839  /\( ( (123)? ( (?>[^()]+) | (?R) )* ) \) /Ix  /\( ( (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 1838  Need char = ')' Line 1854  Need char = ')'
1854    
1855  /\( (((((((((( ( (?>[^()]+) | (?R) )* )))))))))) \) /Ix  /\( (((((((((( ( (?>[^()]+) | (?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 1858  Need char = ')' Line 1873  Need char = ')'
1873    
1874  /\( ( ( (?>[^()<>]+) | ((?>[^()]+)) | (?R) )* ) \) /Ix  /\( ( ( (?>[^()<>]+) | ((?>[^()]+)) | (?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 1866  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)) )* ) \) /Ix  /\( ( ( (?>[^()]+) | ((?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 1942  Capturing subpattern count = 0 Line 1954  Capturing subpattern count = 0
1954  No options  No options
1955  No first char  No first char
1956  No need char  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  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    _ 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    
# Line 2003  Contains explicit CR or LF match Line 2016  Contains explicit CR or LF match
2016  No options  No options
2017  No first char  No first char
2018  No need char  No need char
2019    Subject length lower bound = 1
2020  Starting byte set: \x09 \x0a \x0b \x0c \x0d \x20  Starting byte set: \x09 \x0a \x0b \x0c \x0d \x20
2021    
2022  /^[[:cntrl:]]/DZ  /^[[:cntrl:]]/DZ
# Line 2249  Need char = 'd' Line 2263  Need char = 'd'
2263  /(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\w+)\s+(\270)/I  /(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\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 2746  No need char Line 2759  No need char
2759  ------------------------------------------------------------------  ------------------------------------------------------------------
2760          Bra          Bra
2761          a          a
2762       01 Opt       /i b
      NC b  
2763          Ket          Ket
2764          End          End
2765  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 2769  No match Line 2781  No match
2781          Bra          Bra
2782          CBra 1          CBra 1
2783          a          a
2784       01 Opt       /i b
      NC b  
2785          Ket          Ket
      00 Opt  
2786          Ket          Ket
2787          End          End
2788  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 2794  No match Line 2804  No match
2804  /   (?i)abc/IxDZ  /   (?i)abc/IxDZ
2805  ------------------------------------------------------------------  ------------------------------------------------------------------
2806          Bra          Bra
2807       NC abc       /i abc
2808          Ket          Ket
2809          End          End
2810  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 2807  Need char = 'c' (caseless) Line 2817  Need char = 'c' (caseless)
2817    (?i)abc/IxDZ    (?i)abc/IxDZ
2818  ------------------------------------------------------------------  ------------------------------------------------------------------
2819          Bra          Bra
2820       NC abc       /i abc
2821          Ket          Ket
2822          End          End
2823  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 2930  Need char = 'c' Line 2940  Need char = 'c'
2940          End          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 2959  No need char Line 2968  No need char
2968          End          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
# Line 2975  No need char Line 2983  No need char
2983          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
# Line 2999  No need char Line 3006  No need char
3006    
3007  /^(\w++|\s++)*$/I  /^(\w++|\s++)*$/I
3008  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3009  Options: anchored  Options: anchored
3010  No first char  No first char
3011  No need char  No need char
# Line 3013  No match Line 3019  No match
3019    
3020  /(\d++)(\w)/I  /(\d++)(\w)/I
3021  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
3022  No options  No options
3023  No first char  No first char
3024  No need char  No need char
# Line 3028  No match Line 3033  No match
3033    
3034  /a++b/I  /a++b/I
3035  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3036  No options  No options
3037  First char = 'a'  First char = 'a'
3038  Need char = 'b'  Need char = 'b'
# Line 3037  Need char = 'b' Line 3041  Need char = 'b'
3041    
3042  /(a++b)/I  /(a++b)/I
3043  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3044  No options  No options
3045  First char = 'a'  First char = 'a'
3046  Need char = 'b'  Need char = 'b'
# Line 3047  Need char = 'b' Line 3050  Need char = 'b'
3050    
3051  /(a++)b/I  /(a++)b/I
3052  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3053  No options  No options
3054  First char = 'a'  First char = 'a'
3055  Need char = 'b'  Need char = 'b'
# Line 3057  Need char = 'b' Line 3059  Need char = 'b'
3059    
3060  /([^()]++|\([^()]*\))+/I  /([^()]++|\([^()]*\))+/I
3061  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3062  No options  No options
3063  No first char  No first char
3064  No need char  No need char
# Line 3067  No need char Line 3068  No need char
3068    
3069  /\(([^()]++|\([^()]+\))+\)/I  /\(([^()]++|\([^()]+\))+\)/I
3070  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3071  No options  No options
3072  First char = '('  First char = '('
3073  Need char = ')'  Need char = ')'
# Line 3130  Failed: nothing to repeat at offset 7 Line 3130  Failed: nothing to repeat at offset 7
3130          End          End
3131  ------------------------------------------------------------------  ------------------------------------------------------------------
3132  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3133  No options  No options
3134  First char = 'x'  First char = 'x'
3135  Need char = 'b'  Need char = 'b'
# Line 3147  Need char = 'b' Line 3146  Need char = 'b'
3146          End          End
3147  ------------------------------------------------------------------  ------------------------------------------------------------------
3148  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3149  Options: ungreedy  Options: ungreedy
3150  First char = 'x'  First char = 'x'
3151  Need char = 'b'  Need char = 'b'
# Line 3176  Need char = 'b' Line 3174  Need char = 'b'
3174          End          End
3175  ------------------------------------------------------------------  ------------------------------------------------------------------
3176  Capturing subpattern count = 5  Capturing subpattern count = 5
 Partial matching not supported  
3177  Options: anchored  Options: anchored
3178  No first char  No first char
3179  No need char  No need char
# Line 3192  No need char Line 3189  No need char
3189          End          End
3190  ------------------------------------------------------------------  ------------------------------------------------------------------
3191  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3192  Options: anchored  Options: anchored
3193  No first char  No first char
3194  Need char = 'b'  Need char = 'b'
# Line 3210  Need char = 'b' Line 3206  Need char = 'b'
3206          End          End
3207  ------------------------------------------------------------------  ------------------------------------------------------------------
3208  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3209  Options: anchored  Options: anchored
3210  No first char  No first char
3211  Need char = 'b'  Need char = 'b'
# Line 3225  Failed: POSIX collating elements are not Line 3220  Failed: POSIX collating elements are not
3220  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
3221    
3222  /\l/I  /\l/I
3223  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
3224    
3225  /\L/I  /\L/I
3226  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
3227    
3228  /\N{name}/I  /\N{name}/I
3229  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
3230    
3231  /\u/I  /\u/I
3232  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
3233    
3234  /\U/I  /\U/I
3235  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
3236    
3237  /[/I  /[/I
3238  Failed: missing terminating ] for character class at offset 1  Failed: missing terminating ] for character class at offset 1
# Line 3286  No need char Line 3281  No need char
3281    
3282  /< (?: (?(R) \d++  | [^<>]*+) | (?R)) * >/Ix  /< (?: (?(R) \d++  | [^<>]*+) | (?R)) * >/Ix
3283  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3284  Options: extended  Options: extended
3285  First char = '<'  First char = '<'
3286  Need char = '>'  Need char = '>'
# Line 3336  Need char = 'X' Line 3330  Need char = 'X'
3330  /(.*)\d+\1/I  /(.*)\d+\1/I
3331  Capturing subpattern count = 1  Capturing subpattern count = 1
3332  Max back reference = 1  Max back reference = 1
 Partial matching not supported  
3333  No options  No options
3334  No first char  No first char
3335  No need char  No need char
3336    
3337  /(.*)\d+/I  /(.*)\d+/I
3338  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3339  No options  No options
3340  First char at start or follows newline  First char at start or follows newline
3341  No need char  No need char
# Line 3351  No need char Line 3343  No need char
3343  /(.*)\d+\1/Is  /(.*)\d+\1/Is
3344  Capturing subpattern count = 1  Capturing subpattern count = 1
3345  Max back reference = 1  Max back reference = 1
 Partial matching not supported  
3346  Options: dotall  Options: dotall
3347  No first char  No first char
3348  No need char  No need char
3349    
3350  /(.*)\d+/Is  /(.*)\d+/Is
3351  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3352  Options: anchored dotall  Options: anchored dotall
3353  No first char  No first char
3354  No need char  No need char
# Line 3366  No need char Line 3356  No need char
3356  /(.*(xyz))\d+\2/I  /(.*(xyz))\d+\2/I
3357  Capturing subpattern count = 2  Capturing subpattern count = 2
3358  Max back reference = 2  Max back reference = 2
 Partial matching not supported  
3359  No options  No options
3360  First char at start or follows newline  First char at start or follows newline
3361  Need char = 'z'  Need char = 'z'
# Line 3374  Need char = 'z' Line 3363  Need char = 'z'
3363  /((.*))\d+\1/I  /((.*))\d+\1/I
3364  Capturing subpattern count = 2  Capturing subpattern count = 2
3365  Max back reference = 1  Max back reference = 1
 Partial matching not supported  
3366  No options  No options
3367  No first char  No first char
3368  No need char  No need char
# Line 3391  Need char = 'b' Line 3379  Need char = 'b'
3379    
3380  /(?=a).*/I  /(?=a).*/I
3381  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3382  No options  No options
3383  First char = 'a'  First char = 'a'
3384  No need char  No need char
# Line 3497  Capturing subpattern count = 0 Line 3484  Capturing subpattern count = 0
3484  No options  No options
3485  No first char  No first char
3486  No need char  No need char
3487    Subject length lower bound = 1
3488  Starting byte set: a b  Starting byte set: a b
3489    
3490  /[^a]/I  /[^a]/I
# Line 3516  Capturing subpattern count = 0 Line 3504  Capturing subpattern count = 0
3504  No options  No options
3505  No first char  No first char
3506  Need char = '6'  Need char = '6'
3507    Subject length lower bound = 4
3508  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
3509    
3510  /a^b/I  /a^b/I
# Line 3549  Capturing subpattern count = 0 Line 3538  Capturing subpattern count = 0
3538  Options: caseless  Options: caseless
3539  No first char  No first char
3540  No need char  No need char
3541    Subject length lower bound = 1
3542  Starting byte set: A B a b  Starting byte set: A B a b
3543    
3544  /[ab](?i)cd/IS  /[ab](?i)cd/IS
# Line 3556  Capturing subpattern count = 0 Line 3546  Capturing subpattern count = 0
3546  No options  No options
3547  No first char  No first char
3548  Need char = 'd' (caseless)  Need char = 'd' (caseless)
3549    Subject length lower bound = 3
3550  Starting byte set: a b  Starting byte set: a b
3551    
3552  /abc(?C)def/I  /abc(?C)def/I
# Line 3713  No need char Line 3704  No need char
3704    
3705  /(\d{3}(?C))*/I  /(\d{3}(?C))*/I
3706  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3707  No options  No options
3708  No first char  No first char
3709  No need char  No need char
# Line 3842  Callout 0: last capture = 1 Line 3832  Callout 0: last capture = 1
3832    
3833  /a(b+)(c*)(?C1)/I  /a(b+)(c*)(?C1)/I
3834  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
3835  No options  No options
3836  First char = 'a'  First char = 'a'
3837  Need char = 'b'  Need char = 'b'
# Line 3868  No match Line 3857  No match
3857    
3858  /a(b+?)(c*?)(?C1)/I  /a(b+?)(c*?)(?C1)/I
3859  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
3860  No options  No options
3861  First char = 'a'  First char = 'a'
3862  Need char = 'b'  Need char = 'b'
# Line 3909  Capturing subpattern count = 0 Line 3897  Capturing subpattern count = 0
3897  No options  No options
3898  No first char  No first char
3899  No need char  No need char
3900    Subject length lower bound = 1
3901  Starting byte set: a b  Starting byte set: a b
3902    
3903  /(?R)/I  /(?R)/I
# Line 4028  No options Line 4017  No options
4017  First char = 'a'  First char = 'a'
4018  Need char = 'b'  Need char = 'b'
4019    
 /^\W*(?:((.)\W*(?1)\W*\2|)|((.)\W*(?3)\W*\4|\W*.\W*))\W*$/Ii  
 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  
   
4020  /^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/I  /^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/I
4021  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
4022  Options: anchored  Options: anchored
4023  No first char  No first char
4024  No need char  No need char
# Line 4105  No match Line 4059  No match
4059    
4060  /((< (?: (?(R) \d++  | [^<>]*+) | (?2)) * >))/Ix  /((< (?: (?(R) \d++  | [^<>]*+) | (?2)) * >))/Ix
4061  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
4062  Options: extended  Options: extended
4063  First char = '<'  First char = '<'
4064  Need char = '>'  Need char = '>'
# Line 4279  Named capturing subpatterns: Line 4232  Named capturing subpatterns:
4232    one     1    one     1
4233    three   3    three   3
4234    two     2    two     2
 Partial matching not supported  
4235  Options: anchored caseless  Options: anchored caseless
4236  No first char  No first char
4237  No need char  No need char
# Line 4325  No need char Line 4277  No need char
4277    
4278  /(.*)a/Is  /(.*)a/Is
4279  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
4280  Options: anchored dotall  Options: anchored dotall
4281  No first char  No first char
4282  Need char = 'a'  Need char = 'a'
# Line 4333  Need char = 'a' Line 4284  Need char = 'a'
4284  /(.*)a\1/Is  /(.*)a\1/Is
4285  Capturing subpattern count = 1  Capturing subpattern count = 1
4286  Max back reference = 1  Max back reference = 1
 Partial matching not supported  
4287  Options: dotall  Options: dotall
4288  No first char  No first char
4289  Need char = 'a'  Need char = 'a'
# Line 4341  Need char = 'a' Line 4291  Need char = 'a'
4291  /(.*)a(b)\2/Is  /(.*)a(b)\2/Is
4292  Capturing subpattern count = 2  Capturing subpattern count = 2
4293  Max back reference = 2  Max back reference = 2
 Partial matching not supported  
4294  Options: anchored dotall  Options: anchored dotall
4295  No first char  No first char
4296  Need char = 'b'  Need char = 'b'
4297    
4298  /((.*)a|(.*)b)z/Is  /((.*)a|(.*)b)z/Is
4299  Capturing subpattern count = 3  Capturing subpattern count = 3
 Partial matching not supported  
4300  Options: anchored dotall  Options: anchored dotall
4301  No first char  No first char
4302  Need char = 'z'  Need char = 'z'
# Line 4356  Need char = 'z' Line 4304  Need char = 'z'
4304  /((.*)a|(.*)b)z\1/Is  /((.*)a|(.*)b)z\1/Is
4305  Capturing subpattern count = 3  Capturing subpattern count = 3
4306  Max back reference = 1  Max back reference = 1
 Partial matching not supported  
4307  Options: dotall  Options: dotall
4308  No first char  No first char
4309  Need char = 'z'  Need char = 'z'
# Line 4364  Need char = 'z' Line 4311  Need char = 'z'
4311  /((.*)a|(.*)b)z\2/Is  /((.*)a|(.*)b)z\2/Is
4312  Capturing subpattern count = 3  Capturing subpattern count = 3
4313  Max back reference = 2  Max back reference = 2
 Partial matching not supported  
4314  Options: dotall  Options: dotall
4315  No first char  No first char
4316  Need char = 'z'  Need char = 'z'
# Line 4372  Need char = 'z' Line 4318  Need char = 'z'
4318  /((.*)a|(.*)b)z\3/Is  /((.*)a|(.*)b)z\3/Is
4319  Capturing subpattern count = 3  Capturing subpattern count = 3
4320  Max back reference = 3  Max back reference = 3
 Partial matching not supported  
4321  Options: dotall  Options: dotall
4322  No first char  No first char
4323  Need char = 'z'  Need char = 'z'
# Line 4380  Need char = 'z' Line 4325  Need char = 'z'
4325  /((.*)a|^(.*)b)z\3/Is  /((.*)a|^(.*)b)z\3/Is
4326  Capturing subpattern count = 3  Capturing subpattern count = 3
4327  Max back reference = 3  Max back reference = 3
 Partial matching not supported  
4328  Options: anchored dotall  Options: anchored dotall
4329  No first char  No first char
4330  Need char = 'z'  Need char = 'z'
4331    
4332  /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a/Is  /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a/Is
4333  Capturing subpattern count = 31  Capturing subpattern count = 31
 Partial matching not supported  
4334  Options: anchored dotall  Options: anchored dotall
4335  No first char  No first char
4336  No need char  No need char
# Line 4395  No need char Line 4338  No need char
4338  /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\31/Is  /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\31/Is
4339  Capturing subpattern count = 31  Capturing subpattern count = 31
4340  Max back reference = 31  Max back reference = 31
 Partial matching not supported  
4341  Options: dotall  Options: dotall
4342  No first char  No first char
4343  No need char  No need char
# Line 4403  No need char Line 4345  No need char
4345  /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\32/Is  /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\32/Is
4346  Capturing subpattern count = 32  Capturing subpattern count = 32
4347  Max back reference = 32  Max back reference = 32
 Partial matching not supported  
4348  Options: dotall  Options: dotall
4349  No first char  No first char
4350  No need char  No need char
# Line 4470  Need char = 'c' Line 4411  Need char = 'c'
4411    
4412  /(a+)*zz/I  /(a+)*zz/I
4413  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
4414  No options  No options
4415  No first char  No first char
4416  Need char = 'z'  Need char = 'z'
# Line 4607  Failed: two named subpatterns have the s Line 4547  Failed: two named subpatterns have the s
4547  Capturing subpattern count = 3  Capturing subpattern count = 3
4548  Named capturing subpatterns:  Named capturing subpatterns:
4549    elem   2    elem   2
 Partial matching not supported  
4550  No options  No options
4551  First char = '['  First char = '['
4552  Need char = ']'  Need char = ']'
# Line 4625  No match Line 4564  No match
4564  Capturing subpattern count = 3  Capturing subpattern count = 3
4565  Named capturing subpatterns:  Named capturing subpatterns:
4566    elem   2    elem   2
 Partial matching not supported  
4567  No options  No options
4568  First char = '['  First char = '['
4569  Need char = ']'  Need char = ']'
# Line 4732  No need char Line 4670  No need char
4670    
4671  /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/Ii  /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/Ii
4672  Capturing subpattern count = 3  Capturing subpattern count = 3
 Partial matching not supported  
4673  Options: caseless  Options: caseless
4674  No first char  No first char
4675  Need char = 'g' (caseless)  Need char = 'g' (caseless)
# Line 4742  Need char = 'g' (caseless) Line 4679  Need char = 'g' (caseless)
4679    
4680  /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/IiS  /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/IiS
4681  Capturing subpattern count = 3  Capturing subpattern count = 3
 Partial matching not supported  
4682  Options: caseless  Options: caseless
4683  No first char  No first char
4684  Need char = 'g' (caseless)  Need char = 'g' (caseless)
4685  Study returned NULL  Subject length lower bound = 8
4686    No set of starting bytes
4687       Baby Bjorn Active Carrier - With free SHIPPING!!       Baby Bjorn Active Carrier - With free SHIPPING!!
4688   0: Baby Bjorn Active Carrier - With free SHIPPING!!   0: Baby Bjorn Active Carrier - With free SHIPPING!!
4689   1: Baby Bjorn Active Carrier - With free SHIPPING!!   1: Baby Bjorn Active Carrier - With free SHIPPING!!
# Line 4761  Study returned NULL Line 4698  Study returned NULL
4698          End          End
4699  ------------------------------------------------------------------  ------------------------------------------------------------------
4700  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
4701  No options  No options
4702  No first char  No first char
4703  Need char = 'b'  Need char = 'b'
4704  Study returned NULL  Subject length lower bound = 1
4705    No set of starting bytes
4706    
4707  /(a|b)*.?c/ISDZ  /(a|b)*.?c/ISDZ
4708  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 4785  Capturing subpattern count = 1 Line 4722  Capturing subpattern count = 1
4722  No options  No options
4723  No first char  No first char
4724  Need char = 'c'  Need char = 'c'
4725  Study returned NULL  Subject length lower bound = 1
4726    No set of starting bytes
4727    
4728  /abc(?C255)de(?C)f/DZ  /abc(?C255)de(?C)f/DZ
4729  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 4854  No match Line 4792  No match
4792          End          End
4793  ------------------------------------------------------------------  ------------------------------------------------------------------
4794  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
4795  Options:  Options:
4796  No first char  No first char
4797  Need char = 'b'  Need char = 'b'
# Line 4899  Need char = 'b' Line 4836  Need char = 'b'
4836          End          End
4837  ------------------------------------------------------------------  ------------------------------------------------------------------
4838  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
4839  Options:  Options:
4840  First char = 'a'  First char = 'a'
4841  Need char = 'b'  Need char = 'b'
# Line 5337  No match Line 5273  No match
5273          End          End
5274  ------------------------------------------------------------------  ------------------------------------------------------------------
5275  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
5276  Options:  Options:
5277  No first char  No first char
5278  Need char = '3'  Need char = '3'
# Line 5369  Need char = '3' Line 5304  Need char = '3'
5304    
5305  /\b.*/I  /\b.*/I
5306  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5307  No options  No options
5308  No first char  No first char
5309  No need char  No need char
# Line 5378  No need char Line 5312  No need char
5312    
5313  /\b.*/Is  /\b.*/Is
5314  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5315  Options: dotall  Options: dotall
5316  No first char  No first char
5317  No need char  No need char
# Line 5387  No need char Line 5320  No need char
5320    
5321  /(?!.bcd).*/I  /(?!.bcd).*/I
5322  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5323  No options  No options
5324  No first char  No first char
5325  No need char  No need char
# Line 5400  No options Line 5332  No options
5332  First char = 'a'  First char = 'a'
5333  Need char = 'e'  Need char = 'e'
5334      ab\P      ab\P
5335  Partial match  Partial match: ab
5336      abc\P      abc\P
5337  Partial match  Partial match: abc
5338      abcd\P      abcd\P
5339  Partial match  Partial match: abcd
5340      abcde\P      abcde\P
5341   0: abcde   0: abcde
5342      the quick brown abc\P      the quick brown abc\P
5343  Partial match  Partial match: abc
5344      ** Failers\P      ** Failers\P
5345  No match  No match
5346      the quick brown abxyz fox\P      the quick brown abxyz fox\P
# Line 5433  Need char = '/' Line 5365  Need char = '/'
5365   1: 02   1: 02
5366   2: 05   2: 05
5367      1\P      1\P
5368  Partial match  Partial match: 1
5369      1/2\P      1/2\P
5370  Partial match  Partial match: 1/2
5371      1/2/0\P      1/2/0\P
5372  Partial match  Partial match: 1/2/0
5373      1/2/04\P      1/2/04\P
5374   0: 1/2/04   0: 1/2/04
5375   1: 1   1: 1
5376   2: 2   2: 2
5377      0\P      0\P
5378  Partial match  Partial match: 0
5379      02/\P      02/\P
5380  Partial match  Partial match: 02/
5381      02/0\P      02/0\P
5382  Partial match  Partial match: 02/0
5383      02/1\P      02/1\P
5384  Partial match  Partial match: 02/1
5385      ** Failers\P      ** Failers\P
5386  No match  No match
5387      \P      \P
# Line 5471  No match Line 5403  No match
5403    
5404  /0{0,2}ABC/I  /0{0,2}ABC/I
5405  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5406  No options  No options
5407  No first char  No first char
5408  Need char = 'C'  Need char = 'C'
5409    
5410  /\d{3,}ABC/I  /\d{3,}ABC/I
5411  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5412  No options  No options
5413  No first char  No first char
5414  Need char = 'C'  Need char = 'C'
5415    
5416  /\d*ABC/I  /\d*ABC/I
5417  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5418  No options  No options
5419  No first char  No first char
5420  Need char = 'C'  Need char = 'C'
5421    
5422  /[abc]+DE/I  /[abc]+DE/I
5423  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5424  No options  No options
5425  No first char  No first char
5426  Need char = 'E'  Need char = 'E'
# Line 5505  Need char = '3' Line 5433  Need char = '3'
5433      123\P      123\P
5434   0: 123   0: 123
5435      a\P      a\P
5436  Partial match  Partial match: a
5437      b\P      b\P
5438  Partial match  Partial match: b
5439      c\P      c\P
5440  Partial match  Partial match: c
5441      c12\P      c12\P
5442  Partial match  Partial match: c12
5443      c123\P      c123\P
5444   0: c123   0: c123
5445    
# Line 5521  Options: anchored Line 5449  Options: anchored
5449  No first char  No first char
5450  Need char = 'X'  Need char = 'X'
5451      1\P      1\P
5452  Partial match  Partial match: 1
5453      123\P      123\P
5454  Partial match  Partial match: 123
5455      123X      123X
5456   0: 123X   0: 123X
5457      1234\P      1234\P
5458  Partial match  Partial match: 1234
5459      1234X      1234X
5460   0: 1234X   0: 1234X
5461      12345\P      12345\P
5462  Partial match  Partial match: 12345
5463      12345X      12345X
5464   0: 12345X   0: 12345X
5465      *** Failers      *** Failers
# Line 5578  Capturing subpattern count = 1 Line 5506  Capturing subpattern count = 1
5506  No options  No options
5507  No first char  No first char
5508  No need char  No need char
5509    Subject length lower bound = 1
5510  Starting byte set: a b  Starting byte set: a b
5511  Compiled regex written to testsavedregex  Compiled regex written to testsavedregex
5512  Study data written to testsavedregex  Study data written to testsavedregex
# Line 5598  Capturing subpattern count = 1 Line 5527  Capturing subpattern count = 1
5527  No options  No options
5528  No first char  No first char
5529  No need char  No need char
5530    Subject length lower bound = 1
5531  Starting byte set: a b  Starting byte set: a b
5532  Compiled regex written to testsavedregex  Compiled regex written to testsavedregex
5533  Study data written to testsavedregex  Study data written to testsavedregex
# Line 5616  No match Line 5546  No match
5546  ~<(\w+)/?>(.)*</(\1)>~smgI  ~<(\w+)/?>(.)*</(\1)>~smgI
5547  Capturing subpattern count = 3  Capturing subpattern count = 3
5548  Max back reference = 1  Max back reference = 1
 Partial matching not supported  
5549  Options: multiline dotall  Options: multiline dotall
5550  First char = '<'  First char = '<'
5551  Need char = '>'  Need char = '>'
# Line 5669  No match Line 5598  No match
5598      line one\nthis is a line\nbreak in the second line      line one\nthis is a line\nbreak in the second line
5599  No match  No match
5600    
5601  /ab.cd/IP  /ab.cd/P
5602      ab-cd      ab-cd
5603   0: ab-cd   0: ab-cd
5604      ab=cd      ab=cd
# Line 5679  No match: POSIX code 17: match failed Line 5608  No match: POSIX code 17: match failed
5608      ab\ncd      ab\ncd
5609  No match: POSIX code 17: match failed  No match: POSIX code 17: match failed
5610    
5611  /ab.cd/IPs  /ab.cd/Ps
5612      ab-cd      ab-cd
5613   0: ab-cd   0: ab-cd
5614      ab=cd      ab=cd
# Line 5923  Matched, but too many substrings Line 5852  Matched, but too many substrings
5852    
5853  /[^()]*(?:\((?R)\)[^()]*)*/I  /[^()]*(?:\((?R)\)[^()]*)*/I
5854  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5855  No options  No options
5856  No first char  No first char
5857  No need char  No need char
# Line 5936  No need char Line 5864  No need char
5864    
5865  /[^()]*(?:\((?>(?R))\)[^()]*)*/I  /[^()]*(?:\((?>(?R))\)[^()]*)*/I
5866  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5867  No options  No options
5868  No first char  No first char
5869  No need char  No need char
# Line 5947  No need char Line 5874  No need char
5874    
5875  /[^()]*(?:\((?R)\))*[^()]*/I  /[^()]*(?:\((?R)\))*[^()]*/I
5876  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5877  No options  No options
5878  No first char  No first char
5879  No need char  No need char
# Line 5958  No need char Line 5884  No need char
5884    
5885  /(?:\((?R)\))*[^()]*/I  /(?:\((?R)\))*[^()]*/I
5886  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5887  No options  No options
5888  No first char  No first char
5889  No need char  No need char
# Line 5971  No need char Line 5896  No need char
5896    
5897  /(?:\((?R)\))|[^()]*/I  /(?:\((?R)\))|[^()]*/I
5898  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5899  No options  No options
5900  No first char  No first char
5901  No need char  No need char
# Line 5984  No need char Line 5908  No need char
5908      ((this))      ((this))
5909   0: ((this))   0: ((this))
5910    
5911  /a(b)c/IPN  /a(b)c/PN
5912      abc      abc
5913  Matched with REG_NOSUB  Matched with REG_NOSUB
5914    
5915  /a(?P<name>b)c/IPN  /a(?P<name>b)c/PN
5916      abc      abc
5917  Matched with REG_NOSUB  Matched with REG_NOSUB
5918    
# Line 6313  Failed: octal value is greater than \377 Line 6237  Failed: octal value is greater than \377
6237    
6238  /\s*,\s*/IS  /\s*,\s*/IS
6239  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
6240  No options  No options
6241  No first char  No first char
6242  Need char = ','  Need char = ','
6243    Subject length lower bound = 1
6244  Starting byte set: \x09 \x0a \x0c \x0d \x20 ,  Starting byte set: \x09 \x0a \x0c \x0d \x20 ,
6245      \x0b,\x0b      \x0b,\x0b
6246   0: ,   0: ,
# Line 6443  Unknown newline type at: <bad> Line 6367  Unknown newline type at: <bad>
6367    
6368  /.*/I<lf>  /.*/I<lf>
6369  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
6370  Options:  Options:
6371  Forced newline sequence: LF  Forced newline sequence: LF
6372  First char at start or follows newline  First char at start or follows newline
# Line 6469  No need char Line 6392  No need char
6392    
6393  /\w+(.)(.)?def/Is  /\w+(.)(.)?def/Is
6394  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
6395  Options: dotall  Options: dotall
6396  No first char  No first char
6397  Need char = 'f'  Need char = 'f'
# Line 6486  Need char = 'f' Line 6408  Need char = 'f'
6408    
6409  +((?:\s|//.*\\n|/[*](?:\\n|.)*?[*]/)*)+I  +((?:\s|//.*\\n|/[*](?:\\n|.)*?[*]/)*)+I
6410  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
6411  No options  No options
6412  No first char  No first char
6413  No need char  No need char
# Line 6621  No need char Line 6542  No need char
6542    
6543  /(a*b|(?i:c*(?-i)d))/IS  /(a*b|(?i:c*(?-i)d))/IS
6544  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
6545  No options  No options
6546  No first char  No first char
6547  No need char  No need char
6548    Subject length lower bound = 1
6549  Starting byte set: C a b c d  Starting byte set: C a b c d
6550    
6551  /()[ab]xyz/IS  /()[ab]xyz/IS
# Line 6632  Capturing subpattern count = 1 Line 6553  Capturing subpattern count = 1
6553  No options  No options
6554  No first char  No first char
6555  Need char = 'z'  Need char = 'z'
6556    Subject length lower bound = 4
6557  Starting byte set: a b  Starting byte set: a b
6558    
6559  /(|)[ab]xyz/IS  /(|)[ab]xyz/IS
# Line 6639  Capturing subpattern count = 1 Line 6561  Capturing subpattern count = 1
6561  No options  No options
6562  No first char  No first char
6563  Need char = 'z'  Need char = 'z'
6564    Subject length lower bound = 4
6565  Starting byte set: a b  Starting byte set: a b
6566    
6567  /(|c)[ab]xyz/IS  /(|c)[ab]xyz/IS
# Line 6646  Capturing subpattern count = 1 Line 6569  Capturing subpattern count = 1
6569  No options  No options
6570  No first char  No first char
6571  Need char = 'z'  Need char = 'z'
6572    Subject length lower bound = 4
6573  Starting byte set: a b c  Starting byte set: a b c
6574    
6575  /(|c?)[ab]xyz/IS  /(|c?)[ab]xyz/IS
# Line 6653  Capturing subpattern count = 1 Line 6577  Capturing subpattern count = 1
6577  No options  No options
6578  No first char  No first char
6579  Need char = 'z'  Need char = 'z'
6580    Subject length lower bound = 4
6581  Starting byte set: a b c  Starting byte set: a b c
6582    
6583  /(d?|c?)[ab]xyz/IS  /(d?|c?)[ab]xyz/IS
# Line 6660  Capturing subpattern count = 1 Line 6585  Capturing subpattern count = 1
6585  No options  No options
6586  No first char  No first char
6587  Need char = 'z'  Need char = 'z'
6588    Subject length lower bound = 4
6589  Starting byte set: a b c d  Starting byte set: a b c d
6590    
6591  /(d?|c)[ab]xyz/IS  /(d?|c)[ab]xyz/IS
# Line 6667  Capturing subpattern count = 1 Line 6593  Capturing subpattern count = 1
6593  No options  No options
6594  No first char  No first char
6595  Need char = 'z'  Need char = 'z'
6596    Subject length lower bound = 4
6597  Starting byte set: a b c d  Starting byte set: a b c d
6598    
6599  /^a*b\d/DZ  /^a*b\d/DZ
# Line 6680  Starting byte set: a b c d Line 6607  Starting byte set: a b c d
6607          End          End
6608  ------------------------------------------------------------------  ------------------------------------------------------------------
6609  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
6610  Options: anchored  Options: anchored
6611  No first char  No first char
6612  Need char = 'b'  Need char = 'b'
# Line 6696  Need char = 'b' Line 6622  Need char = 'b'
6622          End          End
6623  ------------------------------------------------------------------  ------------------------------------------------------------------
6624  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
6625  Options: anchored  Options: anchored
6626  No first char  No first char
6627  Need char = 'b'  Need char = 'b'
# Line 6712  Need char = 'b' Line 6637  Need char = 'b'
6637          End          End
6638  ------------------------------------------------------------------  ------------------------------------------------------------------
6639  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
6640  Options: anchored  Options: anchored
6641  No first char  No first char
6642  Need char = 'b'  Need char = 'b'
# Line 6728  Need char = 'b' Line 6652  Need char = 'b'
6652          End          End
6653  ------------------------------------------------------------------  ------------------------------------------------------------------
6654  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
6655  Options: anchored  Options: anchored
6656  No first char  No first char
6657  Need char = 'A'  Need char = 'A'
# Line 6743  No match Line 6666  No match
6666  ------------------------------------------------------------------  ------------------------------------------------------------------
6667          Bra          Bra
6668          ^          ^
6669          a*       /i a*
6670       NC A       /i A
6671          \d          \d
6672          Ket          Ket
6673          End          End
6674  ------------------------------------------------------------------  ------------------------------------------------------------------
6675  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
6676  Options: anchored caseless  Options: anchored caseless
6677  No first char  No first char
6678  Need char = 'A' (caseless)  Need char = 'A' (caseless)
# Line 6761  Need char = 'A' (caseless) Line 6683  Need char = 'A' (caseless)
6683    
6684  /(a*|b*)[cd]/IS  /(a*|b*)[cd]/IS
6685  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
6686  No options  No options
6687  No first char  No first char
6688  No need char  No need char
6689    Subject length lower bound = 1
6690  Starting byte set: a b c d  Starting byte set: a b c d
6691    
6692  /(a+|b*)[cd]/IS  /(a+|b*)[cd]/IS
6693  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
6694  No options  No options
6695  No first char  No first char
6696  No need char  No need char
6697    Subject length lower bound = 1
6698  Starting byte set: a b c d  Starting byte set: a b c d
6699    
6700  /(a*|b+)[cd]/IS  /(a*|b+)[cd]/IS
6701  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
6702  No options  No options
6703  No first char  No first char
6704  No need char  No need char
6705    Subject length lower bound = 1
6706  Starting byte set: a b c d  Starting byte set: a b c d
6707    
6708  /(a+|b+)[cd]/IS  /(a+|b+)[cd]/IS
6709  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
6710  No options  No options
6711  No first char  No first char
6712  No need char  No need char
6713    Subject length lower bound = 2
6714  Starting byte set: a b  Starting byte set: a b
6715    
6716  /((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((  /((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
# Line 7373  Matched, but too many substrings Line 7295  Matched, but too many substrings
7295  /[^a]+a/BZi  /[^a]+a/BZi
7296  ------------------------------------------------------------------  ------------------------------------------------------------------
7297          Bra          Bra
7298          [^A]++       /i [^A]++
7299       NC a       /i a
7300          Ket          Ket
7301          End          End
7302  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 7382  Matched, but too many substrings Line 7304  Matched, but too many substrings
7304  /[^a]+A/BZi  /[^a]+A/BZi
7305  ------------------------------------------------------------------  ------------------------------------------------------------------
7306          Bra          Bra
7307          [^A]++       /i [^A]++
7308       NC A       /i A
7309          Ket          Ket
7310          End          End
7311  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 7594  No match Line 7516  No match
7516          ^          ^
7517          CBra 1          CBra 1
7518          Cond          Cond
7519        2 Cond ref        2 Cond nref
7520          y          y
7521          Ket          Ket
7522          [()]          [()]
# Line 7660  Named capturing subpatterns: Line 7582  Named capturing subpatterns:
7582    one     1    one     1
7583    three   3    three   3
7584    two     2    two     2
 Partial matching not supported  
7585  Options: anchored caseless  Options: anchored caseless
7586  No first char  No first char
7587  No need char  No need char
# Line 7694  No match Line 7615  No match
7615  /(?=(\w+))\1:/I  /(?=(\w+))\1:/I
7616  Capturing subpattern count = 1  Capturing subpattern count = 1
7617  Max back reference = 1  Max back reference = 1
 Partial matching not supported  
7618  No options  No options
7619  No first char  No first char
7620  Need char = ':'  Need char = ':'
# Line 7707  Capturing subpattern count = 1 Line 7627  Capturing subpattern count = 1
7627  Max back reference = 1  Max back reference = 1
7628  Named capturing subpatterns:  Named capturing subpatterns:
7629    abc   1    abc   1
 Partial matching not supported  
7630  No options  No options
7631  No first char  No first char
7632  Need char = ':'  Need char = ':'
# Line 7715  Need char = ':' Line 7634  Need char = ':'
7634   0: abcd:   0: abcd:
7635   1: abcd   1: abcd
7636    
 /(?'abc'\w+):\k<abc>{2}/  
     a:aaxyz  
  0: a:aa  
  1: a  
     ab:ababxyz  
  0: ab:abab  
  1: ab  
     ** Failers  
 No match  
     a:axyz  
 No match  
     ab:abxyz  
 No match  
   
7637  /(?'abc'a|b)(?<abc>d|e)\k<abc>{2}/J  /(?'abc'a|b)(?<abc>d|e)\k<abc>{2}/J
7638      adaa      adaa
7639   0: adaa   0: adaa
# Line 7755  No match Line 7660  No match
7660      bddd      bddd
7661  No match  No match
7662    
 /^(?<ab>a)? (?(<ab>)b|c) (?('ab')d|e)/x  
     abd  
  0: abd  
  1: a  
     ce  
  0: ce  
   
7663  /(?(<bc))/  /(?(<bc))/
7664  Failed: malformed number or name after (?( at offset 6  Failed: malformed number or name after (?( at offset 6
7665    
# Line 7792  Failed: reference to non-existent subpat Line 7690  Failed: reference to non-existent subpat
7690   1: abcabc1Xabc2XabcX   1: abcabc1Xabc2XabcX
7691   2: abcabc1Xabc2XabcX   2: abcabc1Xabc2XabcX
7692    
 /^(?(DEFINE) (?<A> a) (?<B> b) )  (?&A) (?&B) /x  
     abcd  
  0: ab  
  1: <unset>  
  2: <unset>  
   
 /(?<NAME>(?&NAME_PAT))\s+(?<ADDR>(?&ADDRESS_PAT))  
   (?(DEFINE)  
   (?<NAME_PAT>[a-z]+)  
   (?<ADDRESS_PAT>\d+)  
   )/x  
     metcalfe 33  
  0: metcalfe 33  
  1: metcalfe  
  2: 33  
  3: <unset>  
  4: <unset>  
   
7693  /^(?(DEFINE) abc | xyz ) /x  /^(?(DEFINE) abc | xyz ) /x
7694  Failed: DEFINE group contains more than one branch at offset 22  Failed: DEFINE group contains more than one branch at offset 22
7695    
# Line 7851  No match Line 7731  No match
7731  No match  No match
7732    
7733  /^abc./mgx<any>  /^abc./mgx<any>
7734      abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x85abc7 \x{2028}abc8 \x{2029}abc9 JUNK      abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x85abc7 JUNK
7735   0: abc1   0: abc1
7736   0: abc2   0: abc2
7737   0: abc3   0: abc3
# Line 7861  No match Line 7741  No match
7741   0: abc7   0: abc7
7742    
7743  /abc.$/mgx<any>  /abc.$/mgx<any>
7744      abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x85 abc7\x{2028} abc8\x{2029} abc9      abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x85 abc7 abc9
7745   0: abc1   0: abc1
7746   0: abc2   0: abc2
7747   0: abc3   0: abc3
# Line 7987  Need char = 'P' Line 7867  Need char = 'P'
7867   0: PXP   0: PXP
7868   1: P   1: P
7869    
 /(?(DEFINE)(?<byte>2[0-4]\d|25[0-5]|1\d\d|[1-9]?\d))\b(?&byte)(\.(?&byte)){3}/  
     1.2.3.4  
  0: 1.2.3.4  
  1: <unset>  
  2: .4  
     131.111.10.206  
  0: 131.111.10.206  
  1: <unset>  
  2: .206  
     10.0.0.0  
  0: 10.0.0.0  
  1: <unset>  
  2: .0  
     ** Failers  
 No match  
     10.6  
 No match  
     455.3.4.5  
 No match  
   
 /\b(?&byte)(\.(?&byte)){3}(?(DEFINE)(?<byte>2[0-4]\d|25[0-5]|1\d\d|[1-9]?\d))/  
     1.2.3.4  
  0: 1.2.3.4  
  1: .4  
  2: <unset>  
     131.111.10.206  
  0: 131.111.10.206  
  1: .206  
  2: <unset>  
     10.0.0.0  
  0: 10.0.0.0  
  1: .0  
  2: <unset>  
     ** Failers  
 No match  
     10.6  
 No match  
     455.3.4.5  
 No match  
   
7870  /(?:a(?&abc)b)*(?<abc>x)/  /(?:a(?&abc)b)*(?<abc>x)/
7871      123axbaxbaxbx456      123axbaxbaxbx456
7872   0: axbaxbaxbx   0: axbaxbaxbx
# Line 8064  No match Line 7904  No match
7904     DEFabcABCXYZ     DEFabcABCXYZ
7905  No match  No match
7906    
 /^(a(b))\1\g1\g{1}\g-1\g{-1}\g{-02}Z/  
     ababababbbabZXXXX  
  0: ababababbbabZ  
  1: ab  
  2: b  
   
7907  /^(a)\g-2/  /^(a)\g-2/
7908  Failed: reference to non-existent subpattern at offset 7  Failed: reference to non-existent subpattern at offset 7
7909    
# Line 8163  No match Line 7997  No match
7997   0+   0+
7998    
7999  /abc.$/mgx<anycrlf>  /abc.$/mgx<anycrlf>
8000      abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x85 abc7\x{2028} abc8\x{2029} abc9      abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x85 abc9
8001   0: abc1   0: abc1
8002   0: abc4   0: abc4
8003   0: abc5   0: abc5
# Line 8325  Failed: reference to non-existent subpat Line 8159  Failed: reference to non-existent subpat
8159   0: Y!   0: Y!
8160   1: !   1: !
8161    
 /(foo)\Kbar/  
     foobar  
  0: bar  
  1: foo  
   
 /(foo)(\Kbar|baz)/  
     foobar  
  0: bar  
  1: foo  
  2: bar  
     foobaz  
  0: foobaz  
  1: foo  
  2: baz  
   
 /(foo\Kbar)baz/  
     foobarbaz  
  0: barbaz  
  1: foobar  
   
8162  /(?<A>tom|bon)-\k{A}/  /(?<A>tom|bon)-\k{A}/
8163      tom-tom      tom-tom
8164   0: tom-tom   0: tom-tom
# Line 8357  No match Line 8171  No match
8171      tom-bon      tom-bon
8172  No match  No match
8173    
 /(?<A>tom|bon)-\g{A}/  
     tom-tom  
  0: tom-tom  
  1: tom  
     bon-bon  
  0: bon-bon  
  1: bon  
   
8174  /\g{A/  /\g{A/
8175  Failed: syntax error in subpattern name (missing terminator) at offset 4  Failed: syntax error in subpattern name (missing terminator) at offset 4
8176    
# Line 8459  Failed: syntax error in subpattern name Line 8265  Failed: syntax error in subpattern name
8265   3: <unset>   3: <unset>
8266   4: x   4: x
8267    
 /(?|(abc)|(xyz))\1/  
     abcabc  
  0: abcabc  
  1: abc  
     xyzxyz  
  0: xyzxyz  
  1: xyz  
     ** Failers  
 No match  
     abcxyz  
 No match  
     xyzabc  
 No match  
   
 /(?|(abc)|(xyz))(?1)/  
     abcabc  
  0: abcabc  
  1: abc  
     xyzabc  
  0: xyzabc  
  1: xyz  
     ** Failers  
 No match  
     xyzxyz  
 No match  
   
 /\H\h\V\v/  
     X X\x0a  
  0: X X\x0a  
     X\x09X\x0b  
  0: X\x09X\x0b  
     ** Failers  
 No match  
     \xa0 X\x0a  
 No match  
   
 /\H*\h+\V?\v{3,4}/  
     \x09\x20\xa0X\x0a\x0b\x0c\x0d\x0a  
  0: \x09 \xa0X\x0a\x0b\x0c\x0d  
     \x09\x20\xa0\x0a\x0b\x0c\x0d\x0a  
  0: \x09 \xa0\x0a\x0b\x0c\x0d  
     \x09\x20\xa0\x0a\x0b\x0c  
  0: \x09 \xa0\x0a\x0b\x0c  
     ** Failers  
 No match  
     \x09\x20\xa0\x0a\x0b  
 No match  
   
 /\H{3,4}/  
     XY  ABCDE  
  0: ABCD  
     XY  PQR ST  
  0: PQR  
   
 /.\h{3,4}./  
     XY  AB    PQRS  
  0: B    P  
   
 /\h*X\h?\H+Y\H?Z/  
     >XNNNYZ  
  0: XNNNYZ  
     >  X NYQZ  
  0:   X NYQZ  
     ** Failers  
 No match  
     >XYZ  
 No match  
     >  X NY Z  
 No match  
   
 /\v*X\v?Y\v+Z\V*\x0a\V+\x0b\V{2,3}\x0c/  
     >XY\x0aZ\x0aA\x0bNN\x0c  
  0: XY\x0aZ\x0aA\x0bNN\x0c  
     >\x0a\x0dX\x0aY\x0a\x0bZZZ\x0aAAA\x0bNNN\x0c  
  0: \x0a\x0dX\x0aY\x0a\x0bZZZ\x0aAAA\x0bNNN\x0c  
   
8268  /[\h]/BZ  /[\h]/BZ
8269  ------------------------------------------------------------------  ------------------------------------------------------------------
8270          Bra          Bra
# Line 8831  Failed: missing terminating ] for charac Line 8561  Failed: missing terminating ] for charac
8561          End          End
8562  ------------------------------------------------------------------  ------------------------------------------------------------------
8563    
 /^a+(*FAIL)/  
     aaaaaa  
 No match  
   
 /a+b?c+(*FAIL)/  
     aaabccc  
 No match  
   
 /a+b?(*PRUNE)c+(*FAIL)/  
     aaabccc  
 No match  
   
 /a+b?(*COMMIT)c+(*FAIL)/  
     aaabccc  
 No match  
   
 /a+b?(*SKIP)c+(*FAIL)/  
     aaabcccaaabccc  
 No match  
   
 /^(?:aaa(*THEN)\w{6}|bbb(*THEN)\w{5}|ccc(*THEN)\w{4}|\w{3})/  
     aaaxxxxxx  
  0: aaaxxxxxx  
     aaa++++++  
  0: aaa  
     bbbxxxxx  
  0: bbbxxxxx  
     bbb+++++  
  0: bbb  
     cccxxxx  
  0: cccxxxx  
     ccc++++  
  0: ccc  
     dddddddd  
  0: ddd  
   
 /^(aaa(*THEN)\w{6}|bbb(*THEN)\w{5}|ccc(*THEN)\w{4}|\w{3})/  
     aaaxxxxxx  
  0: aaaxxxxxx  
  1: aaaxxxxxx  
     aaa++++++  
  0: aaa  
  1: aaa  
     bbbxxxxx  
  0: bbbxxxxx  
  1: bbbxxxxx  
     bbb+++++  
  0: bbb  
  1: bbb  
     cccxxxx  
  0: cccxxxx  
  1: cccxxxx  
     ccc++++  
  0: ccc  
  1: ccc  
     dddddddd  
  0: ddd  
  1: ddd  
   
 /a+b?(*THEN)c+(*FAIL)/  
     aaabccc  
 No match  
   
 /(A (A|B(*ACCEPT)|C) D)(E)/x  
     ABX  
  0: AB  
     AADE  
  0: AADE  
  1: AAD  
  2: A  
  3: E  
     ACDE  
  0: ACDE  
  1: ACD  
  2: C  
  3: E  
     ** Failers  
 No match  
     AD  
 No match  
   
8564  /^a+(*FAIL)/C  /^a+(*FAIL)/C
8565      aaaaaa      aaaaaa
8566  --->aaaaaa  --->aaaaaa
# Line 9040  No match Line 8689  No match
8689  +13   ^  ^      (*FAIL)  +13   ^  ^      (*FAIL)
8690  No match  No match
8691    
 /a(*PRUNE:XXX)b/  
 Failed: (*VERB) with an argument is not supported at offset 8  
   
8692  /a(*MARK)b/  /a(*MARK)b/
8693  Failed: (*VERB) not recognized at offset 7  Failed: (*MARK) must have an argument at offset 7
8694    
8695  /(?i:A{1,}\6666666666)/  /(?i:A{1,}\6666666666)/
8696  Failed: number is too big at offset 19  Failed: number is too big at offset 19
# Line 9133  No match Line 8779  No match
8779  No match  No match
8780      a\x85b      a\x85b
8781  No match  No match
8782    
8783    /(*ANY).*/g
8784        abc\r\ndef
8785     0: abc
8786     0:
8787     0: def
8788     0:
8789    
8790    /(*ANYCRLF).*/g
8791        abc\r\ndef
8792     0: abc
8793     0:
8794     0: def
8795     0:
8796    
8797    /(*CRLF).*/g
8798        abc\r\ndef
8799     0: abc
8800     0:
8801     0: def
8802     0:
8803    
8804  /a\Rb/I<bsr_anycrlf>  /a\Rb/I<bsr_anycrlf>
8805  Capturing subpattern count = 0  Capturing subpattern count = 0
# Line 9216  No match Line 8883  No match
8883    
8884  /a\R{2,4}b/I<bsr_anycrlf>  /a\R{2,4}b/I<bsr_anycrlf>
8885  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
8886  Options: bsr_anycrlf  Options: bsr_anycrlf
8887  First char = 'a'  First char = 'a'
8888  Need char = 'b'  Need char = 'b'
# Line 9235  No match Line 8901  No match
8901    
8902  /a\R{2,4}b/I<bsr_unicode>  /a\R{2,4}b/I<bsr_unicode>
8903  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
8904  Options: bsr_unicode  Options: bsr_unicode
8905  First char = 'a'  First char = 'a'
8906  Need char = 'b'  Need char = 'b'
# Line 9385  Failed: unknown POSIX class name at offs Line 9050  Failed: unknown POSIX class name at offs
9050  /[[:a\dz:]]/  /[[:a\dz:]]/
9051  Failed: unknown POSIX class name at offset 3  Failed: unknown POSIX class name at offset 3
9052    
9053  /^(?<name>a|b\g<name>c)/  /(^(a|b\g<-1'c))/
9054      aaaa  Failed: \g is not followed by a braced, angle-bracketed, or quoted name/number or by a plain number at offset 15
  0: a  
  1: a  
     bacxxx  
  0: bac  
  1: bac  
     bbaccxxx  
  0: bbacc  
  1: bbacc  
     bbbacccxx  
  0: bbbaccc  
  1: bbbaccc  
9055    
9056  /^(?<name>a|b\g'name'c)/  /^(?+1)(?<a>x|y){0}z/
9057      aaaa      xzxx
9058   0: a   0: xz
9059   1: a      yzyy
9060      bacxxx   0: yz
9061   0: bac      ** Failers
9062   1: bac  No match
9063      bbaccxxx      xxz
9064   0: bbacc  No match
  1: bbacc  
     bbbacccxx  
  0: bbbaccc  
  1: bbbaccc  
9065    
9066  /^(a|b\g<1>c)/  /(\3)(\1)(a)/
9067      aaaa      cat
9068   0: a  No match
  1: a  
     bacxxx  
  0: bac  
  1: bac  
     bbaccxxx  
  0: bbacc  
  1: bbacc  
     bbbacccxx  
  0: bbbaccc  
  1: bbbaccc  
9069    
9070  /^(a|b\g'1'c)/  /(\3)(\1)(a)/<JS>
9071      aaaa      cat
  0: a  
  1: a  
     bacxxx  
  0: bac  
  1: bac  
     bbaccxxx  
  0: bbacc  
  1: bbacc  
     bbbacccxx  
  0: bbbaccc  
  1: bbbaccc  
   
 /^(a|b\g'-1'c)/  
     aaaa  
  0: a  
  1: a  
     bacxxx  
  0: bac  
  1: bac  
     bbaccxxx  
  0: bbacc  
  1: bbacc  
     bbbacccxx  
  0: bbbaccc  
  1: bbbaccc  
   
 /(^(a|b\g<-1>c))/  
     aaaa  
  0: a  
  1: a  
  2: a  
     bacxxx  
  0: bac  
  1: bac  
  2: bac  
     bbaccxxx  
  0: bbacc  
  1: bbacc  
  2: bbacc  
     bbbacccxx  
  0: bbbaccc  
  1: bbbaccc  
  2: bbbaccc  
   
 /(^(a|b\g<-1'c))/  
 Failed: \g is not followed by a braced, angle-bracketed, or quoted name/number or by a plain number at offset 15  
   
 /(^(a|b\g{-1}))/  
     bacxxx  
 No match  
   
 /(?-i:\g<name>)(?i:(?<name>a))/  
     XaaX  
  0: aa  
  1: a  
     XAAX  
  0: AA  
  1: A  
   
 /(?i:\g<name>)(?-i:(?<name>a))/  
     XaaX  
  0: aa  
  1: a  
     ** Failers  
 No match  
     XAAX  
 No match  
   
 /(?-i:\g<+1>)(?i:(a))/  
     XaaX  
  0: aa  
  1: a  
     XAAX  
  0: AA  
  1: A  
   
 /(?=(?<regex>(?#simplesyntax)\$(?<name>[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)(?:\[(?<index>[a-zA-Z0-9_\x{7f}-\x{ff}]+|\$\g<name>)\]|->\g<name>(\(.*?\))?)?|(?#simple syntax withbraces)\$\{(?:\g<name>(?<indices>\[(?:\g<index>|'(?:\\.|[^'\\])*'|"(?:\g<regex>|\\.|[^"\\])*")\])?|\g<complex>|\$\{\g<complex>\})\}|(?#complexsyntax)\{(?<complex>\$(?<segment>\g<name>(\g<indices>*|\(.*?\))?)(?:->\g<segment>)*|\$\g<complex>|\$\{\g<complex>\})\}))\{/  
   
 /(?<n>a|b|c)\g<n>*/  
    abc  
  0: abc  
  1: a  
    accccbbb  
  0: accccbbb  
  1: a  
   
 /^(?+1)(?<a>x|y){0}z/  
     xzxx  
  0: xz  
  1: <unset>  
     yzyy  
  0: yz  
  1: <unset>  
     ** Failers  
 No match  
     xxz  
 No match  
   
 /(\3)(\1)(a)/  
     cat  
 No match  
   
 /(\3)(\1)(a)/<JS>  
     cat  
9072   0: a   0: a
9073   1:   1:
9074   2:   2:
# Line 9636  Capturing subpattern count = 1 Line 9172  Capturing subpattern count = 1
9172  No options  No options
9173  No first char  No first char
9174  No need char  No need char
9175    Subject length lower bound = 1
9176  Starting byte set: x y z  Starting byte set: x y z
9177    
9178  / End of testinput2 /  /(?(?=.*b)b|^)/CI
9179    Capturing subpattern count = 0
9180    Options:
9181    No first char
9182    No need char
9183       adc
9184    --->adc
9185     +0 ^       (?(?=.*b)b|^)
9186     +2 ^       (?=.*b)
9187     +5 ^       .*
9188     +7 ^  ^    b
9189     +7 ^ ^     b
9190     +7 ^^      b
9191     +7 ^       b
9192    +12 ^       )
9193    +13 ^
9194     0:
9195       abc
9196    --->abc
9197     +0 ^       (?(?=.*b)b|^)
9198     +2 ^       (?=.*b)
9199     +5 ^       .*
9200     +7 ^  ^    b
9201     +7 ^ ^     b
9202     +7 ^^      b
9203     +8 ^ ^     )
9204     +9 ^       b
9205     +0  ^      (?(?=.*b)b|^)
9206     +2  ^      (?=.*b)
9207     +5  ^      .*
9208     +7  ^ ^    b
9209     +7  ^^     b
9210     +7  ^      b
9211     +8  ^^     )
9212     +9  ^      b
9213    +10  ^^     |
9214    +13  ^^
9215     0: b
9216    
9217    /(?(?=b).*b|^d)/I
9218    Capturing subpattern count = 0
9219    No options
9220    No first char
9221    No need char
9222    
9223    /(?(?=.*b).*b|^d)/I
9224    Capturing subpattern count = 0
9225    No options
9226    First char at start or follows newline
9227    No need char
9228    
9229    /a?|b?/P
9230        abc
9231     0: a
9232        ** Failers
9233     0:
9234        ddd\N
9235    No match: POSIX code 17: match failed
9236    
9237    /xyz/C
9238      xyz
9239    --->xyz
9240     +0 ^       x
9241     +1 ^^      y
9242     +2 ^ ^     z
9243     +3 ^  ^
9244     0: xyz
9245      abcxyz
9246    --->abcxyz
9247     +0    ^       x
9248     +1    ^^      y
9249     +2    ^ ^     z
9250     +3    ^  ^
9251     0: xyz
9252      abcxyz\Y
9253    --->abcxyz
9254     +0 ^          x
9255     +0  ^         x
9256     +0   ^        x
9257     +0    ^       x
9258     +1    ^^      y
9259     +2    ^ ^     z
9260     +3    ^  ^
9261     0: xyz
9262      ** Failers
9263    No match
9264      abc
9265    No match
9266      abc\Y
9267    --->abc
9268     +0 ^       x
9269     +0  ^      x
9270     +0   ^     x
9271     +0    ^    x
9272    No match
9273      abcxypqr
9274    No match
9275      abcxypqr\Y
9276    --->abcxypqr
9277     +0 ^            x
9278     +0  ^           x
9279     +0   ^          x
9280     +0    ^         x
9281     +1    ^^        y
9282     +2    ^ ^       z
9283     +0     ^        x
9284     +0      ^       x
9285     +0       ^      x
9286     +0        ^     x
9287     +0         ^    x
9288    No match
9289    
9290    /(*NO_START_OPT)xyz/C
9291      abcxyz
9292    --->abcxyz
9293    +15 ^          x
9294    +15  ^         x
9295    +15   ^        x
9296    +15    ^       x
9297    +16    ^^      y
9298    +17    ^ ^     z
9299    +18    ^  ^
9300     0: xyz
9301    
9302    /xyz/CY
9303      abcxyz
9304    --->abcxyz
9305     +0 ^          x
9306     +0  ^         x
9307     +0   ^        x
9308     +0    ^       x
9309     +1    ^^      y
9310     +2    ^ ^     z
9311     +3    ^  ^
9312     0: xyz
9313    
9314    /^"((?(?=[a])[^"])|b)*"$/C
9315        "ab"
9316    --->"ab"
9317     +0 ^        ^
9318     +1 ^        "
9319     +2 ^^       ((?(?=[a])[^"])|b)*
9320     +3 ^^       (?(?=[a])[^"])
9321     +5 ^^       (?=[a])
9322     +8 ^^       [a]
9323    +11 ^ ^      )
9324    +12 ^^       [^"]
9325    +16 ^ ^      )
9326    +17 ^ ^      |
9327     +3 ^ ^      (?(?=[a])[^"])
9328     +5 ^ ^      (?=[a])
9329     +8 ^ ^      [a]
9330    +21 ^ ^      "
9331    +18 ^ ^      b
9332    +19 ^  ^     )
9333     +3 ^  ^     (?(?=[a])[^"])
9334     +5 ^  ^     (?=[a])
9335     +8 ^  ^     [a]
9336    +21 ^  ^     "
9337    +22 ^   ^    $
9338    +23 ^   ^
9339     0: "ab"
9340     1:
9341    
9342    /^"((?(?=[a])[^"])|b)*"$/
9343        "ab"
9344     0: "ab"
9345     1:
9346    
9347    /^X(?5)(a)(?|(b)|(q))(c)(d)Y/
9348    Failed: reference to non-existent subpattern at offset 5
9349    
9350    /^X(?&N)(a)(?|(b)|(q))(c)(d)(?<N>Y)/
9351        XYabcdY
9352     0: XYabcdY
9353     1: a
9354     2: b
9355     3: c
9356     4: d
9357     5: Y
9358    
9359    /Xa{2,4}b/
9360        X\P
9361    Partial match: X
9362        Xa\P
9363    Partial match: Xa
9364        Xaa\P
9365    Partial match: Xaa
9366        Xaaa\P
9367    Partial match: Xaaa
9368        Xaaaa\P
9369    Partial match: Xaaaa
9370    
9371    /Xa{2,4}?b/
9372        X\P
9373    Partial match: X
9374        Xa\P
9375    Partial match: Xa
9376        Xaa\P
9377    Partial match: Xaa
9378        Xaaa\P
9379    Partial match: Xaaa
9380        Xaaaa\P
9381    Partial match: Xaaaa
9382    
9383    /Xa{2,4}+b/
9384        X\P
9385    Partial match: X
9386        Xa\P
9387    Partial match: Xa
9388        Xaa\P
9389    Partial match: Xaa
9390        Xaaa\P
9391    Partial match: Xaaa
9392        Xaaaa\P
9393    Partial match: Xaaaa
9394    
9395    /X\d{2,4}b/
9396        X\P
9397    Partial match: X
9398        X3\P
9399    Partial match: X3
9400        X33\P
9401    Partial match: X33
9402        X333\P
9403    Partial match: X333
9404        X3333\P
9405    Partial match: X3333
9406    
9407    /X\d{2,4}?b/
9408        X\P
9409    Partial match: X
9410        X3\P
9411    Partial match: X3
9412        X33\P
9413    Partial match: X33
9414        X333\P
9415    Partial match: X333
9416        X3333\P
9417    Partial match: X3333
9418    
9419    /X\d{2,4}+b/
9420        X\P
9421    Partial match: X
9422        X3\P
9423    Partial match: X3
9424        X33\P
9425    Partial match: X33
9426        X333\P
9427    Partial match: X333
9428        X3333\P
9429    Partial match: X3333
9430    
9431    /X\D{2,4}b/
9432        X\P
9433    Partial match: X
9434        Xa\P
9435    Partial match: Xa
9436        Xaa\P
9437    Partial match: Xaa
9438        Xaaa\P
9439    Partial match: Xaaa
9440        Xaaaa\P
9441    Partial match: Xaaaa
9442    
9443    /X\D{2,4}?b/
9444        X\P
9445    Partial match: X
9446        Xa\P
9447    Partial match: Xa
9448        Xaa\P
9449    Partial match: Xaa
9450        Xaaa\P
9451    Partial match: Xaaa
9452        Xaaaa\P
9453    Partial match: Xaaaa
9454    
9455    /X\D{2,4}+b/
9456        X\P
9457    Partial match: X
9458        Xa\P
9459    Partial match: Xa
9460        Xaa\P
9461    Partial match: Xaa
9462        Xaaa\P
9463    Partial match: Xaaa
9464        Xaaaa\P
9465    Partial match: Xaaaa
9466    
9467    /X[abc]{2,4}b/
9468        X\P
9469    Partial match: X
9470        Xa\P
9471    Partial match: Xa
9472        Xaa\P
9473    Partial match: Xaa
9474        Xaaa\P
9475    Partial match: Xaaa
9476        Xaaaa\P
9477    Partial match: Xaaaa
9478    
9479    /X[abc]{2,4}?b/
9480        X\P
9481    Partial match: X
9482        Xa\P
9483    Partial match: Xa
9484        Xaa\P
9485    Partial match: Xaa
9486        Xaaa\P
9487    Partial match: Xaaa
9488        Xaaaa\P
9489    Partial match: Xaaaa
9490    
9491    /X[abc]{2,4}+b/
9492        X\P
9493    Partial match: X
9494        Xa\P
9495    Partial match: Xa
9496        Xaa\P
9497    Partial match: Xaa
9498        Xaaa\P
9499    Partial match: Xaaa
9500        Xaaaa\P
9501    Partial match: Xaaaa
9502    
9503    /X[^a]{2,4}b/
9504        X\P
9505    Partial match: X
9506        Xz\P
9507    Partial match: Xz
9508        Xzz\P
9509    Partial match: Xzz
9510        Xzzz\P
9511    Partial match: Xzzz
9512        Xzzzz\P
9513    Partial match: Xzzzz
9514    
9515    /X[^a]{2,4}?b/
9516        X\P
9517    Partial match: X
9518        Xz\P
9519    Partial match: Xz
9520        Xzz\P
9521    Partial match: Xzz
9522        Xzzz\P
9523    Partial match: Xzzz
9524        Xzzzz\P
9525    Partial match: Xzzzz
9526    
9527    /X[^a]{2,4}+b/
9528        X\P
9529    Partial match: X
9530        Xz\P
9531    Partial match: Xz
9532        Xzz\P
9533    Partial match: Xzz
9534        Xzzz\P
9535    Partial match: Xzzz
9536        Xzzzz\P
9537    Partial match: Xzzzz
9538    
9539    /(Y)X\1{2,4}b/
9540        YX\P
9541    Partial match: YX
9542        YXY\P
9543    Partial match: YXY
9544        YXYY\P
9545    Partial match: YXYY
9546        YXYYY\P
9547    Partial match: YXYYY
9548        YXYYYY\P
9549    Partial match: YXYYYY
9550    
9551    /(Y)X\1{2,4}?b/
9552        YX\P
9553    Partial match: YX
9554        YXY\P
9555    Partial match: YXY
9556        YXYY\P
9557    Partial match: YXYY
9558        YXYYY\P
9559    Partial match: YXYYY
9560        YXYYYY\P
9561    Partial match: YXYYYY
9562    
9563    /(Y)X\1{2,4}+b/
9564        YX\P
9565    Partial match: YX
9566        YXY\P
9567    Partial match: YXY
9568        YXYY\P
9569    Partial match: YXYY
9570        YXYYY\P
9571    Partial match: YXYYY
9572        YXYYYY\P
9573    Partial match: YXYYYY
9574    
9575    /\++\KZ|\d+X|9+Y/
9576        ++++123999\P
9577    Partial match: 123999
9578        ++++123999Y\P
9579     0: 999Y
9580        ++++Z1234\P
9581     0: Z
9582    
9583    /Z(*F)/
9584        Z\P
9585    No match
9586        ZA\P
9587    No match
9588    
9589    /Z(?!)/
9590        Z\P
9591    No match
9592        ZA\P
9593    No match
9594    
9595    /dog(sbody)?/
9596        dogs\P
9597     0: dog
9598        dogs\P\P
9599    Partial match: dogs
9600    
9601    /dog(sbody)??/
9602        dogs\P
9603     0: dog
9604        dogs\P\P
9605     0: dog
9606    
9607    /dog|dogsbody/
9608        dogs\P
9609     0: dog
9610        dogs\P\P
9611     0: dog
9612    
9613    /dogsbody|dog/
9614        dogs\P
9615     0: dog
9616        dogs\P\P
9617    Partial match: dogs
9618    
9619    /\bthe cat\b/
9620        the cat\P
9621     0: the cat
9622        the cat\P\P
9623    Partial match: the cat
9624    
9625    /abc/
9626       abc\P
9627     0: abc
9628       abc\P\P
9629     0: abc
9630    
9631    /\w+A/P
9632       CDAAAAB
9633     0: CDAAAA
9634    
9635    /\w+A/PU
9636       CDAAAAB
9637     0: CDA
9638    
9639    /abc\K123/
9640        xyzabc123pqr
9641     0: 123
9642        xyzabc12\P
9643    Partial match: abc12
9644        xyzabc12\P\P
9645    Partial match: abc12
9646    
9647    /(?<=abc)123/
9648        xyzabc123pqr
9649     0: 123
9650        xyzabc12\P
9651    Partial match: abc12
9652        xyzabc12\P\P
9653    Partial match: abc12
9654    
9655    /\babc\b/
9656        +++abc+++
9657     0: abc
9658        +++ab\P
9659    Partial match: +ab
9660        +++ab\P\P
9661    Partial match: +ab
9662    
9663    /(?&word)(?&element)(?(DEFINE)(?<element><[^m][^>]>[^<])(?<word>\w*+))/BZ
9664    ------------------------------------------------------------------
9665            Bra
9666            Once
9667            Recurse
9668            Ket
9669            Once
9670            Recurse
9671            Ket
9672            Cond
9673            Cond def
9674            CBra 1
9675            <
9676            [^m]
9677            [^>]
9678            >
9679            [^<]
9680            Ket
9681            CBra 2
9682            \w*+
9683            Ket
9684            Ket
9685            Ket
9686            End
9687    ------------------------------------------------------------------
9688    
9689    /(?&word)(?&element)(?(DEFINE)(?<element><[^\d][^>]>[^<])(?<word>\w*+))/BZ
9690    ------------------------------------------------------------------
9691            Bra
9692            Once
9693            Recurse
9694            Ket
9695            Once
9696            Recurse
9697            Ket
9698            Cond
9699            Cond def
9700            CBra 1
9701            <
9702            [\x00-/:-\xff] (neg)
9703            [^>]
9704            >
9705            [^<]
9706            Ket
9707            CBra 2
9708            \w*+
9709            Ket
9710            Ket
9711            Ket
9712            End
9713    ------------------------------------------------------------------
9714    
9715    /(ab)(x(y)z(cd(*ACCEPT)))pq/BZ
9716    ------------------------------------------------------------------
9717            Bra
9718            CBra 1
9719            ab
9720            Ket
9721            CBra 2
9722            x
9723            CBra 3
9724            y
9725            Ket
9726            z
9727            CBra 4
9728            cd
9729            Close 4
9730            Close 2
9731            *ACCEPT
9732            Ket
9733            Ket
9734            pq
9735            Ket
9736            End
9737    ------------------------------------------------------------------
9738    
9739    /abc\K/+
9740        abcdef
9741     0:
9742     0+ def
9743        abcdef\N\N
9744     0:
9745     0+ def
9746        xyzabcdef\N\N
9747     0:
9748     0+ def
9749        ** Failers
9750    No match
9751        abcdef\N
9752    No match
9753        xyzabcdef\N
9754    No match
9755    
9756    /^(?:(?=abc)|abc\K)/+
9757        abcdef
9758     0:
9759     0+ abcdef
9760        abcdef\N\N
9761     0:
9762     0+ def
9763        ** Failers
9764    No match
9765        abcdef\N
9766    No match
9767    
9768    /a?b?/+
9769        xyz
9770     0:
9771     0+ xyz
9772        xyzabc
9773     0:
9774     0+ xyzabc
9775        xyzabc\N
9776     0: ab
9777     0+ c
9778        xyzabc\N\N
9779     0:
9780     0+ yzabc
9781        xyz\N\N
9782     0:
9783     0+ yz
9784        ** Failers
9785     0:
9786     0+ ** Failers
9787        xyz\N
9788    No match
9789    
9790    /^a?b?/+
9791        xyz
9792     0:
9793     0+ xyz
9794        xyzabc
9795     0:
9796     0+ xyzabc
9797        ** Failers
9798     0:
9799     0+ ** Failers
9800        xyzabc\N
9801    No match
9802        xyzabc\N\N
9803    No match
9804        xyz\N\N
9805    No match
9806        xyz\N
9807    No match
9808    
9809    /^(?<name>a|b\g<name>c)/
9810        aaaa
9811     0: a
9812     1: a
9813        bacxxx
9814     0: bac
9815     1: bac
9816        bbaccxxx
9817     0: bbacc
9818     1: bbacc
9819        bbbacccxx
9820     0: bbbaccc
9821     1: bbbaccc
9822    
9823    /^(?<name>a|b\g'name'c)/
9824        aaaa
9825     0: a
9826     1: a
9827        bacxxx
9828     0: bac
9829     1: bac
9830        bbaccxxx
9831     0: bbacc
9832     1: bbacc
9833        bbbacccxx
9834     0: bbbaccc
9835     1: bbbaccc
9836    
9837    /^(a|b\g<1>c)/
9838        aaaa
9839     0: a
9840     1: a
9841        bacxxx
9842     0: bac
9843     1: bac
9844        bbaccxxx
9845     0: bbacc
9846     1: bbacc
9847        bbbacccxx
9848     0: bbbaccc
9849     1: bbbaccc
9850    
9851    /^(a|b\g'1'c)/
9852        aaaa
9853     0: a
9854     1: a
9855        bacxxx
9856     0: bac
9857     1: bac
9858        bbaccxxx
9859     0: bbacc
9860     1: bbacc
9861        bbbacccxx
9862     0: bbbaccc
9863     1: bbbaccc
9864    
9865    /^(a|b\g'-1'c)/
9866        aaaa
9867     0: a
9868     1: a
9869        bacxxx
9870     0: bac
9871     1: bac
9872        bbaccxxx
9873     0: bbacc
9874     1: bbacc
9875        bbbacccxx
9876     0: bbbaccc
9877     1: bbbaccc
9878    
9879    /(^(a|b\g<-1>c))/
9880        aaaa
9881     0: a
9882     1: a
9883     2: a
9884        bacxxx
9885     0: bac
9886     1: bac
9887     2: bac
9888        bbaccxxx
9889     0: bbacc
9890     1: bbacc
9891     2: bbacc
9892        bbbacccxx
9893     0: bbbaccc
9894     1: bbbaccc
9895     2: bbbaccc
9896    
9897    /(?-i:\g<name>)(?i:(?<name>a))/
9898        XaaX
9899     0: aa
9900     1: a
9901        XAAX
9902     0: AA
9903     1: A
9904    
9905    /(?i:\g<name>)(?-i:(?<name>a))/
9906        XaaX
9907     0: aa
9908     1: a
9909        ** Failers
9910    No match
9911        XAAX
9912    No match
9913    
9914    /(?-i:\g<+1>)(?i:(a))/
9915        XaaX
9916     0: aa
9917     1: a
9918        XAAX
9919     0: AA
9920     1: A
9921    
9922    /(?=(?<regex>(?#simplesyntax)\$(?<name>[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)(?:\[(?<index>[a-zA-Z0-9_\x{7f}-\x{ff}]+|\$\g<name>)\]|->\g<name>(\(.*?\))?)?|(?#simple syntax withbraces)\$\{(?:\g<name>(?<indices>\[(?:\g<index>|'(?:\\.|[^'\\])*'|"(?:\g<regex>|\\.|[^"\\])*")\])?|\g<complex>|\$\{\g<complex>\})\}|(?#complexsyntax)\{(?<complex>\$(?<segment>\g<name>(\g<indices>*|\(.*?\))?)(?:->\g<segment>)*|\$\g<complex>|\$\{\g<complex>\})\}))\{/
9923    
9924    /(?<n>a|b|c)\g<n>*/
9925       abc
9926     0: abc
9927     1: a
9928       accccbbb
9929     0: accccbbb
9930     1: a
9931    
9932    /^X(?7)(a)(?|(b)|(q)(r)(s))(c)(d)(Y)/
9933        XYabcdY
9934     0: XYabcdY
9935     1: a
9936     2: b
9937     3: <unset>
9938     4: <unset>
9939     5: c
9940     6: d
9941     7: Y
9942    
9943    /(?<=b(?1)|zzz)(a)/
9944        xbaax
9945     0: a
9946     1: a
9947        xzzzax
9948     0: a
9949     1: a
9950    
9951    /(a)(?<=b\1)/
9952    Failed: lookbehind assertion is not fixed length at offset 10
9953    
9954    /(a)(?<=b+(?1))/
9955    Failed: lookbehind assertion is not fixed length at offset 13
9956    
9957    /(a+)(?<=b(?1))/
9958    Failed: lookbehind assertion is not fixed length at offset 14
9959    
9960    /(a(?<=b(?1)))/
9961    Failed: lookbehind assertion is not fixed length at offset 13
9962    
9963    /(?<=b(?1))xyz/
9964    Failed: reference to non-existent subpattern at offset 8
9965    
9966    /(?<=b(?1))xyz(b+)pqrstuvew/
9967    Failed: lookbehind assertion is not fixed length at offset 26
9968    
9969    /(a|bc)\1/SI
9970    Capturing subpattern count = 1
9971    Max back reference = 1
9972    No options
9973    No first char
9974    No need char
9975    Subject length lower bound = 2
9976    Starting byte set: a b
9977    
9978    /(a|bc)\1{2,3}/SI
9979    Capturing subpattern count = 1
9980    Max back reference = 1
9981    No options
9982    No first char
9983    No need char
9984    Subject length lower bound = 3
9985    Starting byte set: a b
9986    
9987    /(a|bc)(?1)/SI
9988    Capturing subpattern count = 1
9989    No options
9990    No first char
9991    No need char
9992    Subject length lower bound = 2
9993    Starting byte set: a b
9994    
9995    /(a|b\1)(a|b\1)/SI
9996    Capturing subpattern count = 2
9997    Max back reference = 1
9998    No options
9999    No first char
10000    No need char
10001    Subject length lower bound = 2
10002    Starting byte set: a b
10003    
10004    /(a|b\1){2}/SI
10005    Capturing subpattern count = 1
10006    Max back reference = 1
10007    No options
10008    No first char
10009    No need char
10010    Subject length lower bound = 2
10011    Starting byte set: a b
10012    
10013    /(a|bbbb\1)(a|bbbb\1)/SI
10014    Capturing subpattern count = 2
10015    Max back reference = 1
10016    No options
10017    No first char
10018    No need char
10019    Subject length lower bound = 2
10020    Starting byte set: a b
10021    
10022    /(a|bbbb\1){2}/SI
10023    Capturing subpattern count = 1
10024    Max back reference = 1
10025    No options
10026    No first char
10027    No need char
10028    Subject length lower bound = 2
10029    Starting byte set: a b
10030    
10031    /^From +([^ ]+) +[a-zA-Z][a-zA-Z][a-zA-Z] +[a-zA-Z][a-zA-Z][a-zA-Z] +[0-9]?[0-9] +[0-9][0-9]:[0-9][0-9]/SI
10032    Capturing subpattern count = 1
10033    Options: anchored
10034    No first char
10035    Need char = ':'
10036    Subject length lower bound = 22
10037    No set of starting bytes
10038    
10039    /  (?: [\040\t] |  \(
10040    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10041    \)  )*                          # optional leading comment
10042    (?:    (?:
10043    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10044    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10045    |
10046    " (?:                      # opening quote...
10047    [^\\\x80-\xff\n\015"]                #   Anything except backslash and quote
10048    |                     #    or
10049    \\ [^\x80-\xff]           #   Escaped something (something != CR)
10050    )* "  # closing quote
10051    )                    # initial word
10052    (?:  (?: [\040\t] |  \(
10053    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10054    \)  )*  \.  (?: [\040\t] |  \(
10055    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10056    \)  )*   (?:
10057    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10058    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10059    |
10060    " (?:                      # opening quote...
10061    [^\\\x80-\xff\n\015"]                #   Anything except backslash and quote
10062    |                     #    or
10063    \\ [^\x80-\xff]           #   Escaped something (something != CR)
10064    )* "  # closing quote
10065    )  )* # further okay, if led by a period
10066    (?: [\040\t] |  \(
10067    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10068    \)  )*  @  (?: [\040\t] |  \(
10069    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10070    \)  )*    (?:
10071    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10072    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10073    |   \[                         # [
10074    (?: [^\\\x80-\xff\n\015\[\]] |  \\ [^\x80-\xff]  )*    #    stuff
10075    \]                        #           ]
10076    )                           # initial subdomain
10077    (?:                                  #
10078    (?: [\040\t] |  \(
10079    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10080    \)  )*  \.                        # if led by a period...
10081    (?: [\040\t] |  \(
10082    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10083    \)  )*   (?:
10084    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10085    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10086    |   \[                         # [
10087    (?: [^\\\x80-\xff\n\015\[\]] |  \\ [^\x80-\xff]  )*    #    stuff
10088    \]                        #           ]
10089    )                     #   ...further okay
10090    )*
10091    # address
10092    |                     #  or
10093    (?:
10094    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10095    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10096    |
10097    " (?:                      # opening quote...
10098    [^\\\x80-\xff\n\015"]                #   Anything except backslash and quote
10099    |                     #    or
10100    \\ [^\x80-\xff]           #   Escaped something (something != CR)
10101    )* "  # closing quote
10102    )             # one word, optionally followed by....
10103    (?:
10104    [^()<>@,;:".\\\[\]\x80-\xff\000-\010\012-\037]  |  # atom and space parts, or...
10105    \(
10106    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10107    \)       |  # comments, or...
10108    
10109    " (?:                      # opening quote...
10110    [^\\\x80-\xff\n\015"]                #   Anything except backslash and quote
10111    |                     #    or
10112    \\ [^\x80-\xff]           #   Escaped something (something != CR)
10113    )* "  # closing quote
10114    # quoted strings
10115    )*
10116    <  (?: [\040\t] |  \(
10117    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10118    \)  )*                     # leading <
10119    (?:  @  (?: [\040\t] |  \(
10120    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10121    \)  )*    (?:
10122    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10123    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10124    |   \[                         # [
10125    (?: [^\\\x80-\xff\n\015\[\]] |  \\ [^\x80-\xff]  )*    #    stuff
10126    \]                        #           ]
10127    )                           # initial subdomain
10128    (?:                                  #
10129    (?: [\040\t] |  \(
10130    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10131    \)  )*  \.                        # if led by a period...
10132    (?: [\040\t] |  \(
10133    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10134    \)  )*   (?:
10135    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10136    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10137    |   \[                         # [
10138    (?: [^\\\x80-\xff\n\015\[\]] |  \\ [^\x80-\xff]  )*    #    stuff
10139    \]                        #           ]
10140    )                     #   ...further okay
10141    )*
10142    
10143    (?:  (?: [\040\t] |  \(
10144    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10145    \)  )*  ,  (?: [\040\t] |  \(
10146    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10147    \)  )*  @  (?: [\040\t] |  \(
10148    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10149    \)  )*    (?:
10150    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10151    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10152    |   \[                         # [
10153    (?: [^\\\x80-\xff\n\015\[\]] |  \\ [^\x80-\xff]  )*    #    stuff
10154    \]                        #           ]
10155    )                           # initial subdomain
10156    (?:                                  #
10157    (?: [\040\t] |  \(
10158    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10159    \)  )*  \.                        # if led by a period...
10160    (?: [\040\t] |  \(
10161    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10162    \)  )*   (?:
10163    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10164    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10165    |   \[                         # [
10166    (?: [^\\\x80-\xff\n\015\[\]] |  \\ [^\x80-\xff]  )*    #    stuff
10167    \]                        #           ]
10168    )                     #   ...further okay
10169    )*
10170    )* # further okay, if led by comma
10171    :                                # closing colon
10172    (?: [\040\t] |  \(
10173    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10174    \)  )*  )? #       optional route
10175    (?:
10176    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10177    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10178    |
10179    " (?:                      # opening quote...
10180    [^\\\x80-\xff\n\015"]                #   Anything except backslash and quote
10181    |                     #    or
10182    \\ [^\x80-\xff]           #   Escaped something (something != CR)
10183    )* "  # closing quote
10184    )                    # initial word
10185    (?:  (?: [\040\t] |  \(
10186    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10187    \)  )*  \.  (?: [\040\t] |  \(
10188    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10189    \)  )*   (?:
10190    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10191    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10192    |
10193    " (?:                      # opening quote...
10194    [^\\\x80-\xff\n\015"]                #   Anything except backslash and quote
10195    |                     #    or
10196    \\ [^\x80-\xff]           #   Escaped something (something != CR)
10197    )* "  # closing quote
10198    )  )* # further okay, if led by a period
10199    (?: [\040\t] |  \(
10200    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10201    \)  )*  @  (?: [\040\t] |  \(
10202    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10203    \)  )*    (?:
10204    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10205    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10206    |   \[                         # [
10207    (?: [^\\\x80-\xff\n\015\[\]] |  \\ [^\x80-\xff]  )*    #    stuff
10208    \]                        #           ]
10209    )                           # initial subdomain
10210    (?:                                  #
10211    (?: [\040\t] |  \(
10212    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10213    \)  )*  \.                        # if led by a period...
10214    (?: [\040\t] |  \(
10215    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10216    \)  )*   (?:
10217    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10218    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10219    |   \[                         # [
10220    (?: [^\\\x80-\xff\n\015\[\]] |  \\ [^\x80-\xff]  )*    #    stuff
10221    \]                        #           ]
10222    )                     #   ...further okay
10223    )*
10224    #       address spec
10225    (?: [\040\t] |  \(
10226    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10227    \)  )*  > #                  trailing >
10228    # name and address
10229    )  (?: [\040\t] |  \(
10230    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10231    \)  )*                       # optional trailing comment
10232    /xSI
10233    Capturing subpattern count = 0
10234    Contains explicit CR or LF match
10235    Options: extended
10236    No first char
10237    No need char
10238    Subject length lower bound = 3
10239    Starting byte set: \x09 \x20 ! " # $ % & ' ( * + - / 0 1 2 3 4 5 6 7 8
10240      9 = ? A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ^ _ ` a b c d e
10241      f g h i j k l m n o p q r s t u v w x y z { | } ~ \x7f
10242    
10243    /<tr([\w\W\s\d][^<>]{0,})><TD([\w\W\s\d][^<>]{0,})>([\d]{0,}\.)(.*)((<BR>([\w\W\s\d][^<>]{0,})|[\s]{0,}))<\/a><\/TD><TD([\w\W\s\d][^<>]{0,})>([\w\W\s\d][^<>]{0,})<\/TD><TD([\w\W\s\d][^<>]{0,})>([\w\W\s\d][^<>]{0,})<\/TD><\/TR>/isIS
10244    Capturing subpattern count = 11
10245    Options: caseless dotall
10246    First char = '<'
10247    Need char = '>'
10248    Subject length lower bound = 47
10249    No set of starting bytes
10250    
10251    "(?>.*/)foo"SI
10252    Capturing subpattern count = 0
10253    No options
10254    First char at start or follows newline
10255    Need char = 'o'
10256    Subject length lower bound = 4
10257    No set of starting bytes
10258    
10259    /(?(?=[^a-z]+[a-z])  \d{2}-[a-z]{3}-\d{2}  |  \d{2}-\d{2}-\d{2} ) /xSI
10260    Capturing subpattern count = 0
10261    Options: extended
10262    No first char
10263    Need char = '-'
10264    Subject length lower bound = 8
10265    No set of starting bytes
10266    
10267    /(?:(?:(?:(?:(?:(?:(?:(?:(?:(a|b|c))))))))))/iSI
10268    Capturing subpattern count = 1
10269    Options: caseless
10270    No first char
10271    No need char
10272    Subject length lower bound = 1
10273    Starting byte set: A B C a b c
10274    
10275    /(?:c|d)(?:)(?:aaaaaaaa(?:)(?:bbbbbbbb)(?:bbbbbbbb(?:))(?:bbbbbbbb(?:)(?:bbbbbbbb)))/SI
10276    Capturing subpattern count = 0
10277    No options
10278    No first char
10279    Need char = 'b'
10280    Subject length lower bound = 41
10281    Starting byte set: c d
10282    
10283    /<a[\s]+href[\s]*=[\s]*          # find <a href=
10284     ([\"\'])?                       # find single or double quote
10285     (?(1) (.*?)\1 | ([^\s]+))       # if quote found, match up to next matching
10286                                     # quote, otherwise match up to next space
10287    /isxSI
10288    Capturing subpattern count = 3
10289    Max back reference = 1
10290    Options: caseless extended dotall
10291    First char = '<'
10292    Need char = '='
10293    Subject length lower bound = 9
10294    No set of starting bytes
10295    
10296    /^(?!:)                       # colon disallowed at start
10297      (?:                         # start of item
10298        (?: [0-9a-f]{1,4} |       # 1-4 hex digits or
10299        (?(1)0 | () ) )           # if null previously matched, fail; else null
10300        :                         # followed by colon
10301      ){1,7}                      # end item; 1-7 of them required
10302      [0-9a-f]{1,4} $             # final hex number at end of string
10303      (?(1)|.)                    # check that there was an empty component
10304      /xiIS
10305    Capturing subpattern count = 1
10306    Options: anchored caseless extended
10307    No first char
10308    Need char = ':'
10309    Subject length lower bound = 2
10310    No set of starting bytes
10311    
10312    /(?|(?<a>A)|(?<a>B))/I
10313    Capturing subpattern count = 1
10314    Named capturing subpatterns:
10315      a   1
10316      a   1
10317    No options
10318    No first char
10319    No need char
10320        AB\Ca
10321     0: A
10322     1: A
10323      C A (1) a
10324        BA\Ca
10325     0: B
10326     1: B
10327      C B (1) a
10328    
10329    /(?|(?<a>A)|(?<b>B))/
10330    Failed: different names for subpatterns of the same number are not allowed at offset 15
10331    
10332    /(?:a(?<quote> (?<apostrophe>')|(?<realquote>")) |
10333        b(?<quote> (?<apostrophe>')|(?<realquote>")) )
10334        (?('quote')[a-z]+|[0-9]+)/JIx
10335    Capturing subpattern count = 6
10336    Named capturing subpatterns:
10337      apostrophe   2
10338      apostrophe   5
10339      quote        1
10340      quote        4
10341      realquote    3
10342      realquote    6
10343    Options: extended dupnames
10344    No first char
10345    No need char
10346        a"aaaaa
10347     0: a"aaaaa
10348     1: "
10349     2: <unset>
10350     3: "
10351        b"aaaaa
10352     0: b"aaaaa
10353     1: <unset>
10354     2: <unset>
10355     3: <unset>
10356     4: "
10357     5: <unset>
10358     6: "
10359        ** Failers
10360    No match
10361        b"11111
10362    No match
10363        a"11111
10364    No match
10365    
10366    /^(?|(a)(b)(c)(?<D>d)|(?<D>e)) (?('D')X|Y)/JDZx
10367    ------------------------------------------------------------------
10368            Bra
10369            ^
10370            Bra
10371            CBra 1
10372            a
10373            Ket
10374            CBra 2
10375            b
10376            Ket
10377            CBra 3
10378            c
10379            Ket
10380            CBra 4
10381            d
10382            Ket
10383            Alt
10384            CBra 1
10385            e
10386            Ket
10387            Ket
10388            Cond
10389          4 Cond nref
10390            X
10391            Alt
10392            Y
10393            Ket
10394            Ket
10395            End
10396    ------------------------------------------------------------------
10397    Capturing subpattern count = 4
10398    Named capturing subpatterns:
10399      D   4
10400      D   1
10401    Options: anchored extended dupnames
10402    No first char
10403    No need char
10404        abcdX
10405     0: abcdX
10406     1: a
10407     2: b
10408     3: c
10409     4: d
10410        eX
10411     0: eX
10412     1: e
10413        ** Failers
10414    No match
10415        abcdY
10416    No match
10417        ey
10418    No match
10419    
10420    /(?<A>a) (b)(c)  (?<A>d  (?(R&A)$ | (?4)) )/JDZx
10421    ------------------------------------------------------------------
10422            Bra
10423            CBra 1
10424            a
10425            Ket
10426            CBra 2
10427            b
10428            Ket
10429            CBra 3
10430            c
10431            Ket
10432            CBra 4
10433            d
10434            Cond
10435            Cond nrecurse 1
10436            $
10437            Alt
10438            Once
10439            Recurse
10440            Ket
10441            Ket
10442            Ket
10443            Ket
10444            End
10445    ------------------------------------------------------------------
10446    Capturing subpattern count = 4
10447    Named capturing subpatterns:
10448      A   1
10449      A   4
10450    Options: extended dupnames
10451    First char = 'a'
10452    Need char = 'd'
10453        abcdd
10454     0: abcdd
10455     1: a
10456     2: b
10457     3: c
10458     4: dd
10459        ** Failers
10460    No match
10461        abcdde
10462    No match
10463    
10464    /abcd*/
10465        xxxxabcd\P
10466     0: abcd
10467        xxxxabcd\P\P
10468    Partial match: abcd
10469    
10470    /abcd*/i
10471        xxxxabcd\P
10472     0: abcd
10473        xxxxabcd\P\P
10474    Partial match: abcd
10475        XXXXABCD\P
10476     0: ABCD
10477        XXXXABCD\P\P
10478    Partial match: ABCD
10479    
10480    /abc\d*/
10481        xxxxabc1\P
10482     0: abc1
10483        xxxxabc1\P\P
10484    Partial match: abc1
10485    
10486    /(a)bc\1*/
10487        xxxxabca\P
10488     0: abca
10489     1: a
10490        xxxxabca\P\P
10491    Partial match: abca
10492    
10493    /abc[de]*/
10494        xxxxabcde\P
10495     0: abcde
10496        xxxxabcde\P\P
10497    Partial match: abcde
10498    
10499    /-- This is not in the Perl >= 5.10 test because Perl seems currently to be
10500        broken and not behaving as specified in that it *does* bumpalong after
10501        hitting (*COMMIT). --/
10502    
10503    /(?1)(A(*COMMIT)|B)D/
10504        ABD
10505     0: ABD
10506     1: B
10507        XABD
10508     0: ABD
10509     1: B
10510        BAD
10511     0: BAD
10512     1: A
10513        ABXABD
10514     0: ABD
10515     1: B
10516        ** Failers
10517    No match
10518        ABX
10519    No match
10520        BAXBAD
10521    No match
10522    
10523    /(\3)(\1)(a)/<JS>
10524        cat
10525     0: a
10526     1:
10527     2:
10528     3: a
10529    
10530    /(\3)(\1)(a)/SI<JS>
10531    Capturing subpattern count = 3
10532    Max back reference = 3
10533    Options:
10534    No first char
10535    Need char = 'a'
10536    Subject length lower bound = 1
10537    No set of starting bytes
10538        cat
10539     0: a
10540     1:
10541     2:
10542     3: a
10543    
10544    /(\3)(\1)(a)/SI
10545    Capturing subpattern count = 3
10546    Max back reference = 3
10547    No options
10548    No first char
10549    Need char = 'a'
10550    Subject length lower bound = 3
10551    No set of starting bytes
10552        cat
10553    No match
10554    
10555    /i(?(DEFINE)(?<s>a))/SI
10556    Capturing subpattern count = 1
10557    Named capturing subpatterns:
10558      s   1
10559    No options
10560    First char = 'i'
10561    No need char
10562    Subject length lower bound = 1
10563    No set of starting bytes
10564        i
10565     0: i
10566    
10567    /()i(?(1)a)/SI
10568    Capturing subpattern count = 1
10569    No options
10570    No first char
10571    Need char = 'i'
10572    Subject length lower bound = 1
10573