/[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 342 by ph10, Sun Apr 20 17:10:13 2008 UTC revision 574 by ph10, Sat Nov 20 17:47:27 2010 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 612  Capturing subpattern count = 1 Line 643  Capturing subpattern count = 1
643  No options  No options
644  First char = 'b' (caseless)  First char = 'b' (caseless)
645  No need char  No need char
646  Study returned NULL  Subject length lower bound = 1
647    No set of starting bytes
648    
649  /(a*b|(?i:c*(?-i)d))/IS  /(a*b|(?i:c*(?-i)d))/IS
650  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
651  No options  No options
652  No first char  No first char
653  No need char  No need char
654    Subject length lower bound = 1
655  Starting byte set: C a b c d  Starting byte set: C a b c d
656    
657  /a$/I  /a$/I
# Line 668  Need char = 'c' Line 700  Need char = 'c'
700    
701  /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/I  /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/I
702  Capturing subpattern count = 5  Capturing subpattern count = 5
 Partial matching not supported  
703  Options: anchored  Options: anchored
704  No first char  No first char
705  No need char  No need char
# Line 685  Capturing subpattern count = 0 Line 716  Capturing subpattern count = 0
716  No options  No options
717  No first char  No first char
718  No need char  No need char
719    Subject length lower bound = 1
720  Starting byte set: a b  Starting byte set: a b
721    
722  /(?<!foo)(alpha|omega)/IS  /(?<!foo)(alpha|omega)/IS
# Line 692  Capturing subpattern count = 1 Line 724  Capturing subpattern count = 1
724  No options  No options
725  No first char  No first char
726  Need char = 'a'  Need char = 'a'
727    Subject length lower bound = 5
728  Starting byte set: a o  Starting byte set: a o
729    
730  /(?!alphabet)[ab]/IS  /(?!alphabet)[ab]/IS
# Line 699  Capturing subpattern count = 0 Line 732  Capturing subpattern count = 0
732  No options  No options
733  No first char  No first char
734  No need char  No need char
735    Subject length lower bound = 1
736  Starting byte set: a b  Starting byte set: a b
737    
738  /(?<=foo\n)^bar/Im  /(?<=foo\n)^bar/Im
# Line 784  No need char Line 818  No need char
818    
819  /(?>.*)(?<=(abcd)|(xyz))/I  /(?>.*)(?<=(abcd)|(xyz))/I
820  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
821  No options  No options
822  First char at start or follows newline  First char at start or follows newline
823  No need char  No need char
# Line 854  No match Line 887  No match
887      a      a
888  No match  No match
889    
890  /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
891  Capturing subpattern count = 0  Capturing subpattern count = 0
892  No options  No options
893  First char = 'T'  First char = 'T'
# Line 866  Max back reference = 1 Line 899  Max back reference = 1
899  Options: anchored  Options: anchored
900  No first char  No first char
901  No need char  No need char
902        aaaa
903    No match
904      aaaaaa      aaaaaa
905   0: aaaaaa  No match
906   1: aa  
907    /Perl does not fail these two for the final subjects. Neither did PCRE until/
908    /release 8.01. The problem is in backtracking into a subpattern that contains/
909    No match
910    /a recursive reference to itself. PCRE has now made these into atomic patterns./
911    No match
912    
913    /^(xa|=?\1a){2}$/
914        xa=xaa
915     0: xa=xaa
916     1: =xaa
917        ** Failers
918    No match
919        xa=xaaa
920    No match
921    
922    /^(xa|=?\1a)+$/
923        xa=xaa
924     0: xa=xaa
925     1: =xaa
926        ** Failers
927    No match
928        xa=xaaa
929    No match
930    
931  /These are syntax tests from Perl 5.005/I  /These are syntax tests from Perl 5.005/I
932  Capturing subpattern count = 0  Capturing subpattern count = 0
# Line 1003  copy substring 5 failed -7 Line 1061  copy substring 5 failed -7
1061    
1062  /(.{20})/I  /(.{20})/I
1063  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
1064  No options  No options
1065  No first char  No first char
1066  No need char  No need char
# Line 1021  No need char Line 1078  No need char
1078    
1079  /(.{15})/I  /(.{15})/I
1080  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
1081  No options  No options
1082  No first char  No first char
1083  No need char  No need char
# Line 1036  No need char Line 1092  No need char
1092    
1093  /(.{16})/I  /(.{16})/I
1094  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
1095  No options  No options
1096  No first char  No first char
1097  No need char  No need char
# Line 1103  No need char Line 1158  No need char
1158  )((?:[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]+
1159  )?)?)?)?)?)?)?)?)?otherword/I  )?)?)?)?)?)?)?)?)?otherword/I
1160  Capturing subpattern count = 8  Capturing subpattern count = 8
 Partial matching not supported  
