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