1161  Contains explicit CR or LF match  Contains explicit CR or LF match
1162  No options  No options
1163  First char = 'w'  First char = 'w'
# Line 1118  Need char = 'd' Line 1172  Need char = 'd'
1172          End          End
1173  ------------------------------------------------------------------  ------------------------------------------------------------------
1174  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1175  No options  No options
1176  First char at start or follows newline  First char at start or follows newline
1177  Need char = 'X'  Need char = 'X'
# Line 1132  Need char = 'X' Line 1185  Need char = 'X'
1185          End          End
1186  ------------------------------------------------------------------  ------------------------------------------------------------------
1187  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1188  Options: anchored dotall  Options: anchored dotall
1189  No first char  No first char
1190  Need char = 'X'  Need char = 'X'
# Line 1151  Need char = 'X' Line 1203  Need char = 'X'
1203          End          End
1204  ------------------------------------------------------------------  ------------------------------------------------------------------
1205  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
1206  No options  No options
1207  First char at start or follows newline  First char at start or follows newline
1208  No need char  No need char
# Line 1170  No need char Line 1221  No need char
1221          End          End
1222  ------------------------------------------------------------------  ------------------------------------------------------------------
1223  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
1224  Options: anchored dotall  Options: anchored dotall
1225  No first char  No first char
1226  No need char  No need char
# Line 1189  No need char Line 1239  No need char
1239          End          End
1240  ------------------------------------------------------------------  ------------------------------------------------------------------
1241  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
1242  Options: anchored dotall  Options: anchored dotall
1243  No first char  No first char
1244  No need char  No need char
# Line 1211  No need char Line 1260  No need char
1260          End          End
1261  ------------------------------------------------------------------  ------------------------------------------------------------------
1262  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1263  Options: anchored  Options: anchored
1264  No first char  No first char
1265  No need char  No need char
# Line 1296  No need char Line 1344  No need char
1344    
1345  /.*iss/Ig+  /.*iss/Ig+
1346  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1347  No options  No options
1348  First char at start or follows newline  First char at start or follows newline
1349  Need char = 's'  Need char = 's'
# Line 1399  Need char = 'c' Line 1446  Need char = 'c'
1446    
1447  /a*/I  /a*/I
1448  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1449  No options  No options
1450  No first char  No first char
1451  No need char  No need char
1452    
1453  /a+/I  /a+/I
1454  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1455  No options  No options
1456  First char = 'a'  First char = 'a'
1457  No need char  No need char
1458    
1459  /(baa|a+)/I  /(baa|a+)/I
1460  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
1461  No options  No options
1462  No first char  No first char
1463  Need char = 'a'  Need char = 'a'
1464    
1465  /a{0,3}/I  /a{0,3}/I
1466  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1467  No options  No options
1468  No first char  No first char
1469  No need char  No need char
1470    
1471  /baa{3,}/I  /baa{3,}/I
1472  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1473  No options  No options
1474  First char = 'b'  First char = 'b'
1475  Need char = 'a'  Need char = 'a'
1476    
1477  /"([^\\"]+|\\.)*"/I  /"([^\\"]+|\\.)*"/I
1478  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
1479  No options  No options
1480  First char = '"'  First char = '"'
1481  Need char = '"'  Need char = '"'
# Line 1489  Need char = 'b' Line 1530  Need char = 'b'
1530    
1531  /abc*/I  /abc*/I
1532  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1533  No options  No options
1534  First char = 'a'  First char = 'a'
1535  Need char = 'b'  Need char = 'b'
1536    
1537  /ab.c*/I  /ab.c*/I
1538  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1539  No options  No options
1540  First char = 'a'  First char = 'a'
1541  Need char = 'b'  Need char = 'b'
1542    
1543  /a.c*/I  /a.c*/I
1544  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1545  No options  No options
1546  First char = 'a'  First char = 'a'
1547  No need char  No need char
1548    
1549  /.c*/I  /.c*/I
1550  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1551  No options  No options
1552  No first char  No first char
1553  No need char  No need char
1554    
1555  /ac*/I  /ac*/I
1556  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1557  No options  No options
1558  First char = 'a'  First char = 'a'
1559  No need char  No need char
1560    
1561  /(a.c*|b.c*)/I  /(a.c*|b.c*)/I
1562  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
1563  No options  No options
1564  No first char  No first char
1565  No need char  No need char
1566    
1567  /a.c*|aba/I  /a.c*|aba/I
1568  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1569  No options  No options
1570  First char = 'a'  First char = 'a'
1571  No need char  No need char
1572    
1573  /.+a/I  /.+a/I
1574  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1575  No options  No options
1576  No first char  No first char
1577  Need char = 'a'  Need char = 'a'
1578    
1579  /(?=abcda)a.*/I  /(?=abcda)a.*/I
1580  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1581  No options  No options
1582  First char = 'a'  First char = 'a'
1583  Need char = 'a'  Need char = 'a'
1584    
1585  /(?=a)a.*/I  /(?=a)a.*/I
1586  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1587  No options  No options
1588  First char = 'a'  First char = 'a'
1589  No need char  No need char
# Line 1565  No need char Line 1596  No need char
1596    
1597  /a\d*/I  /a\d*/I
1598  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1599  No options  No options
1600  First char = 'a'  First char = 'a'
1601  No need char  No need char
1602    
1603  /ab\d*/I  /ab\d*/I
1604  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1605  No options  No options
1606  First char = 'a'  First char = 'a'
1607  Need char = 'b'  Need char = 'b'
# Line 1591  Need char = 'd' Line 1620  Need char = 'd'
1620    
1621  /ab\d+/I  /ab\d+/I
1622  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1623  No options  No options
1624  First char = 'a'  First char = 'a'
1625  Need char = 'b'  Need char = 'b'
# Line 1666  No need char Line 1694  No need char
1694      \Nabc      \Nabc
1695  No match  No match
1696    
1697  /a*(b+)(z)(z)/IP  /a*(b+)(z)(z)/P
1698      aaaabbbbzzzz      aaaabbbbzzzz
1699   0: aaaabbbbzz   0: aaaabbbbzz
1700   1: bbbb   1: bbbb
# Line 1698  Capturing subpattern count = 0 Line 1726  Capturing subpattern count = 0
1726  Options: anchored  Options: anchored
1727  No first char  No first char
1728  Need char = 'd'  Need char = 'd'
1729  Study returned NULL  Subject length lower bound = 4
1730    No set of starting bytes
1731    
1732  /\(             # ( at start  /\(             # ( at start
1733    (?:           # Non-capturing bracket    (?:           # Non-capturing bracket
# Line 1709  Study returned NULL Line 1738  Study returned NULL
1738    \)            # Closing )    \)            # Closing )
1739    /Ix    /Ix
1740  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1741  Options: extended  Options: extended
1742  First char = '('  First char = '('
1743  Need char = ')'  Need char = ')'
# Line 1738  No match Line 1766  No match
1766    
1767  /\(  ( (?>[^()]+) | (?R) )* \) /Ixg  /\(  ( (?>[^()]+) | (?R) )* \) /Ixg
1768  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
1769  Options: extended  Options: extended
1770  First char = '('  First char = '('
1771  Need char = ')'  Need char = ')'
# Line 1753  Need char = ')' Line 1780  Need char = ')'
1780    
1781  /\(  (?: (?>[^()]+) | (?R) ) \) /Ix  /\(  (?: (?>[^()]+) | (?R) ) \) /Ix
1782  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1783  Options: extended  Options: extended
1784  First char = '('  First char = '('
1785  Need char = ')'  Need char = ')'
# Line 1772  No match Line 1798  No match
1798    
1799  /\(  (?: (?>[^()]+) | (?R) )? \) /Ix  /\(  (?: (?>[^()]+) | (?R) )? \) /Ix
1800  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1801  Options: extended  Options: extended
1802  First char = '('  First char = '('
1803  Need char = ')'  Need char = ')'
# Line 1783  Need char = ')' Line 1808  Need char = ')'
1808    
1809  /\(  ( (?>[^()]+) | (?R) )* \) /Ix  /\(  ( (?>[^()]+) | (?R) )* \) /Ix
1810  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
1811  Options: extended  Options: extended
1812  First char = '('  First char = '('
1813  Need char = ')'  Need char = ')'
# Line 1793  Need char = ')' Line 1817  Need char = ')'
1817    
1818  /\( ( ( (?>[^()]+) | (?R) )* ) \) /Ix  /\( ( ( (?>[^()]+) | (?R) )* ) \) /Ix
1819  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
1820  Options: extended  Options: extended
1821  First char = '('  First char = '('
1822  Need char = ')'  Need char = ')'
# Line 1804  Need char = ')' Line 1827  Need char = ')'
1827    
1828  /\( (123)? ( ( (?>[^()]+) | (?R) )* ) \) /Ix  /\( (123)? ( ( (?>[^()]+) | (?R) )* ) \) /Ix
1829  Capturing subpattern count = 3  Capturing subpattern count = 3
 Partial matching not supported  
1830  Options: extended  Options: extended
1831  First char = '('  First char = '('
1832  Need char = ')'  Need char = ')'
# Line 1821  Need char = ')' Line 1843  Need char = ')'
1843    
1844  /\( ( (123)? ( (?>[^()]+) | (?R) )* ) \) /Ix  /\( ( (123)? ( (?>[^()]+) | (?R) )* ) \) /Ix
1845  Capturing subpattern count = 3  Capturing subpattern count = 3
 Partial matching not supported  
1846  Options: extended  Options: extended
1847  First char = '('  First char = '('
1848  Need char = ')'  Need char = ')'
# Line 1838  Need char = ')' Line 1859  Need char = ')'
1859    
1860  /\( (((((((((( ( (?>[^()]+) | (?R) )* )))))))))) \) /Ix  /\( (((((((((( ( (?>[^()]+) | (?R) )* )))))))))) \) /Ix
1861  Capturing subpattern count = 11  Capturing subpattern count = 11
 Partial matching not supported  
1862  Options: extended  Options: extended
1863  First char = '('  First char = '('
1864  Need char = ')'  Need char = ')'
# Line 1858  Need char = ')' Line 1878  Need char = ')'
1878    
1879  /\( ( ( (?>[^()<>]+) | ((?>[^()]+)) | (?R) )* ) \) /Ix  /\( ( ( (?>[^()<>]+) | ((?>[^()]+)) | (?R) )* ) \) /Ix
1880  Capturing subpattern count = 3  Capturing subpattern count = 3
 Partial matching not supported  
1881  Options: extended  Options: extended
1882  First char = '('  First char = '('
1883  Need char = ')'  Need char = ')'
# Line 1866  Need char = ')' Line 1885  Need char = ')'
1885   0: (abcd(xyz<p>qrs)123)   0: (abcd(xyz<p>qrs)123)
1886   1: abcd(xyz<p>qrs)123   1: abcd(xyz<p>qrs)123
1887   2: 123   2: 123
  3: <unset>  
1888    
1889  /\( ( ( (?>[^()]+) | ((?R)) )* ) \) /Ix  /\( ( ( (?>[^()]+) | ((?R)) )* ) \) /Ix
1890  Capturing subpattern count = 3  Capturing subpattern count = 3
 Partial matching not supported  
1891  Options: extended  Options: extended
1892  First char = '('  First char = '('
1893  Need char = ')'  Need char = ')'
# Line 1942  Capturing subpattern count = 0 Line 1959  Capturing subpattern count = 0
1959  No options  No options
1960  No first char  No first char
1961  No need char  No need char
1962    Subject length lower bound = 1
1963  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
1964    _ 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
1965    
# Line 2003  Contains explicit CR or LF match Line 2021  Contains explicit CR or LF match
2021  No options  No options
2022  No first char  No first char
2023  No need char  No need char
2024    Subject length lower bound = 1
2025  Starting byte set: \x09 \x0a \x0b \x0c \x0d \x20  Starting byte set: \x09 \x0a \x0b \x0c \x0d \x20
2026    
2027  /^[[:cntrl:]]/DZ  /^[[:cntrl:]]/DZ
# Line 2249  Need char = 'd' Line 2268  Need char = 'd'
2268  /(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\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
2269  Capturing subpattern count = 271  Capturing subpattern count = 271
2270  Max back reference = 270  Max back reference = 270
 Partial matching not supported  
2271  No options  No options
2272  No first char  No first char
2273  No need char  No need char
# Line 2930  Need char = 'c' Line 2948  Need char = 'c'
2948          End          End
2949  ------------------------------------------------------------------  ------------------------------------------------------------------
2950  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
2951  No options  No options
2952  No first char  No first char
2953  No need char  No need char
# Line 2959  No need char Line 2976  No need char
2976          End          End
2977  ------------------------------------------------------------------  ------------------------------------------------------------------
2978  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
2979  No options  No options
2980  First char = 'x'  First char = 'x'
2981  No need char  No need char
# Line 2975  No need char Line 2991  No need char
2991          End          End
2992  ------------------------------------------------------------------  ------------------------------------------------------------------
2993  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
2994  No options  No options
2995  First char = 'x'  First char = 'x'
2996  No need char  No need char
# Line 2999  No need char Line 3014  No need char
3014    
3015  /^(\w++|\s++)*$/I  /^(\w++|\s++)*$/I
3016  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3017  Options: anchored  Options: anchored
3018  No first char  No first char
3019  No need char  No need char
# Line 3013  No match Line 3027  No match
3027    
3028  /(\d++)(\w)/I  /(\d++)(\w)/I
3029  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
3030  No options  No options
3031  No first char  No first char
3032  No need char  No need char
# Line 3028  No match Line 3041  No match
3041    
3042  /a++b/I  /a++b/I
3043  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3044  No options  No options
3045  First char = 'a'  First char = 'a'
3046  Need char = 'b'  Need char = 'b'
# Line 3037  Need char = 'b' Line 3049  Need char = 'b'
3049    
3050  /(a++b)/I  /(a++b)/I
3051  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3052  No options  No options
3053  First char = 'a'  First char = 'a'
3054  Need char = 'b'  Need char = 'b'
# Line 3047  Need char = 'b' Line 3058  Need char = 'b'
3058    
3059  /(a++)b/I  /(a++)b/I
3060  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3061  No options  No options
3062  First char = 'a'  First char = 'a'
3063  Need char = 'b'  Need char = 'b'
# Line 3057  Need char = 'b' Line 3067  Need char = 'b'
3067    
3068  /([^()]++|\([^()]*\))+/I  /([^()]++|\([^()]*\))+/I
3069  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3070  No options  No options
3071  No first char  No first char
3072  No need char  No need char
# Line 3067  No need char Line 3076  No need char
3076    
3077  /\(([^()]++|\([^()]+\))+\)/I  /\(([^()]++|\([^()]+\))+\)/I
3078  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3079  No options  No options
3080  First char = '('  First char = '('
3081  Need char = ')'  Need char = ')'
# Line 3130  Failed: nothing to repeat at offset 7 Line 3138  Failed: nothing to repeat at offset 7
3138          End          End
3139  ------------------------------------------------------------------  ------------------------------------------------------------------
3140  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3141  No options  No options
3142  First char = 'x'  First char = 'x'
3143  Need char = 'b'  Need char = 'b'
# Line 3147  Need char = 'b' Line 3154  Need char = 'b'
3154          End          End
3155  ------------------------------------------------------------------  ------------------------------------------------------------------
3156  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3157  Options: ungreedy  Options: ungreedy
3158  First char = 'x'  First char = 'x'
3159  Need char = 'b'  Need char = 'b'
# Line 3176  Need char = 'b' Line 3182  Need char = 'b'
3182          End          End
3183  ------------------------------------------------------------------  ------------------------------------------------------------------
3184  Capturing subpattern count = 5  Capturing subpattern count = 5
 Partial matching not supported  
3185  Options: anchored  Options: anchored
3186  No first char  No first char
3187  No need char  No need char
# Line 3192  No need char Line 3197  No need char
3197          End          End
3198  ------------------------------------------------------------------  ------------------------------------------------------------------
3199  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3200  Options: anchored  Options: anchored
3201  No first char  No first char
3202  Need char = 'b'  Need char = 'b'
# Line 3210  Need char = 'b' Line 3214  Need char = 'b'
3214          End          End
3215  ------------------------------------------------------------------  ------------------------------------------------------------------
3216  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3217  Options: anchored  Options: anchored
3218  No first char  No first char
3219  Need char = 'b'  Need char = 'b'
# Line 3225  Failed: POSIX collating elements are not Line 3228  Failed: POSIX collating elements are not
3228  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
3229    
3230  /\l/I  /\l/I
3231  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
3232    
3233  /\L/I  /\L/I
3234  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
3235    
3236  /\N{name}/I  /\N{name}/I
3237  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
3238    
3239  /\u/I  /\u/I
3240  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
3241    
3242  /\U/I  /\U/I
3243  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
3244    
3245  /[/I  /[/I
3246  Failed: missing terminating ] for character class at offset 1  Failed: missing terminating ] for character class at offset 1
# Line 3286  No need char Line 3289  No need char
3289    
3290  /< (?: (?(R) \d++  | [^<>]*+) | (?R)) * >/Ix  /< (?: (?(R) \d++  | [^<>]*+) | (?R)) * >/Ix
3291  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3292  Options: extended  Options: extended
3293  First char = '<'  First char = '<'
3294  Need char = '>'  Need char = '>'
# Line 3336  Need char = 'X' Line 3338  Need char = 'X'
3338  /(.*)\d+\1/I  /(.*)\d+\1/I
3339  Capturing subpattern count = 1  Capturing subpattern count = 1
3340  Max back reference = 1  Max back reference = 1
 Partial matching not supported  
3341  No options  No options
3342  No first char  No first char
3343  No need char  No need char
3344    
3345  /(.*)\d+/I  /(.*)\d+/I
3346  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3347  No options  No options
3348  First char at start or follows newline  First char at start or follows newline
3349  No need char  No need char
# Line 3351  No need char Line 3351  No need char
3351  /(.*)\d+\1/Is  /(.*)\d+\1/Is
3352  Capturing subpattern count = 1  Capturing subpattern count = 1
3353  Max back reference = 1  Max back reference = 1
 Partial matching not supported  
3354  Options: dotall  Options: dotall
3355  No first char  No first char
3356  No need char  No need char
3357    
3358  /(.*)\d+/Is  /(.*)\d+/Is
3359  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3360  Options: anchored dotall  Options: anchored dotall
3361  No first char  No first char
3362  No need char  No need char
# Line 3366  No need char Line 3364  No need char
3364  /(.*(xyz))\d+\2/I  /(.*(xyz))\d+\2/I
3365  Capturing subpattern count = 2  Capturing subpattern count = 2
3366  Max back reference = 2  Max back reference = 2
 Partial matching not supported  
3367  No options  No options
3368  First char at start or follows newline  First char at start or follows newline
3369  Need char = 'z'  Need char = 'z'
# Line 3374  Need char = 'z' Line 3371  Need char = 'z'
3371  /((.*))\d+\1/I  /((.*))\d+\1/I
3372  Capturing subpattern count = 2  Capturing subpattern count = 2
3373  Max back reference = 1  Max back reference = 1
 Partial matching not supported  
3374  No options  No options
3375  No first char  No first char
3376  No need char  No need char
# Line 3391  Need char = 'b' Line 3387  Need char = 'b'
3387    
3388  /(?=a).*/I  /(?=a).*/I
3389  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
3390  No options  No options
3391  First char = 'a'  First char = 'a'
3392  No need char  No need char
# Line 3497  Capturing subpattern count = 0 Line 3492  Capturing subpattern count = 0
3492  No options  No options
3493  No first char  No first char
3494  No need char  No need char
3495    Subject length lower bound = 1
3496  Starting byte set: a b  Starting byte set: a b
3497    
3498  /[^a]/I  /[^a]/I
# Line 3516  Capturing subpattern count = 0 Line 3512  Capturing subpattern count = 0
3512  No options  No options
3513  No first char  No first char
3514  Need char = '6'  Need char = '6'
3515    Subject length lower bound = 4
3516  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
3517    
3518  /a^b/I  /a^b/I
# Line 3549  Capturing subpattern count = 0 Line 3546  Capturing subpattern count = 0
3546  Options: caseless  Options: caseless
3547  No first char  No first char
3548  No need char  No need char
3549    Subject length lower bound = 1
3550  Starting byte set: A B a b  Starting byte set: A B a b
3551    
3552  /[ab](?i)cd/IS  /[ab](?i)cd/IS
# Line 3556  Capturing subpattern count = 0 Line 3554  Capturing subpattern count = 0
3554  No options  No options
3555  No first char  No first char
3556  Need char = 'd' (caseless)  Need char = 'd' (caseless)
3557    Subject length lower bound = 3
3558  Starting byte set: a b  Starting byte set: a b
3559    
3560  /abc(?C)def/I  /abc(?C)def/I
# Line 3713  No need char Line 3712  No need char
3712    
3713  /(\d{3}(?C))*/I  /(\d{3}(?C))*/I
3714  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
3715  No options  No options
3716  No first char  No first char
3717  No need char  No need char
# Line 3842  Callout 0: last capture = 1 Line 3840  Callout 0: last capture = 1
3840    
3841  /a(b+)(c*)(?C1)/I  /a(b+)(c*)(?C1)/I
3842  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
3843  No options  No options
3844  First char = 'a'  First char = 'a'
3845  Need char = 'b'  Need char = 'b'
# Line 3868  No match Line 3865  No match
3865    
3866  /a(b+?)(c*?)(?C1)/I  /a(b+?)(c*?)(?C1)/I
3867  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
3868  No options  No options
3869  First char = 'a'  First char = 'a'
3870  Need char = 'b'  Need char = 'b'
# Line 3909  Capturing subpattern count = 0 Line 3905  Capturing subpattern count = 0
3905  No options  No options
3906  No first char  No first char
3907  No need char  No need char
3908    Subject length lower bound = 1
3909  Starting byte set: a b  Starting byte set: a b
3910    
3911  /(?R)/I  /(?R)/I
# Line 4028  No options Line 4025  No options
4025  First char = 'a'  First char = 'a'
4026  Need char = 'b'  Need char = 'b'
4027    
 /^\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  
   
4028  /^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/I  /^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/I
4029  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
4030  Options: anchored  Options: anchored
4031  No first char  No first char
4032  No need char  No need char
# Line 4105  No match Line 4067  No match
4067    
4068  /((< (?: (?(R) \d++  | [^<>]*+) | (?2)) * >))/Ix  /((< (?: (?(R) \d++  | [^<>]*+) | (?2)) * >))/Ix
4069  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
4070  Options: extended  Options: extended
4071  First char = '<'  First char = '<'
4072  Need char = '>'  Need char = '>'
# Line 4279  Named capturing subpatterns: Line 4240  Named capturing subpatterns:
4240    one     1    one     1
4241    three   3    three   3
4242    two     2    two     2
 Partial matching not supported  
4243  Options: anchored caseless  Options: anchored caseless
4244  No first char  No first char
4245  No need char  No need char
# Line 4325  No need char Line 4285  No need char
4285    
4286  /(.*)a/Is  /(.*)a/Is
4287  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
4288  Options: anchored dotall  Options: anchored dotall
4289  No first char  No first char
4290  Need char = 'a'  Need char = 'a'
# Line 4333  Need char = 'a' Line 4292  Need char = 'a'
4292  /(.*)a\1/Is  /(.*)a\1/Is
4293  Capturing subpattern count = 1  Capturing subpattern count = 1
4294  Max back reference = 1  Max back reference = 1
 Partial matching not supported  
4295  Options: dotall  Options: dotall
4296  No first char  No first char
4297  Need char = 'a'  Need char = 'a'
# Line 4341  Need char = 'a' Line 4299  Need char = 'a'
4299  /(.*)a(b)\2/Is  /(.*)a(b)\2/Is
4300  Capturing subpattern count = 2  Capturing subpattern count = 2
4301  Max back reference = 2  Max back reference = 2
 Partial matching not supported  
4302  Options: anchored dotall  Options: anchored dotall
4303  No first char  No first char
4304  Need char = 'b'  Need char = 'b'
4305    
4306  /((.*)a|(.*)b)z/Is  /((.*)a|(.*)b)z/Is
4307  Capturing subpattern count = 3  Capturing subpattern count = 3
 Partial matching not supported  
4308  Options: anchored dotall  Options: anchored dotall
4309  No first char  No first char
4310  Need char = 'z'  Need char = 'z'
# Line 4356  Need char = 'z' Line 4312  Need char = 'z'
4312  /((.*)a|(.*)b)z\1/Is  /((.*)a|(.*)b)z\1/Is
4313  Capturing subpattern count = 3  Capturing subpattern count = 3
4314  Max back reference = 1  Max back reference = 1
 Partial matching not supported  
4315  Options: dotall  Options: dotall
4316  No first char  No first char
4317  Need char = 'z'  Need char = 'z'
# Line 4364  Need char = 'z' Line 4319  Need char = 'z'
4319  /((.*)a|(.*)b)z\2/Is  /((.*)a|(.*)b)z\2/Is
4320  Capturing subpattern count = 3  Capturing subpattern count = 3
4321  Max back reference = 2  Max back reference = 2
 Partial matching not supported  
4322  Options: dotall  Options: dotall
4323  No first char  No first char
4324  Need char = 'z'  Need char = 'z'
# Line 4372  Need char = 'z' Line 4326  Need char = 'z'
4326  /((.*)a|(.*)b)z\3/Is  /((.*)a|(.*)b)z\3/Is
4327  Capturing subpattern count = 3  Capturing subpattern count = 3
4328  Max back reference = 3  Max back reference = 3
 Partial matching not supported  
4329  Options: dotall  Options: dotall
4330  No first char  No first char
4331  Need char = 'z'  Need char = 'z'
# Line 4380  Need char = 'z' Line 4333  Need char = 'z'
4333  /((.*)a|^(.*)b)z\3/Is  /((.*)a|^(.*)b)z\3/Is
4334  Capturing subpattern count = 3  Capturing subpattern count = 3
4335  Max back reference = 3  Max back reference = 3
 Partial matching not supported  
4336  Options: anchored dotall  Options: anchored dotall
4337  No first char  No first char
4338  Need char = 'z'  Need char = 'z'
4339    
4340  /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a/Is  /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a/Is
4341  Capturing subpattern count = 31  Capturing subpattern count = 31
 Partial matching not supported  
4342  Options: anchored dotall  Options: anchored dotall
4343  No first char  No first char
4344  No need char  No need char
# Line 4395  No need char Line 4346  No need char
4346  /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\31/Is  /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\31/Is
4347  Capturing subpattern count = 31  Capturing subpattern count = 31
4348  Max back reference = 31  Max back reference = 31
 Partial matching not supported  
4349  Options: dotall  Options: dotall
4350  No first char  No first char
4351  No need char  No need char
# Line 4403  No need char Line 4353  No need char
4353  /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\32/Is  /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\32/Is
4354  Capturing subpattern count = 32  Capturing subpattern count = 32
4355  Max back reference = 32  Max back reference = 32
 Partial matching not supported  
4356  Options: dotall  Options: dotall
4357  No first char  No first char
4358  No need char  No need char
# Line 4470  Need char = 'c' Line 4419  Need char = 'c'
4419    
4420  /(a+)*zz/I  /(a+)*zz/I
4421  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
4422  No options  No options
4423  No first char  No first char
4424  Need char = 'z'  Need char = 'z'
# Line 4607  Failed: two named subpatterns have the s Line 4555  Failed: two named subpatterns have the s
4555  Capturing subpattern count = 3  Capturing subpattern count = 3
4556  Named capturing subpatterns:  Named capturing subpatterns:
4557    elem   2    elem   2
 Partial matching not supported  
4558  No options  No options
4559  First char = '['  First char = '['
4560  Need char = ']'  Need char = ']'
# Line 4625  No match Line 4572  No match
4572  Capturing subpattern count = 3  Capturing subpattern count = 3
4573  Named capturing subpatterns:  Named capturing subpatterns:
4574    elem   2    elem   2
 Partial matching not supported  
4575  No options  No options
4576  First char = '['  First char = '['
4577  Need char = ']'  Need char = ']'
# Line 4732  No need char Line 4678  No need char
4678    
4679  /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/Ii  /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/Ii
4680  Capturing subpattern count = 3  Capturing subpattern count = 3
 Partial matching not supported  
4681  Options: caseless  Options: caseless
4682  No first char  No first char
4683  Need char = 'g' (caseless)  Need char = 'g' (caseless)
# Line 4742  Need char = 'g' (caseless) Line 4687  Need char = 'g' (caseless)
4687    
4688  /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/IiS  /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/IiS
4689  Capturing subpattern count = 3  Capturing subpattern count = 3
 Partial matching not supported  
4690  Options: caseless  Options: caseless
4691  No first char  No first char
4692  Need char = 'g' (caseless)  Need char = 'g' (caseless)
4693  Study returned NULL  Subject length lower bound = 8
4694    No set of starting bytes
4695       Baby Bjorn Active Carrier - With free SHIPPING!!       Baby Bjorn Active Carrier - With free SHIPPING!!
4696   0: Baby Bjorn Active Carrier - With free SHIPPING!!   0: Baby Bjorn Active Carrier - With free SHIPPING!!
4697   1: Baby Bjorn Active Carrier - With free SHIPPING!!   1: Baby Bjorn Active Carrier - With free SHIPPING!!
# Line 4761  Study returned NULL Line 4706  Study returned NULL
4706          End          End
4707  ------------------------------------------------------------------  ------------------------------------------------------------------
4708  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
4709  No options  No options
4710  No first char  No first char
4711  Need char = 'b'  Need char = 'b'
4712  Study returned NULL  Subject length lower bound = 1
4713    No set of starting bytes
4714    
4715  /(a|b)*.?c/ISDZ  /(a|b)*.?c/ISDZ
4716  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 4785  Capturing subpattern count = 1 Line 4730  Capturing subpattern count = 1
4730  No options  No options
4731  No first char  No first char
4732  Need char = 'c'  Need char = 'c'
4733  Study returned NULL  Subject length lower bound = 1
4734    No set of starting bytes
4735    
4736  /abc(?C255)de(?C)f/DZ  /abc(?C255)de(?C)f/DZ
4737  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 4854  No match Line 4800  No match
4800          End          End
4801  ------------------------------------------------------------------  ------------------------------------------------------------------
4802  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
4803  Options:  Options:
4804  No first char  No first char
4805  Need char = 'b'  Need char = 'b'
# Line 4899  Need char = 'b' Line 4844  Need char = 'b'
4844          End          End
4845  ------------------------------------------------------------------  ------------------------------------------------------------------
4846  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
4847  Options:  Options:
4848  First char = 'a'  First char = 'a'
4849  Need char = 'b'  Need char = 'b'
# Line 5337  No match Line 5281  No match
5281          End          End
5282  ------------------------------------------------------------------  ------------------------------------------------------------------
5283  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
5284  Options:  Options:
5285  No first char  No first char
5286  Need char = '3'  Need char = '3'
# Line 5369  Need char = '3' Line 5312  Need char = '3'
5312    
5313  /\b.*/I  /\b.*/I
5314  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5315  No options  No options
5316  No first char  No first char
5317  No need char  No need char
# Line 5378  No need char Line 5320  No need char
5320    
5321  /\b.*/Is  /\b.*/Is
5322  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5323  Options: dotall  Options: dotall
5324  No first char  No first char
5325  No need char  No need char
# Line 5387  No need char Line 5328  No need char
5328    
5329  /(?!.bcd).*/I  /(?!.bcd).*/I
5330  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5331  No options  No options
5332  No first char  No first char
5333  No need char  No need char
# Line 5400  No options Line 5340  No options
5340  First char = 'a'  First char = 'a'
5341  Need char = 'e'  Need char = 'e'
5342      ab\P      ab\P
5343  Partial match  Partial match: ab
5344      abc\P      abc\P
5345  Partial match  Partial match: abc
5346      abcd\P      abcd\P
5347  Partial match  Partial match: abcd
5348      abcde\P      abcde\P
5349   0: abcde   0: abcde
5350      the quick brown abc\P      the quick brown abc\P
5351  Partial match  Partial match: abc
5352      ** Failers\P      ** Failers\P
5353  No match  No match
5354      the quick brown abxyz fox\P      the quick brown abxyz fox\P
# Line 5433  Need char = '/' Line 5373  Need char = '/'
5373   1: 02   1: 02
5374   2: 05   2: 05
5375      1\P      1\P
5376  Partial match  Partial match: 1
5377      1/2\P      1/2\P
5378  Partial match  Partial match: 1/2
5379      1/2/0\P      1/2/0\P
5380  Partial match  Partial match: 1/2/0
5381      1/2/04\P      1/2/04\P
5382   0: 1/2/04   0: 1/2/04
5383   1: 1   1: 1
5384   2: 2   2: 2
5385      0\P      0\P
5386  Partial match  Partial match: 0
5387      02/\P      02/\P
5388  Partial match  Partial match: 02/
5389      02/0\P      02/0\P
5390  Partial match  Partial match: 02/0
5391      02/1\P      02/1\P
5392  Partial match  Partial match: 02/1
5393      ** Failers\P      ** Failers\P
5394  No match  No match
5395      \P      \P
# Line 5471  No match Line 5411  No match
5411    
5412  /0{0,2}ABC/I  /0{0,2}ABC/I
5413  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5414  No options  No options
5415  No first char  No first char
5416  Need char = 'C'  Need char = 'C'
5417    
5418  /\d{3,}ABC/I  /\d{3,}ABC/I
5419  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5420  No options  No options
5421  No first char  No first char
5422  Need char = 'C'  Need char = 'C'
5423    
5424  /\d*ABC/I  /\d*ABC/I
5425  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5426  No options  No options
5427  No first char  No first char
5428  Need char = 'C'  Need char = 'C'
5429    
5430  /[abc]+DE/I  /[abc]+DE/I
5431  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5432  No options  No options
5433  No first char  No first char
5434  Need char = 'E'  Need char = 'E'
# Line 5505  Need char = '3' Line 5441  Need char = '3'
5441      123\P      123\P
5442   0: 123   0: 123
5443      a\P      a\P
5444  Partial match  Partial match: a
5445      b\P      b\P
5446  Partial match  Partial match: b
5447      c\P      c\P
5448  Partial match  Partial match: c
5449      c12\P      c12\P
5450  Partial match  Partial match: c12
5451      c123\P      c123\P
5452   0: c123   0: c123
5453    
# Line 5521  Options: anchored Line 5457  Options: anchored
5457  No first char  No first char
5458  Need char = 'X'  Need char = 'X'
5459      1\P      1\P
5460  Partial match  Partial match: 1
5461      123\P      123\P
5462  Partial match  Partial match: 123
5463      123X      123X
5464   0: 123X   0: 123X
5465      1234\P      1234\P
5466  Partial match  Partial match: 1234
5467      1234X      1234X
5468   0: 1234X   0: 1234X
5469      12345\P      12345\P
5470  Partial match  Partial match: 12345
5471      12345X      12345X
5472   0: 12345X   0: 12345X
5473      *** Failers      *** Failers
# Line 5578  Capturing subpattern count = 1 Line 5514  Capturing subpattern count = 1
5514  No options  No options
5515  No first char  No first char
5516  No need char  No need char
5517    Subject length lower bound = 1
5518  Starting byte set: a b  Starting byte set: a b
5519  Compiled regex written to testsavedregex  Compiled regex written to testsavedregex
5520  Study data written to testsavedregex  Study data written to testsavedregex
# Line 5598  Capturing subpattern count = 1 Line 5535  Capturing subpattern count = 1
5535  No options  No options
5536  No first char  No first char
5537  No need char  No need char
5538    Subject length lower bound = 1
5539  Starting byte set: a b  Starting byte set: a b
5540  Compiled regex written to testsavedregex  Compiled regex written to testsavedregex
5541  Study data written to testsavedregex  Study data written to testsavedregex
# Line 5616  No match Line 5554  No match
5554  ~<(\w+)/?>(.)*</(\1)>~smgI  ~<(\w+)/?>(.)*</(\1)>~smgI
5555  Capturing subpattern count = 3  Capturing subpattern count = 3
5556  Max back reference = 1  Max back reference = 1
 Partial matching not supported  
5557  Options: multiline dotall  Options: multiline dotall
5558  First char = '<'  First char = '<'
5559  Need char = '>'  Need char = '>'
# Line 5669  No match Line 5606  No match
5606      line one\nthis is a line\nbreak in the second line      line one\nthis is a line\nbreak in the second line
5607  No match  No match
5608    
5609  /ab.cd/IP  /ab.cd/P
5610      ab-cd      ab-cd
5611   0: ab-cd   0: ab-cd
5612      ab=cd      ab=cd
# Line 5679  No match: POSIX code 17: match failed Line 5616  No match: POSIX code 17: match failed
5616      ab\ncd      ab\ncd
5617  No match: POSIX code 17: match failed  No match: POSIX code 17: match failed
5618    
5619  /ab.cd/IPs  /ab.cd/Ps
5620      ab-cd      ab-cd
5621   0: ab-cd   0: ab-cd
5622      ab=cd      ab=cd
# Line 5923  Matched, but too many substrings Line 5860  Matched, but too many substrings
5860    
5861  /[^()]*(?:\((?R)\)[^()]*)*/I  /[^()]*(?:\((?R)\)[^()]*)*/I
5862  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5863  No options  No options
5864  No first char  No first char
5865  No need char  No need char
# Line 5936  No need char Line 5872  No need char
5872    
5873  /[^()]*(?:\((?>(?R))\)[^()]*)*/I  /[^()]*(?:\((?>(?R))\)[^()]*)*/I
5874  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5875  No options  No options
5876  No first char  No first char
5877  No need char  No need char
# Line 5947  No need char Line 5882  No need char
5882    
5883  /[^()]*(?:\((?R)\))*[^()]*/I  /[^()]*(?:\((?R)\))*[^()]*/I
5884  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5885  No options  No options
5886  No first char  No first char
5887  No need char  No need char
# Line 5958  No need char Line 5892  No need char
5892    
5893  /(?:\((?R)\))*[^()]*/I  /(?:\((?R)\))*[^()]*/I
5894  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5895  No options  No options
5896  No first char  No first char
5897  No need char  No need char
# Line 5971  No need char Line 5904  No need char
5904    
5905  /(?:\((?R)\))|[^()]*/I  /(?:\((?R)\))|[^()]*/I
5906  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
5907  No options  No options
5908  No first char  No first char
5909  No need char  No need char
# Line 5984  No need char Line 5916  No need char
5916      ((this))      ((this))
5917   0: ((this))   0: ((this))
5918    
5919  /a(b)c/IPN  /a(b)c/PN
5920      abc      abc
5921  Matched with REG_NOSUB  Matched with REG_NOSUB
5922    
5923  /a(?P<name>b)c/IPN  /a(?P<name>b)c/PN
5924      abc      abc
5925  Matched with REG_NOSUB  Matched with REG_NOSUB
5926    
# Line 6313  Failed: octal value is greater than \377 Line 6245  Failed: octal value is greater than \377
6245    
6246  /\s*,\s*/IS  /\s*,\s*/IS
6247  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
6248  No options  No options
6249  No first char  No first char
6250  Need char = ','  Need char = ','
6251    Subject length lower bound = 1
6252  Starting byte set: \x09 \x0a \x0c \x0d \x20 ,  Starting byte set: \x09 \x0a \x0c \x0d \x20 ,
6253      \x0b,\x0b      \x0b,\x0b
6254   0: ,   0: ,
# Line 6443  Unknown newline type at: <bad> Line 6375  Unknown newline type at: <bad>
6375    
6376  /.*/I<lf>  /.*/I<lf>
6377  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
6378  Options:  Options:
6379  Forced newline sequence: LF  Forced newline sequence: LF
6380  First char at start or follows newline  First char at start or follows newline
# Line 6469  No need char Line 6400  No need char
6400    
6401  /\w+(.)(.)?def/Is  /\w+(.)(.)?def/Is
6402  Capturing subpattern count = 2  Capturing subpattern count = 2
 Partial matching not supported  
6403  Options: dotall  Options: dotall
6404  No first char  No first char
6405  Need char = 'f'  Need char = 'f'
# Line 6486  Need char = 'f' Line 6416  Need char = 'f'
6416    
6417  +((?:\s|//.*\\n|/[*](?:\\n|.)*?[*]/)*)+I  +((?:\s|//.*\\n|/[*](?:\\n|.)*?[*]/)*)+I
6418  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
6419  No options  No options
6420  No first char  No first char
6421  No need char  No need char
# Line 6621  No need char Line 6550  No need char
6550    
6551  /(a*b|(?i:c*(?-i)d))/IS  /(a*b|(?i:c*(?-i)d))/IS
6552  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
6553  No options  No options
6554  No first char  No first char
6555  No need char  No need char
6556    Subject length lower bound = 1
6557  Starting byte set: C a b c d  Starting byte set: C a b c d
6558    
6559  /()[ab]xyz/IS  /()[ab]xyz/IS
# Line 6632  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  /(|)[ab]xyz/IS  /(|)[ab]xyz/IS
# Line 6639  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  Starting byte set: a b
6574    
6575  /(|c)[ab]xyz/IS  /(|c)[ab]xyz/IS
# Line 6646  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  /(|c?)[ab]xyz/IS  /(|c?)[ab]xyz/IS
# Line 6653  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  Starting byte set: a b c
6590    
6591  /(d?|c?)[ab]xyz/IS  /(d?|c?)[ab]xyz/IS
# Line 6660  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  /(d?|c)[ab]xyz/IS  /(d?|c)[ab]xyz/IS
# Line 6667  Capturing subpattern count = 1 Line 6601  Capturing subpattern count = 1
6601  No options  No options
6602  No first char  No first char
6603  Need char = 'z'  Need char = 'z'
6604    Subject length lower bound = 4
6605  Starting byte set: a b c d  Starting byte set: a b c d
6606    
6607  /^a*b\d/DZ  /^a*b\d/DZ
# Line 6680  Starting byte set: a b c d Line 6615  Starting byte set: a b c d
6615          End          End
6616  ------------------------------------------------------------------  ------------------------------------------------------------------
6617  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
6618  Options: anchored  Options: anchored
6619  No first char  No first char
6620  Need char = 'b'  Need char = 'b'
# Line 6696  Need char = 'b' Line 6630  Need char = 'b'
6630          End          End
6631  ------------------------------------------------------------------  ------------------------------------------------------------------
6632  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
6633  Options: anchored  Options: anchored
6634  No first char  No first char
6635  Need char = 'b'  Need char = 'b'
# Line 6712  Need char = 'b' Line 6645  Need char = 'b'
6645          End          End
6646  ------------------------------------------------------------------  ------------------------------------------------------------------
6647  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
6648  Options: anchored  Options: anchored
6649  No first char  No first char
6650  Need char = 'b'  Need char = 'b'
# Line 6728  Need char = 'b' Line 6660  Need char = 'b'
6660          End          End
6661  ------------------------------------------------------------------  ------------------------------------------------------------------
6662  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
6663  Options: anchored  Options: anchored
6664  No first char  No first char
6665  Need char = 'A'  Need char = 'A'
# Line 6750  No match Line 6681  No match
6681          End          End
6682  ------------------------------------------------------------------  ------------------------------------------------------------------
6683  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
6684  Options: anchored caseless  Options: anchored caseless
6685  No first char  No first char
6686  Need char = 'A' (caseless)  Need char = 'A' (caseless)
# Line 6761  Need char = 'A' (caseless) Line 6691  Need char = 'A' (caseless)
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 = 1
6714  Starting byte set: a b c d  Starting byte set: a b c d
6715    
6716  /(a+|b+)[cd]/IS  /(a+|b+)[cd]/IS
6717  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
6718  No options  No options
6719  No first char  No first char
6720  No need char  No need char
6721    Subject length lower bound = 2
6722  Starting byte set: a b  Starting byte set: a b
6723    
6724  /((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((  /((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
# Line 7594  No match Line 7524  No match
7524          ^          ^
7525          CBra 1          CBra 1
7526          Cond          Cond
7527        2 Cond ref        2 Cond nref
7528          y          y
7529          Ket          Ket
7530          [()]          [()]
# Line 7660  Named capturing subpatterns: Line 7590  Named capturing subpatterns:
7590    one     1    one     1
7591    three   3    three   3
7592    two     2    two     2
 Partial matching not supported  
7593  Options: anchored caseless  Options: anchored caseless
7594  No first char  No first char
7595  No need char  No need char
# Line 7694  No match Line 7623  No match
7623  /(?=(\w+))\1:/I  /(?=(\w+))\1:/I
7624  Capturing subpattern count = 1  Capturing subpattern count = 1
7625  Max back reference = 1  Max back reference = 1
 Partial matching not supported  
7626  No options  No options
7627  No first char  No first char
7628  Need char = ':'  Need char = ':'
# Line 7707  Capturing subpattern count = 1 Line 7635  Capturing subpattern count = 1
7635  Max back reference = 1  Max back reference = 1
7636  Named capturing subpatterns:  Named capturing subpatterns:
7637    abc   1    abc   1
 Partial matching not supported  
7638  No options  No options
7639  No first char  No first char
7640  Need char = ':'  Need char = ':'
# Line 7715  Need char = ':' Line 7642  Need char = ':'
7642   0: abcd:   0: abcd:
7643   1: abcd   1: abcd
7644    
 /(?'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  
   
7645  /(?'abc'a|b)(?<abc>d|e)\k<abc>{2}/J  /(?'abc'a|b)(?<abc>d|e)\k<abc>{2}/J
7646      adaa      adaa
7647   0: adaa   0: adaa
# Line 7755  No match Line 7668  No match
7668      bddd      bddd
7669  No match  No match
7670    
 /^(?<ab>a)? (?(<ab>)b|c) (?('ab')d|e)/x  
     abd  
  0: abd  
  1: a  
     ce  
  0: ce  
   
7671  /(?(<bc))/  /(?(<bc))/
7672  Failed: malformed number or name after (?( at offset 6  Failed: malformed number or name after (?( at offset 6
7673    
# Line 7792  Failed: reference to non-existent subpat Line 7698  Failed: reference to non-existent subpat
7698   1: abcabc1Xabc2XabcX   1: abcabc1Xabc2XabcX
7699   2: abcabc1Xabc2XabcX   2: abcabc1Xabc2XabcX
7700    
 /^(?(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>  
   
7701  /^(?(DEFINE) abc | xyz ) /x  /^(?(DEFINE) abc | xyz ) /x
7702  Failed: DEFINE group contains more than one branch at offset 22  Failed: DEFINE group contains more than one branch at offset 22
7703    
# Line 7851  No match Line 7739  No match
7739  No match  No match
7740    
7741  /^abc./mgx<any>  /^abc./mgx<any>
7742      abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x85abc7 \x{2028}abc8 \x{2029}abc9 JUNK      abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x85abc7 JUNK
7743   0: abc1   0: abc1
7744   0: abc2   0: abc2
7745   0: abc3   0: abc3
# Line 7861  No match Line 7749  No match
7749   0: abc7   0: abc7
7750    
7751  /abc.$/mgx<any>  /abc.$/mgx<any>
7752      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
7753   0: abc1   0: abc1
7754   0: abc2   0: abc2
7755   0: abc3   0: abc3
# Line 7987  Need char = 'P' Line 7875  Need char = 'P'
7875   0: PXP   0: PXP
7876   1: P   1: P
7877    
 /(?(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  
   
7878  /(?:a(?&abc)b)*(?<abc>x)/  /(?:a(?&abc)b)*(?<abc>x)/
7879      123axbaxbaxbx456      123axbaxbaxbx456
7880   0: axbaxbaxbx   0: axbaxbaxbx
# Line 8064  No match Line 7912  No match
7912     DEFabcABCXYZ     DEFabcABCXYZ
7913  No match  No match
7914    
 /^(a(b))\1\g1\g{1}\g-1\g{-1}\g{-02}Z/  
     ababababbbabZXXXX  
  0: ababababbbabZ  
  1: ab  
  2: b  
   
7915  /^(a)\g-2/  /^(a)\g-2/
7916  Failed: reference to non-existent subpattern at offset 7  Failed: reference to non-existent subpattern at offset 7
7917    
# Line 8163  No match Line 8005  No match
8005   0+   0+
8006    
8007  /abc.$/mgx<anycrlf>  /abc.$/mgx<anycrlf>
8008      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
8009   0: abc1   0: abc1
8010   0: abc4   0: abc4
8011   0: abc5   0: abc5
# Line 8325  Failed: reference to non-existent subpat Line 8167  Failed: reference to non-existent subpat
8167   0: Y!   0: Y!
8168   1: !   1: !
8169    
 /(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  
   
8170  /(?<A>tom|bon)-\k{A}/  /(?<A>tom|bon)-\k{A}/
8171      tom-tom      tom-tom
8172   0: tom-tom   0: tom-tom
# Line 8357  No match Line 8179  No match
8179      tom-bon      tom-bon
8180  No match  No match
8181    
 /(?<A>tom|bon)-\g{A}/  
     tom-tom  
  0: tom-tom  
  1: tom  
     bon-bon  
  0: bon-bon  
  1: bon  
   
8182  /\g{A/  /\g{A/
8183  Failed: syntax error in subpattern name (missing terminator) at offset 4  Failed: syntax error in subpattern name (missing terminator) at offset 4
8184    
# Line 8459  Failed: syntax error in subpattern name Line 8273  Failed: syntax error in subpattern name
8273   3: <unset>   3: <unset>
8274   4: x   4: x
8275    
 /(?|(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  
   
8276  /[\h]/BZ  /[\h]/BZ
8277  ------------------------------------------------------------------  ------------------------------------------------------------------
8278          Bra          Bra
# Line 8831  Failed: missing terminating ] for charac Line 8569  Failed: missing terminating ] for charac
8569          End          End
8570  ------------------------------------------------------------------  ------------------------------------------------------------------
8571    
 /^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  
   
8572  /^a+(*FAIL)/C  /^a+(*FAIL)/C
8573      aaaaaa      aaaaaa
8574  --->aaaaaa  --->aaaaaa
# Line 9040  No match Line 8697  No match
8697  +13   ^  ^      (*FAIL)  +13   ^  ^      (*FAIL)
8698  No match  No match
8699    
 /a(*PRUNE:XXX)b/  
 Failed: (*VERB) with an argument is not supported at offset 8  
   
8700  /a(*MARK)b/  /a(*MARK)b/
8701  Failed: (*VERB) not recognized at offset 7  Failed: (*MARK) must have an argument at offset 7
8702    
8703  /(?i:A{1,}\6666666666)/  /(?i:A{1,}\6666666666)/
8704  Failed: number is too big at offset 19  Failed: number is too big at offset 19
# Line 9133  No match Line 8787  No match
8787  No match  No match
8788      a\x85b      a\x85b
8789  No match  No match
8790    
8791    /(*ANY).*/g
8792        abc\r\ndef
8793     0: abc
8794     0:
8795     0: def
8796     0:
8797    
8798    /(*ANYCRLF).*/g
8799        abc\r\ndef
8800     0: abc
8801     0:
8802     0: def
8803     0:
8804    
8805    /(*CRLF).*/g
8806        abc\r\ndef
8807     0: abc
8808     0:
8809     0: def
8810     0:
8811    
8812  /a\Rb/I<bsr_anycrlf>  /a\Rb/I<bsr_anycrlf>
8813  Capturing subpattern count = 0  Capturing subpattern count = 0
# Line 9216  No match Line 8891  No match
8891    
8892  /a\R{2,4}b/I<bsr_anycrlf>  /a\R{2,4}b/I<bsr_anycrlf>
8893  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
8894  Options: bsr_anycrlf  Options: bsr_anycrlf
8895  First char = 'a'  First char = 'a'
8896  Need char = 'b'  Need char = 'b'
# Line 9235  No match Line 8909  No match
8909    
8910  /a\R{2,4}b/I<bsr_unicode>  /a\R{2,4}b/I<bsr_unicode>
8911  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
8912  Options: bsr_unicode  Options: bsr_unicode
8913  First char = 'a'  First char = 'a'
8914  Need char = 'b'  Need char = 'b'
# Line 9385  Failed: unknown POSIX class name at offs Line 9058  Failed: unknown POSIX class name at offs
9058  /[[:a\dz:]]/  /[[:a\dz:]]/
9059  Failed: unknown POSIX class name at offset 3  Failed: unknown POSIX class name at offset 3
9060    
9061  /^(?<name>a|b\g<name>c)/  /(^(a|b\g<-1'c))/
9062      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  
9063    
9064  /^(?<name>a|b\g'name'c)/  /^(?+1)(?<a>x|y){0}z/
9065      aaaa      xzxx
9066   0: a   0: xz
9067   1: a      yzyy
9068      bacxxx   0: yz
9069   0: bac      ** Failers
9070   1: bac  No match
9071      bbaccxxx      xxz
9072   0: bbacc  No match
  1: bbacc  
     bbbacccxx  
  0: bbbaccc  
  1: bbbaccc  
9073    
9074  /^(a|b\g<1>c)/  /(\3)(\1)(a)/
9075      aaaa      cat
9076   0: a  No match
  1: a  
     bacxxx  
  0: bac  
  1: bac  
     bbaccxxx  
  0: bbacc  
  1: bbacc  
     bbbacccxx  
  0: bbbaccc  
  1: bbbaccc  
9077    
9078  /^(a|b\g'1'c)/  /(\3)(\1)(a)/<JS>
9079      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  
9080   0: a   0: a
9081   1:   1:
9082   2:   2:
# Line 9631  Failed: nothing to repeat at offset 5 Line 9175  Failed: nothing to repeat at offset 5
9175  /a(*FAIL)+b/  /a(*FAIL)+b/
9176  Failed: nothing to repeat at offset 8  Failed: nothing to repeat at offset 8
9177    
9178  / End of testinput2 /  /(abc|pqr|123){0}[xyz]/SI
9179    Capturing subpattern count = 1
9180    No options
9181    No first char
9182    No need char
9183    Subject length lower bound = 1
9184    Starting byte set: x y z
9185    
9186    /(?(?=.*b)b|^)/CI
9187    Capturing subpattern count = 0
9188    Options:
9189    No first char
9190    No need char
9191       adc
9192    --->adc
9193     +0 ^       (?(?=.*b)b|^)
9194     +2 ^       (?=.*b)
9195     +5 ^       .*
9196     +7 ^  ^    b
9197     +7 ^ ^     b
9198     +7 ^^      b
9199     +7 ^       b
9200    +12 ^       )
9201    +13 ^
9202     0:
9203       abc
9204    --->abc
9205     +0 ^       (?(?=.*b)b|^)
9206     +2 ^       (?=.*b)
9207     +5 ^       .*
9208     +7 ^  ^    b
9209     +7 ^ ^     b
9210     +7 ^^      b
9211     +8 ^ ^     )
9212     +9 ^       b
9213     +0  ^      (?(?=.*b)b|^)
9214     +2  ^      (?=.*b)
9215     +5  ^      .*
9216     +7  ^ ^    b
9217     +7  ^^     b
9218     +7  ^      b
9219     +8  ^^     )
9220     +9  ^      b
9221    +10  ^^     |
9222    +13  ^^
9223     0: b
9224    
9225    /(?(?=b).*b|^d)/I
9226    Capturing subpattern count = 0
9227    No options
9228    No first char
9229    No need char
9230    
9231    /(?(?=.*b).*b|^d)/I
9232    Capturing subpattern count = 0
9233    No options
9234    First char at start or follows newline
9235    No need char
9236    
9237    /a?|b?/P
9238        abc
9239     0: a
9240        ** Failers
9241     0:
9242        ddd\N
9243    No match: POSIX code 17: match failed
9244    
9245    /xyz/C
9246      xyz
9247    --->xyz
9248     +0 ^       x
9249     +1 ^^      y
9250     +2 ^ ^     z
9251     +3 ^  ^
9252     0: xyz
9253      abcxyz
9254    --->abcxyz
9255     +0    ^       x
9256     +1    ^^      y
9257     +2    ^ ^     z
9258     +3    ^  ^
9259     0: xyz
9260      abcxyz\Y
9261    --->abcxyz
9262     +0 ^          x
9263     +0  ^         x
9264     +0   ^        x
9265     +0    ^       x
9266     +1    ^^      y
9267     +2    ^ ^     z
9268     +3    ^  ^
9269     0: xyz
9270      ** Failers
9271    No match
9272      abc
9273    No match
9274      abc\Y
9275    --->abc
9276     +0 ^       x
9277     +0  ^      x
9278     +0   ^     x
9279     +0    ^    x
9280    No match
9281      abcxypqr
9282    No match
9283      abcxypqr\Y
9284    --->abcxypqr
9285     +0 ^            x
9286     +0  ^           x
9287     +0   ^          x
9288     +0    ^         x
9289     +1    ^^        y
9290     +2    ^ ^       z
9291     +0     ^        x
9292     +0      ^       x
9293     +0       ^      x
9294     +0        ^     x
9295     +0         ^    x
9296    No match
9297    
9298    /^"((?(?=[a])[^"])|b)*"$/C
9299        "ab"
9300    --->"ab"
9301     +0 ^        ^
9302     +1 ^        "
9303     +2 ^^       ((?(?=[a])[^"])|b)*
9304     +3 ^^       (?(?=[a])[^"])
9305     +5 ^^       (?=[a])
9306     +8 ^^       [a]
9307    +11 ^ ^      )
9308    +12 ^^       [^"]
9309    +16 ^ ^      )
9310    +17 ^ ^      |
9311     +3 ^ ^      (?(?=[a])[^"])
9312     +5 ^ ^      (?=[a])
9313     +8 ^ ^      [a]
9314    +21 ^ ^      "
9315    +18 ^ ^      b
9316    +19 ^  ^     )
9317     +3 ^  ^     (?(?=[a])[^"])
9318     +5 ^  ^     (?=[a])
9319     +8 ^  ^     [a]
9320    +21 ^  ^     "
9321    +22 ^   ^    $
9322    +23 ^   ^
9323     0: "ab"
9324     1:
9325    
9326    /^"((?(?=[a])[^"])|b)*"$/
9327        "ab"
9328     0: "ab"
9329     1:
9330    
9331    /^X(?5)(a)(?|(b)|(q))(c)(d)Y/
9332    Failed: reference to non-existent subpattern at offset 5
9333    
9334    /^X(?&N)(a)(?|(b)|(q))(c)(d)(?<N>Y)/
9335        XYabcdY
9336     0: XYabcdY
9337     1: a
9338     2: b
9339     3: c
9340     4: d
9341     5: Y
9342    
9343    /Xa{2,4}b/
9344        X\P
9345    Partial match: X
9346        Xa\P
9347    Partial match: Xa
9348        Xaa\P
9349    Partial match: Xaa
9350        Xaaa\P
9351    Partial match: Xaaa
9352        Xaaaa\P
9353    Partial match: Xaaaa
9354    
9355    /Xa{2,4}?b/
9356        X\P
9357    Partial match: X
9358        Xa\P
9359    Partial match: Xa
9360        Xaa\P
9361    Partial match: Xaa
9362        Xaaa\P
9363    Partial match: Xaaa
9364        Xaaaa\P
9365    Partial match: Xaaaa
9366    
9367    /Xa{2,4}+b/
9368        X\P
9369    Partial match: X
9370        Xa\P
9371    Partial match: Xa
9372        Xaa\P
9373    Partial match: Xaa
9374        Xaaa\P
9375    Partial match: Xaaa
9376        Xaaaa\P
9377    Partial match: Xaaaa
9378    
9379    /X\d{2,4}b/
9380        X\P
9381    Partial match: X
9382        X3\P
9383    Partial match: X3
9384        X33\P
9385    Partial match: X33
9386        X333\P
9387    Partial match: X333
9388        X3333\P
9389    Partial match: X3333
9390    
9391    /X\d{2,4}?b/
9392        X\P
9393    Partial match: X
9394        X3\P
9395    Partial match: X3
9396        X33\P
9397    Partial match: X33
9398        X333\P
9399    Partial match: X333
9400        X3333\P
9401    Partial match: X3333
9402    
9403    /X\d{2,4}+b/
9404        X\P
9405    Partial match: X
9406        X3\P
9407    Partial match: X3
9408        X33\P
9409    Partial match: X33
9410        X333\P
9411    Partial match: X333
9412        X3333\P
9413    Partial match: X3333
9414    
9415    /X\D{2,4}b/
9416        X\P
9417    Partial match: X
9418        Xa\P
9419    Partial match: Xa
9420        Xaa\P
9421    Partial match: Xaa
9422        Xaaa\P
9423    Partial match: Xaaa
9424        Xaaaa\P
9425    Partial match: Xaaaa
9426    
9427    /X\D{2,4}?b/
9428        X\P
9429    Partial match: X
9430        Xa\P
9431    Partial match: Xa
9432        Xaa\P
9433    Partial match: Xaa
9434        Xaaa\P
9435    Partial match: Xaaa
9436        Xaaaa\P
9437    Partial match: Xaaaa
9438    
9439    /X\D{2,4}+b/
9440        X\P
9441    Partial match: X
9442        Xa\P
9443    Partial match: Xa
9444        Xaa\P
9445    Partial match: Xaa
9446        Xaaa\P
9447    Partial match: Xaaa
9448        Xaaaa\P
9449    Partial match: Xaaaa
9450    
9451    /X[abc]{2,4}b/
9452        X\P
9453    Partial match: X
9454        Xa\P
9455    Partial match: Xa
9456        Xaa\P
9457    Partial match: Xaa
9458        Xaaa\P
9459    Partial match: Xaaa
9460        Xaaaa\P
9461    Partial match: Xaaaa
9462    
9463    /X[abc]{2,4}?b/
9464        X\P
9465    Partial match: X
9466        Xa\P
9467    Partial match: Xa
9468        Xaa\P
9469    Partial match: Xaa
9470        Xaaa\P
9471    Partial match: Xaaa
9472        Xaaaa\P
9473    Partial match: Xaaaa
9474    
9475    /X[abc]{2,4}+b/
9476        X\P
9477    Partial match: X
9478        Xa\P
9479    Partial match: Xa
9480        Xaa\P
9481    Partial match: Xaa
9482        Xaaa\P
9483    Partial match: Xaaa
9484        Xaaaa\P
9485    Partial match: Xaaaa
9486    
9487    /X[^a]{2,4}b/
9488        X\P
9489    Partial match: X
9490        Xz\P
9491    Partial match: Xz
9492        Xzz\P
9493    Partial match: Xzz
9494        Xzzz\P
9495    Partial match: Xzzz
9496        Xzzzz\P
9497    Partial match: Xzzzz
9498    
9499    /X[^a]{2,4}?b/
9500        X\P
9501    Partial match: X
9502        Xz\P
9503    Partial match: Xz
9504        Xzz\P
9505    Partial match: Xzz
9506        Xzzz\P
9507    Partial match: Xzzz
9508        Xzzzz\P
9509    Partial match: Xzzzz
9510    
9511    /X[^a]{2,4}+b/
9512        X\P
9513    Partial match: X
9514        Xz\P
9515    Partial match: Xz
9516        Xzz\P
9517    Partial match: Xzz
9518        Xzzz\P
9519    Partial match: Xzzz
9520        Xzzzz\P
9521    Partial match: Xzzzz
9522    
9523    /(Y)X\1{2,4}b/
9524        YX\P
9525    Partial match: YX
9526        YXY\P
9527    Partial match: YXY
9528        YXYY\P
9529    Partial match: YXYY
9530        YXYYY\P
9531    Partial match: YXYYY
9532        YXYYYY\P
9533    Partial match: YXYYYY
9534    
9535    /(Y)X\1{2,4}?b/
9536        YX\P
9537    Partial match: YX
9538        YXY\P
9539    Partial match: YXY
9540        YXYY\P
9541    Partial match: YXYY
9542        YXYYY\P
9543    Partial match: YXYYY
9544        YXYYYY\P
9545    Partial match: YXYYYY
9546    
9547    /(Y)X\1{2,4}+b/
9548        YX\P
9549    Partial match: YX
9550        YXY\P
9551    Partial match: YXY
9552        YXYY\P
9553    Partial match: YXYY
9554        YXYYY\P
9555    Partial match: YXYYY
9556        YXYYYY\P
9557    Partial match: YXYYYY
9558    
9559    /\++\KZ|\d+X|9+Y/
9560        ++++123999\P
9561    Partial match: 123999
9562        ++++123999Y\P
9563     0: 999Y
9564        ++++Z1234\P
9565     0: Z
9566    
9567    /Z(*F)/
9568        Z\P
9569    No match
9570        ZA\P
9571    No match
9572    
9573    /Z(?!)/
9574        Z\P
9575    No match
9576        ZA\P
9577    No match
9578    
9579    /dog(sbody)?/
9580        dogs\P
9581     0: dog
9582        dogs\P\P
9583    Partial match: dogs
9584    
9585    /dog(sbody)??/
9586        dogs\P
9587     0: dog
9588        dogs\P\P
9589     0: dog
9590    
9591    /dog|dogsbody/
9592        dogs\P
9593     0: dog
9594        dogs\P\P
9595     0: dog
9596    
9597    /dogsbody|dog/
9598        dogs\P
9599     0: dog
9600        dogs\P\P
9601    Partial match: dogs
9602    
9603    /\bthe cat\b/
9604        the cat\P
9605     0: the cat
9606        the cat\P\P
9607    Partial match: the cat
9608    
9609    /abc/
9610       abc\P
9611     0: abc
9612       abc\P\P
9613     0: abc
9614    
9615    /\w+A/P
9616       CDAAAAB
9617     0: CDAAAA
9618    
9619    /\w+A/PU
9620       CDAAAAB
9621     0: CDA
9622    
9623    /abc\K123/
9624        xyzabc123pqr
9625     0: 123
9626        xyzabc12\P
9627    Partial match: abc12
9628        xyzabc12\P\P
9629    Partial match: abc12
9630    
9631    /(?<=abc)123/
9632        xyzabc123pqr
9633     0: 123
9634        xyzabc12\P
9635    Partial match: abc12
9636        xyzabc12\P\P
9637    Partial match: abc12
9638    
9639    /\babc\b/
9640        +++abc+++
9641     0: abc
9642        +++ab\P
9643    Partial match: +ab
9644        +++ab\P\P
9645    Partial match: +ab
9646    
9647    /(?&word)(?&element)(?(DEFINE)(?<element><[^m][^>]>[^<])(?<word>\w*+))/BZ
9648    ------------------------------------------------------------------
9649            Bra
9650            Once
9651            Recurse
9652            Ket
9653            Once
9654            Recurse
9655            Ket
9656            Cond
9657            Cond def
9658            CBra 1
9659            <
9660            [^m]
9661            [^>]
9662            >
9663            [^<]
9664            Ket
9665            CBra 2
9666            \w*+
9667            Ket
9668            Ket
9669            Ket
9670            End
9671    ------------------------------------------------------------------
9672    
9673    /(?&word)(?&element)(?(DEFINE)(?<element><[^\d][^>]>[^<])(?<word>\w*+))/BZ
9674    ------------------------------------------------------------------
9675            Bra
9676            Once
9677            Recurse
9678            Ket
9679            Once
9680            Recurse
9681            Ket
9682            Cond
9683            Cond def
9684            CBra 1
9685            <
9686            [\x00-/:-\xff] (neg)
9687            [^>]
9688            >
9689            [^<]
9690            Ket
9691            CBra 2
9692            \w*+
9693            Ket
9694            Ket
9695            Ket
9696            End
9697    ------------------------------------------------------------------
9698    
9699    /(ab)(x(y)z(cd(*ACCEPT)))pq/BZ
9700    ------------------------------------------------------------------
9701            Bra
9702            CBra 1
9703            ab
9704            Ket
9705            CBra 2
9706            x
9707            CBra 3
9708            y
9709            Ket
9710            z
9711            CBra 4
9712            cd
9713            Close 4
9714            Close 2
9715            *ACCEPT
9716            Ket
9717            Ket
9718            pq
9719            Ket
9720            End
9721    ------------------------------------------------------------------
9722    
9723    /abc\K/+
9724        abcdef
9725     0:
9726     0+ def
9727        abcdef\N\N
9728     0:
9729     0+ def
9730        xyzabcdef\N\N
9731     0:
9732     0+ def
9733        ** Failers
9734    No match
9735        abcdef\N
9736    No match
9737        xyzabcdef\N
9738    No match
9739    
9740    /^(?:(?=abc)|abc\K)/+
9741        abcdef
9742     0:
9743     0+ abcdef
9744        abcdef\N\N
9745     0:
9746     0+ def
9747        ** Failers
9748    No match
9749        abcdef\N
9750    No match
9751    
9752    /a?b?/+
9753        xyz
9754     0:
9755     0+ xyz
9756        xyzabc
9757     0:
9758     0+ xyzabc
9759        xyzabc\N
9760     0: ab
9761     0+ c
9762        xyzabc\N\N
9763     0:
9764     0+ yzabc
9765        xyz\N\N
9766     0:
9767     0+ yz
9768        ** Failers
9769     0:
9770     0+ ** Failers
9771        xyz\N
9772    No match
9773    
9774    /^a?b?/+
9775        xyz
9776     0:
9777     0+ xyz
9778        xyzabc
9779     0:
9780     0+ xyzabc
9781        ** Failers
9782     0:
9783     0+ ** Failers
9784        xyzabc\N
9785    No match
9786        xyzabc\N\N
9787    No match
9788        xyz\N\N
9789    No match
9790        xyz\N
9791    No match
9792    
9793    /^(?<name>a|b\g<name>c)/
9794        aaaa
9795     0: a
9796     1: a
9797        bacxxx
9798     0: bac
9799     1: bac
9800        bbaccxxx
9801     0: bbacc
9802     1: bbacc
9803        bbbacccxx
9804     0: bbbaccc
9805     1: bbbaccc
9806    
9807    /^(?<name>a|b\g'name'c)/
9808        aaaa
9809     0: a
9810     1: a
9811        bacxxx
9812     0: bac
9813     1: bac
9814        bbaccxxx
9815     0: bbacc
9816     1: bbacc
9817        bbbacccxx
9818     0: bbbaccc
9819     1: bbbaccc
9820    
9821    /^(a|b\g<1>c)/
9822        aaaa
9823     0: a
9824     1: a
9825        bacxxx
9826     0: bac
9827     1: bac
9828        bbaccxxx
9829     0: bbacc
9830     1: bbacc
9831        bbbacccxx
9832     0: bbbaccc
9833     1: bbbaccc
9834    
9835    /^(a|b\g'1'c)/
9836        aaaa
9837     0: a
9838     1: a
9839        bacxxx
9840     0: bac
9841     1: bac
9842        bbaccxxx
9843     0: bbacc
9844     1: bbacc
9845        bbbacccxx
9846     0: bbbaccc
9847     1: bbbaccc
9848    
9849    /^(a|b\g'-1'c)/
9850        aaaa
9851     0: a
9852     1: a
9853        bacxxx
9854     0: bac
9855     1: bac
9856        bbaccxxx
9857     0: bbacc
9858     1: bbacc
9859        bbbacccxx
9860     0: bbbaccc
9861     1: bbbaccc
9862    
9863    /(^(a|b\g<-1>c))/
9864        aaaa
9865     0: a
9866     1: a
9867     2: a
9868        bacxxx
9869     0: bac
9870     1: bac
9871     2: bac
9872        bbaccxxx
9873     0: bbacc
9874     1: bbacc
9875     2: bbacc
9876        bbbacccxx
9877     0: bbbaccc
9878     1: bbbaccc
9879     2: bbbaccc
9880    
9881    /(?-i:\g<name>)(?i:(?<name>a))/
9882        XaaX
9883     0: aa
9884     1: a
9885        XAAX
9886     0: AA
9887     1: A
9888    
9889    /(?i:\g<name>)(?-i:(?<name>a))/
9890        XaaX
9891     0: aa
9892     1: a
9893        ** Failers
9894    No match
9895        XAAX
9896    No match
9897    
9898    /(?-i:\g<+1>)(?i:(a))/
9899        XaaX
9900     0: aa
9901     1: a
9902        XAAX
9903     0: AA
9904     1: A
9905    
9906    /(?=(?<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>\})\}))\{/
9907    
9908    /(?<n>a|b|c)\g<n>*/
9909       abc
9910     0: abc
9911     1: a
9912       accccbbb
9913     0: accccbbb
9914     1: a
9915    
9916    /^X(?7)(a)(?|(b)|(q)(r)(s))(c)(d)(Y)/
9917        XYabcdY
9918     0: XYabcdY
9919     1: a
9920     2: b
9921     3: <unset>
9922     4: <unset>
9923     5: c
9924     6: d
9925     7: Y
9926    
9927    /(?<=b(?1)|zzz)(a)/
9928        xbaax
9929     0: a
9930     1: a
9931        xzzzax
9932     0: a
9933     1: a
9934    
9935    /(a)(?<=b\1)/
9936    Failed: lookbehind assertion is not fixed length at offset 10
9937    
9938    /(a)(?<=b+(?1))/
9939    Failed: lookbehind assertion is not fixed length at offset 13
9940    
9941    /(a+)(?<=b(?1))/
9942    Failed: lookbehind assertion is not fixed length at offset 14
9943    
9944    /(a(?<=b(?1)))/
9945    Failed: lookbehind assertion is not fixed length at offset 13
9946    
9947    /(?<=b(?1))xyz/
9948    Failed: reference to non-existent subpattern at offset 8
9949    
9950    /(?<=b(?1))xyz(b+)pqrstuvew/
9951    Failed: lookbehind assertion is not fixed length at offset 26
9952    
9953    /(a|bc)\1/SI
9954    Capturing subpattern count = 1
9955    Max back reference = 1
9956    No options
9957    No first char
9958    No need char
9959    Subject length lower bound = 2
9960    Starting byte set: a b
9961    
9962    /(a|bc)\1{2,3}/SI
9963    Capturing subpattern count = 1
9964    Max back reference = 1
9965    No options
9966    No first char
9967    No need char
9968    Subject length lower bound = 3
9969    Starting byte set: a b
9970    
9971    /(a|bc)(?1)/SI
9972    Capturing subpattern count = 1
9973    No options
9974    No first char
9975    No need char
9976    Subject length lower bound = 2
9977    Starting byte set: a b
9978    
9979    /(a|b\1)(a|b\1)/SI
9980    Capturing subpattern count = 2
9981    Max back reference = 1
9982    No options
9983    No first char
9984    No need char
9985    Subject length lower bound = 2
9986    Starting byte set: a b
9987    
9988    /(a|b\1){2}/SI
9989    Capturing subpattern count = 1
9990    Max back reference = 1
9991    No options
9992    No first char
9993    No need char
9994    Subject length lower bound = 2
9995    Starting byte set: a b
9996    
9997    /(a|bbbb\1)(a|bbbb\1)/SI
9998    Capturing subpattern count = 2
9999    Max back reference = 1
10000    No options
10001    No first char
10002    No need char
10003    Subject length lower bound = 2
10004    Starting byte set: a b
10005    
10006    /(a|bbbb\1){2}/SI
10007    Capturing subpattern count = 1
10008    Max back reference = 1
10009    No options
10010    No first char
10011    No need char
10012    Subject length lower bound = 2
10013    Starting byte set: a b
10014    
10015    /^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
10016    Capturing subpattern count = 1
10017    Options: anchored
10018    No first char
10019    Need char = ':'
10020    Subject length lower bound = 22
10021    No set of starting bytes
10022    
10023    /  (?: [\040\t] |  \(
10024    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10025    \)  )*                          # optional leading comment
10026    (?:    (?:
10027    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10028    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10029    |
10030    " (?:                      # opening quote...
10031    [^\\\x80-\xff\n\015"]                #   Anything except backslash and quote
10032    |                     #    or
10033    \\ [^\x80-\xff]           #   Escaped something (something != CR)
10034    )* "  # closing quote
10035    )                    # initial word
10036    (?:  (?: [\040\t] |  \(
10037    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10038    \)  )*  \.  (?: [\040\t] |  \(
10039    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10040    \)  )*   (?:
10041    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10042    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10043    |
10044    " (?:                      # opening quote...
10045    [^\\\x80-\xff\n\015"]                #   Anything except backslash and quote
10046    |                     #    or
10047    \\ [^\x80-\xff]           #   Escaped something (something != CR)
10048    )* "  # closing quote
10049    )  )* # further okay, if led by a period
10050    (?: [\040\t] |  \(
10051    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10052    \)  )*  @  (?: [\040\t] |  \(
10053    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10054    \)  )*    (?:
10055    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10056    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10057    |   \[                         # [
10058    (?: [^\\\x80-\xff\n\015\[\]] |  \\ [^\x80-\xff]  )*    #    stuff
10059    \]                        #           ]
10060    )                           # initial subdomain
10061    (?:                                  #
10062    (?: [\040\t] |  \(
10063    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10064    \)  )*  \.                        # if led by a period...
10065    (?: [\040\t] |  \(
10066    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10067    \)  )*   (?:
10068    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10069    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10070    |   \[                         # [
10071    (?: [^\\\x80-\xff\n\015\[\]] |  \\ [^\x80-\xff]  )*    #    stuff
10072    \]                        #           ]
10073    )                     #   ...further okay
10074    )*
10075    # address
10076    |                     #  or
10077    (?:
10078    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10079    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10080    |
10081    " (?:                      # opening quote...
10082    [^\\\x80-\xff\n\015"]                #   Anything except backslash and quote
10083    |                     #    or
10084    \\ [^\x80-\xff]           #   Escaped something (something != CR)
10085    )* "  # closing quote
10086    )             # one word, optionally followed by....
10087    (?:
10088    [^()<>@,;:".\\\[\]\x80-\xff\000-\010\012-\037]  |  # atom and space parts, or...
10089    \(
10090    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10091    \)       |  # comments, or...
10092    
10093    " (?:                      # opening quote...
10094    [^\\\x80-\xff\n\015"]                #   Anything except backslash and quote
10095    |                     #    or
10096    \\ [^\x80-\xff]           #   Escaped something (something != CR)
10097    )* "  # closing quote
10098    # quoted strings
10099    )*
10100    <  (?: [\040\t] |  \(
10101    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10102    \)  )*                     # leading <
10103    (?:  @  (?: [\040\t] |  \(
10104    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10105    \)  )*    (?:
10106    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10107    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10108    |   \[                         # [
10109    (?: [^\\\x80-\xff\n\015\[\]] |  \\ [^\x80-\xff]  )*    #    stuff
10110    \]                        #           ]
10111    )                           # initial subdomain
10112    (?:                                  #
10113    (?: [\040\t] |  \(
10114    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10115    \)  )*  \.                        # if led by a period...
10116    (?: [\040\t] |  \(
10117    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10118    \)  )*   (?:
10119    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10120    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10121    |   \[                         # [
10122    (?: [^\\\x80-\xff\n\015\[\]] |  \\ [^\x80-\xff]  )*    #    stuff
10123    \]                        #           ]
10124    )                     #   ...further okay
10125    )*
10126    
10127    (?:  (?: [\040\t] |  \(
10128    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10129    \)  )*  ,  (?: [\040\t] |  \(
10130    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10131    \)  )*  @  (?: [\040\t] |  \(
10132    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10133    \)  )*    (?:
10134    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10135    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10136    |   \[                         # [
10137    (?: [^\\\x80-\xff\n\015\[\]] |  \\ [^\x80-\xff]  )*    #    stuff
10138    \]                        #           ]
10139    )                           # initial subdomain
10140    (?:                                  #
10141    (?: [\040\t] |  \(
10142    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10143    \)  )*  \.                        # if led by a period...
10144    (?: [\040\t] |  \(
10145    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10146    \)  )*   (?:
10147    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10148    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10149    |   \[                         # [
10150    (?: [^\\\x80-\xff\n\015\[\]] |  \\ [^\x80-\xff]  )*    #    stuff
10151    \]                        #           ]
10152    )                     #   ...further okay
10153    )*
10154    )* # further okay, if led by comma
10155    :                                # closing colon
10156    (?: [\040\t] |  \(
10157    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10158    \)  )*  )? #       optional route
10159    (?:
10160    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10161    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10162    |
10163    " (?:                      # opening quote...
10164    [^\\\x80-\xff\n\015"]                #   Anything except backslash and quote
10165    |                     #    or
10166    \\ [^\x80-\xff]           #   Escaped something (something != CR)
10167    )* "  # closing quote
10168    )                    # initial word
10169    (?:  (?: [\040\t] |  \(
10170    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10171    \)  )*  \.  (?: [\040\t] |  \(
10172    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10173    \)  )*   (?:
10174    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10175    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10176    |
10177    " (?:                      # opening quote...
10178    [^\\\x80-\xff\n\015"]                #   Anything except backslash and quote
10179    |                     #    or
10180    \\ [^\x80-\xff]           #   Escaped something (something != CR)
10181    )* "  # closing quote
10182    )  )* # further okay, if led by a period
10183    (?: [\040\t] |  \(
10184    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10185    \)  )*  @  (?: [\040\t] |  \(
10186    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10187    \)  )*    (?:
10188    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10189    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10190    |   \[                         # [
10191    (?: [^\\\x80-\xff\n\015\[\]] |  \\ [^\x80-\xff]  )*    #    stuff
10192    \]                        #           ]
10193    )                           # initial subdomain
10194    (?:                                  #
10195    (?: [\040\t] |  \(
10196    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10197    \)  )*  \.                        # if led by a period...
10198    (?: [\040\t] |  \(
10199    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10200    \)  )*   (?:
10201    [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+    # some number of atom characters...
10202    (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
10203    |   \[                         # [
10204    (?: [^\\\x80-\xff\n\015\[\]] |  \\ [^\x80-\xff]  )*    #    stuff
10205    \]                        #           ]
10206    )                     #   ...further okay
10207    )*
10208    #       address spec
10209    (?: [\040\t] |  \(
10210    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10211    \)  )*  > #                  trailing >
10212    # name and address
10213    )  (?: [\040\t] |  \(
10214    (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  |  \( (?:  [^\\\x80-\xff\n\015()]  |  \\ [^\x80-\xff]  )* \)  )*
10215    \)  )*                       # optional trailing comment
10216    /xSI
10217    Capturing subpattern count = 0
10218    Contains explicit CR or LF match
10219    Options: extended
10220    No first char
10221    No need char
10222    Subject length lower bound = 3
10223    Starting byte set: \x09 \x20 ! " # $ % & ' ( * + - / 0 1 2 3 4 5 6 7 8
10224      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
10225      f g h i j k l m n o p q r s t u v w x y z { | } ~ \x7f
10226    
10227    /<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
10228    Capturing subpattern count = 11
10229    Options: caseless dotall
10230    First char = '<'
10231    Need char = '>'
10232    Subject length lower bound = 47
10233    No set of starting bytes
10234    
10235    "(?>.*/)foo"SI
10236    Capturing subpattern count = 0
10237    No options
10238    First char at start or follows newline
10239    Need char = 'o'
10240    Subject length lower bound = 4
10241    No set of starting bytes
10242    
10243    /(?(?=[^a-z]+[a-z])  \d{2}-[a-z]{3}-\d{2}  |  \d{2}-\d{2}-\d{2} ) /xSI
10244    Capturing subpattern count = 0
10245    Options: extended
10246    No first char
10247    Need char = '-'
10248    Subject length lower bound = 8
10249    No set of starting bytes
10250    
10251    /(?:(?:(?:(?:(?:(?:(?:(?:(?:(a|b|c))))))))))/iSI
10252    Capturing subpattern count = 1
10253    Options: caseless
10254    No first char
10255    No need char
10256    Subject length lower bound = 1
10257    Starting byte set: A B C a b c
10258    
10259    /(?:c|d)(?:)(?:aaaaaaaa(?:)(?:bbbbbbbb)(?:bbbbbbbb(?:))(?:bbbbbbbb(?:)(?:bbbbbbbb)))/SI
10260    Capturing subpattern count = 0
10261    No options
10262    No first char
10263    Need char = 'b'
10264    Subject length lower bound = 41
10265    Starting byte set: c d
10266    
10267    /<a[\s]+href[\s]*=[\s]*          # find <a href=
10268     ([\"\'])?                       # find single or double quote
10269     (?(1) (.*?)\1 | ([^\s]+))       # if quote found, match up to next matching
10270                                     # quote, otherwise match up to next space
10271    /isxSI
10272    Capturing subpattern count = 3
10273    Max back reference = 1
10274    Options: caseless extended dotall
10275    First char = '<'
10276    Need char = '='
10277    Subject length lower bound = 9
10278    No set of starting bytes
10279    
10280    /^(?!:)                       # colon disallowed at start
10281      (?:                         # start of item
10282        (?: [0-9a-f]{1,4} |       # 1-4 hex digits or
10283        (?(1)0 | () ) )           # if null previously matched, fail; else null
10284        :                         # followed by colon
10285      ){1,7}                      # end item; 1-7 of them required
10286      [0-9a-f]{1,4} $             # final hex number at end of string
10287      (?(1)|.)                    # check that there was an empty component
10288      /xiIS
10289    Capturing subpattern count = 1
10290    Options: anchored caseless extended
10291    No first char
10292    Need char = ':'
10293    Subject length lower bound = 2
10294    No set of starting bytes
10295    
10296    /(?|(?<a>A)|(?<a>B))/I
10297    Capturing subpattern count = 1
10298    Named capturing subpatterns:
10299      a   1
10300      a   1
10301    No options
10302    No first char
10303    No need char
10304        AB\Ca
10305     0: A
10306     1: A
10307      C A (1) a
10308        BA\Ca
10309     0: B
10310     1: B
10311      C B (1) a
10312    
10313    /(?|(?<a>A)|(?<b>B))/
10314    Failed: different names for subpatterns of the same number are not allowed at offset 15
10315    
10316    /(?:a(?<quote> (?<apostrophe>')|(?<realquote>")) |
10317        b(?<quote> (?<apostrophe>')|(?<realquote>")) )
10318        (?('quote')[a-z]+|[0-9]+)/JIx
10319    Capturing subpattern count = 6
10320    Named capturing subpatterns:
10321      apostrophe   2
10322      apostrophe   5
10323      quote        1
10324      quote        4
10325      realquote    3
10326      realquote    6
10327    Options: extended dupnames
10328    No first char
10329    No need char
10330        a"aaaaa
10331     0: a"aaaaa
10332     1: "
10333     2: <unset>
10334     3: "
10335        b"aaaaa
10336     0: b"aaaaa
10337     1: <unset>
10338     2: <unset>
10339     3: <unset>
10340     4: "
10341     5: <unset>
10342     6: "
10343        ** Failers
10344    No match
10345        b"11111
10346    No match
10347        a"11111
10348    No match
10349    
10350    /^(?|(a)(b)(c)(?<D>d)|(?<D>e)) (?('D')X|Y)/JDZx
10351    ------------------------------------------------------------------
10352            Bra
10353            ^
10354            Bra
10355            CBra 1
10356            a
10357            Ket
10358            CBra 2
10359            b
10360            Ket
10361            CBra 3
10362            c
10363            Ket
10364            CBra 4
10365            d
10366            Ket
10367            Alt
10368            CBra 1
10369            e
10370            Ket
10371            Ket
10372            Cond
10373          4 Cond nref
10374            X
10375            Alt
10376            Y
10377            Ket
10378            Ket
10379            End
10380    ------------------------------------------------------------------
10381    Capturing subpattern count = 4
10382    Named capturing subpatterns:
10383      D   4
10384      D   1
10385    Options: anchored extended dupnames
10386    No first char
10387    No need char
10388        abcdX
10389     0: abcdX
10390     1: a
10391     2: b
10392     3: c
10393     4: d
10394        eX
10395     0: eX
10396     1: e
10397        ** Failers
10398    No match
10399        abcdY
10400    No match
10401        ey
10402    No match
10403    
10404    /(?<A>a) (b)(c)  (?<A>d  (?(R&A)$ | (?4)) )/JDZx
10405    ------------------------------------------------------------------
10406            Bra
10407            CBra 1
10408            a
10409            Ket
10410            CBra 2
10411            b
10412            Ket
10413            CBra 3
10414            c
10415            Ket
10416            CBra 4
10417            d
10418            Cond
10419            Cond nrecurse 1
10420            $
10421            Alt
10422            Once
10423            Recurse
10424            Ket
10425            Ket
10426            Ket
10427            Ket
10428            End
10429    ------------------------------------------------------------------
10430    Capturing subpattern count = 4
10431    Named capturing subpatterns:
10432      A   1
10433      A   4
10434    Options: extended dupnames
10435    First char = 'a'
10436    Need char = 'd'
10437        abcdd
10438     0: abcdd
10439     1: a
10440     2: b
10441     3: c
10442     4: dd
10443        ** Failers
10444    No match
10445        abcdde
10446    No match
10447    
10448    /abcd*/
10449        xxxxabcd\P
10450     0: abcd
10451        xxxxabcd\P\P
10452    Partial match: abcd
10453    
10454    /abcd*/i
10455        xxxxabcd\P
10456     0: abcd
10457        xxxxabcd\P\P
10458    Partial match: abcd
10459        XXXXABCD\P
10460     0: ABCD
10461        XXXXABCD\P\P
10462    Partial match: ABCD
10463    
10464    /abc\d*/
10465        xxxxabc1\P
10466     0: abc1
10467        xxxxabc1\P\P
10468    Partial match: abc1
10469    
10470    /(a)bc\1*/
10471        xxxxabca\P
10472     0: abca
10473     1: a
10474        xxxxabca\P\P
10475    Partial match: abca
10476    
10477    /abc[de]*/
10478        xxxxabcde\P
10479     0: abcde
10480        xxxxabcde\P\P
10481    Partial match: abcde
10482    
10483    /-- This is not in the Perl >= 5.10 test because Perl seems currently to be
10484        broken and not behaving as specified in that it *does* bumpalong after
10485        hitting (*COMMIT). --/
10486    
10487    /(?1)(A(*COMMIT)|B)D/
10488        ABD
10489     0: ABD
10490     1: B
10491        XABD
10492     0: ABD
10493     1: B
10494        BAD
10495     0: BAD
10496     1: A
10497        ABXABD
10498     0: ABD
10499     1: B
10500        ** Failers
10501    No match
10502        ABX
10503    No match
10504        BAXBAD
10505    No match
10506    
10507    /(\3)(\1)(a)/<JS>
10508        cat
10509     0: a
10510     1:
10511     2:
10512     3: a
10513    
10514    /(\3)(\1)(a)/SI<JS>
10515    Capturing subpattern count = 3
10516    Max back reference = 3
10517    Options:
10518    No first char
10519    Need char = 'a'
10520    Subject length lower bound = 1
10521    No set of starting bytes
10522        cat
10523     0: a
10524     1:
10525     2:
10526     3: a
10527    
10528    /(\3)(\1)(a)/SI
10529    Capturing subpattern count = 3
10530    Max back reference = 3
10531    No options
10532    No first char
10533    Need char = 'a'
10534    Subject length lower bound = 3
10535    No set of starting bytes
10536        cat
10537    No match
10538    
10539    /i(?(DEFINE)(?<s>a))/SI
10540    Capturing subpattern count = 1
10541    Named capturing subpatterns:
10542      s   1
10543    No options
10544    First char = 'i'
10545    No need char
10546    Subject length lower bound = 1
10547    No set of starting bytes
10548        i
10549     0: i
10550    
10551    /()i(?(1)a)/SI
10552    Capturing subpattern count = 1
10553    No options
10554    No first char
10555    Need char = 'i'
10556    Subject length lower bound = 1
10557    Starting byte set: i
10558        ia
10559     0: ia
10560     1:
10561    
10562    /(?i)a(?-i)b|c/BZ
10563    ------------------------------------------------------------------
10564            Bra
10565         NC a
10566         00 Opt
10567            b
10568            Alt
10569         00 Opt
10570            c
10571            Ket
10572            End
10573    ------------------------------------------------------------------
10574        XabX
10575     0: ab
10576        XAbX
10577     0: Ab
10578        CcC
10579     0: c
10580        ** Failers
10581    No match
10582        XABX
10583    No match
10584    
10585    /(?i)a(?s)b|c/BZ
10586    ------------------------------------------------------------------
10587            Bra
10588         NC a
10589         05 Opt
10590         NC b
10591            Alt
10592         05 Opt
10593         NC c
10594            Ket
10595            End
10596    ------------------------------------------------------------------
10597    
10598    /(?i)a(?s-i)b|c/BZ
10599    ------------------------------------------------------------------
10600            Bra
10601         NC a
10602         04 Opt
10603            b
10604            Alt
10605         04 Opt
10606            c
10607            Ket
10608            End
10609    ------------------------------------------------------------------
10610    
10611    /^(ab(c\1)d|x){2}$/BZ
10612    ------------------------------------------------------------------
10613            Bra
10614            ^
10615            Once
10616            CBra 1
10617            ab
10618            CBra 2
10619            c
10620            \1
10621            Ket
10622            d
10623            Alt
10624            x
10625            Ket
10626            Ket
10627            Once
10628            CBra 1
10629            ab
10630            CBra 2
10631            c
10632            \1
10633            Ket
10634            d
10635            Alt
10636            x
10637            Ket
10638            Ket
10639            $
10640            Ket
10641            End
10642    ------------------------------------------------------------------
10643        xabcxd
10644     0: xabcxd
10645     1: abcxd
10646     2: cx
10647    
10648    /^(?&t)*+(?(DEFINE)(?<t>.))$/BZ
10649    ------------------------------------------------------------------
10650            Bra
10651            ^
10652            Once
10653            Brazero
10654            Once
10655            Recurse
10656            KetRmax
10657            Ket
10658            Cond
10659            Cond def
10660            CBra 1
10661            Any
10662            Ket
10663            Ket
10664            $
10665            Ket
10666            End
10667    ------------------------------------------------------------------
10668    
10669    /^(?&t)*(?(DEFINE)(?<t>.))$/BZ
10670    ------------------------------------------------------------------
10671            Bra
10672            ^
10673            Brazero
10674            Once
10675            Recurse
10676           &