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

Contents of /code/trunk/testdata/testoutput2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 696 - (show annotations)
Tue Mar 21 17:46:21 2017 UTC (2 years, 5 months ago) by ph10
File size: 329863 byte(s)
Fix 32-bit error buffer size bug in pcre2test (Bugzilla 2079).
<
1 # This set of tests is not Perl-compatible. It checks on special features
2 # of PCRE2's API, error diagnostics, and the compiled code of some patterns.
3 # It also checks the non-Perl syntax that PCRE2 supports (Python, .NET,
4 # Oniguruma). There are also some tests where PCRE2 and Perl differ,
5 # either because PCRE2 can't be compatible, or there is a possible Perl
6 # bug.
7
8 # NOTE: This is a non-UTF set of tests. When UTF support is needed, use
9 # test 5.
10
11 #forbid_utf
12 #newline_default lf any anycrlf
13
14 # Test binary zeroes in the pattern
15
16 # /a\0B/ where 0 is a binary zero
17 /61 5c 00 62/B,hex
18 ------------------------------------------------------------------
19 Bra
20 a\x00b
21 Ket
22 End
23 ------------------------------------------------------------------
24 a\x{0}b
25 0: a\x00b
26
27 # /a0b/ where 0 is a binary zero
28 /61 00 62/B,hex
29 ------------------------------------------------------------------
30 Bra
31 a\x00b
32 Ket
33 End
34 ------------------------------------------------------------------
35 a\x{0}b
36 0: a\x00b
37
38 # /(?#B0C)DE/ where 0 is a binary zero
39 /28 3f 23 42 00 43 29 44 45/B,hex
40 ------------------------------------------------------------------
41 Bra
42 DE
43 Ket
44 End
45 ------------------------------------------------------------------
46 DE
47 0: DE
48
49 /(a)b|/I
50 Capturing subpattern count = 1
51 May match empty string
52 Subject length lower bound = 0
53
54 /abc/I
55 Capturing subpattern count = 0
56 First code unit = 'a'
57 Last code unit = 'c'
58 Subject length lower bound = 3
59 abc
60 0: abc
61 defabc
62 0: abc
63 abc\=anchored
64 0: abc
65 \= Expect no match
66 defabc\=anchored
67 No match
68 ABC
69 No match
70
71 /^abc/I
72 Capturing subpattern count = 0
73 Compile options: <none>
74 Overall options: anchored
75 Subject length lower bound = 3
76 abc
77 0: abc
78 abc\=anchored
79 0: abc
80 \= Expect no match
81 defabc
82 No match
83 defabc\=anchored
84 No match
85
86 /a+bc/I
87 Capturing subpattern count = 0
88 First code unit = 'a'
89 Last code unit = 'c'
90 Subject length lower bound = 3
91
92 /a*bc/I
93 Capturing subpattern count = 0
94 Starting code units: a b
95 Last code unit = 'c'
96 Subject length lower bound = 2
97
98 /a{3}bc/I
99 Capturing subpattern count = 0
100 First code unit = 'a'
101 Last code unit = 'c'
102 Subject length lower bound = 5
103
104 /(abc|a+z)/I
105 Capturing subpattern count = 1
106 First code unit = 'a'
107 Subject length lower bound = 2
108
109 /^abc$/I
110 Capturing subpattern count = 0
111 Compile options: <none>
112 Overall options: anchored
113 Subject length lower bound = 3
114 abc
115 0: abc
116 \= Expect no match
117 def\nabc
118 No match
119
120 /ab\idef/
121 Failed: error 103 at offset 3: unrecognized character follows \
122
123 /(?X)ab\idef/
124 Failed: error 111 at offset 2: unrecognized character after (? or (?-
125
126 /x{5,4}/
127 Failed: error 104 at offset 5: numbers out of order in {} quantifier
128
129 /z{65536}/
130 Failed: error 105 at offset 7: number too big in {} quantifier
131
132 /[abcd/
133 Failed: error 106 at offset 5: missing terminating ] for character class
134
135 /[\B]/B
136 Failed: error 107 at offset 2: invalid escape sequence in character class
137
138 /[\R]/B
139 Failed: error 107 at offset 2: invalid escape sequence in character class
140
141 /[\X]/B
142 Failed: error 107 at offset 2: invalid escape sequence in character class
143
144 /[z-a]/
145 Failed: error 108 at offset 3: range out of order in character class
146
147 /^*/
148 Failed: error 109 at offset 1: quantifier does not follow a repeatable item
149
150 /(abc/
151 Failed: error 114 at offset 4: missing closing parenthesis
152
153 /(?# abc/
154 Failed: error 118 at offset 7: missing ) after (?# comment
155
156 /(?z)abc/
157 Failed: error 111 at offset 2: unrecognized character after (? or (?-
158
159 /.*b/I
160 Capturing subpattern count = 0
161 First code unit at start or follows newline
162 Last code unit = 'b'
163 Subject length lower bound = 1
164
165 /.*?b/I
166 Capturing subpattern count = 0
167 First code unit at start or follows newline
168 Last code unit = 'b'
169 Subject length lower bound = 1
170
171 /cat|dog|elephant/I
172 Capturing subpattern count = 0
173 Starting code units: c d e
174 Subject length lower bound = 3
175 this sentence eventually mentions a cat
176 0: cat
177 this sentences rambles on and on for a while and then reaches elephant
178 0: elephant
179
180 /cat|dog|elephant/I
181 Capturing subpattern count = 0
182 Starting code units: c d e
183 Subject length lower bound = 3
184 this sentence eventually mentions a cat
185 0: cat
186 this sentences rambles on and on for a while and then reaches elephant
187 0: elephant
188
189 /cat|dog|elephant/Ii
190 Capturing subpattern count = 0
191 Options: caseless
192 Starting code units: C D E c d e
193 Subject length lower bound = 3
194 this sentence eventually mentions a CAT cat
195 0: CAT
196 this sentences rambles on and on for a while to elephant ElePhant
197 0: elephant
198
199 /a|[bcd]/I
200 Capturing subpattern count = 0
201 Starting code units: a b c d
202 Subject length lower bound = 1
203
204 /(a|[^\dZ])/I
205 Capturing subpattern count = 1
206 Starting code units: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a
207 \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19
208 \x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / : ; < = >
209 ? @ 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
210 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
211 \x84 \x85 \x86 \x87 \x88 \x89 \x8a \x8b \x8c \x8d \x8e \x8f \x90 \x91 \x92
212 \x93 \x94 \x95 \x96 \x97 \x98 \x99 \x9a \x9b \x9c \x9d \x9e \x9f \xa0 \xa1
213 \xa2 \xa3 \xa4 \xa5 \xa6 \xa7 \xa8 \xa9 \xaa \xab \xac \xad \xae \xaf \xb0
214 \xb1 \xb2 \xb3 \xb4 \xb5 \xb6 \xb7 \xb8 \xb9 \xba \xbb \xbc \xbd \xbe \xbf
215 \xc0 \xc1 \xc2 \xc3 \xc4 \xc5 \xc6 \xc7 \xc8 \xc9 \xca \xcb \xcc \xcd \xce
216 \xcf \xd0 \xd1 \xd2 \xd3 \xd4 \xd5 \xd6 \xd7 \xd8 \xd9 \xda \xdb \xdc \xdd
217 \xde \xdf \xe0 \xe1 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8 \xe9 \xea \xeb \xec
218 \xed \xee \xef \xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7 \xf8 \xf9 \xfa \xfb
219 \xfc \xfd \xfe \xff
220 Subject length lower bound = 1
221
222 /(a|b)*[\s]/I
223 Capturing subpattern count = 1
224 Starting code units: \x09 \x0a \x0b \x0c \x0d \x20 a b
225 Subject length lower bound = 1
226
227 /(ab\2)/
228 Failed: error 115 at offset 4: reference to non-existent subpattern
229
230 /{4,5}abc/
231 Failed: error 109 at offset 4: quantifier does not follow a repeatable item
232
233 /(a)(b)(c)\2/I
234 Capturing subpattern count = 3
235 Max back reference = 2
236 First code unit = 'a'
237 Last code unit = 'c'
238 Subject length lower bound = 4
239 abcb
240 0: abcb
241 1: a
242 2: b
243 3: c
244 abcb\=ovector=0
245 0: abcb
246 1: a
247 2: b
248 3: c
249 abcb\=ovector=1
250 Matched, but too many substrings
251 0: abcb
252 abcb\=ovector=2
253 Matched, but too many substrings
254 0: abcb
255 1: a
256 abcb\=ovector=3
257 Matched, but too many substrings
258 0: abcb
259 1: a
260 2: b
261 abcb\=ovector=4
262 0: abcb
263 1: a
264 2: b
265 3: c
266
267 /(a)bc|(a)(b)\2/I
268 Capturing subpattern count = 3
269 Max back reference = 2
270 First code unit = 'a'
271 Subject length lower bound = 3
272 abc
273 0: abc
274 1: a
275 abc\=ovector=0
276 0: abc
277 1: a
278 abc\=ovector=1
279 Matched, but too many substrings
280 0: abc
281 abc\=ovector=2
282 0: abc
283 1: a
284 aba
285 0: aba
286 1: <unset>
287 2: a
288 3: b
289 aba\=ovector=0
290 0: aba
291 1: <unset>
292 2: a
293 3: b
294 aba\=ovector=1
295 Matched, but too many substrings
296 0: aba
297 aba\=ovector=2
298 Matched, but too many substrings
299 0: aba
300 1: <unset>
301 aba\=ovector=3
302 Matched, but too many substrings
303 0: aba
304 1: <unset>
305 2: a
306 aba\=ovector=4
307 0: aba
308 1: <unset>
309 2: a
310 3: b
311
312 /abc$/I,dollar_endonly
313 Capturing subpattern count = 0
314 Options: dollar_endonly
315 First code unit = 'a'
316 Last code unit = 'c'
317 Subject length lower bound = 3
318 abc
319 0: abc
320 \= Expect no match
321 abc\n
322 No match
323 abc\ndef
324 No match
325
326 /(a)(b)(c)(d)(e)\6/
327 Failed: error 115 at offset 16: reference to non-existent subpattern
328
329 /the quick brown fox/I
330 Capturing subpattern count = 0
331 First code unit = 't'
332 Last code unit = 'x'
333 Subject length lower bound = 19
334 the quick brown fox
335 0: the quick brown fox
336 this is a line with the quick brown fox
337 0: the quick brown fox
338
339 /the quick brown fox/I,anchored
340 Capturing subpattern count = 0
341 Options: anchored
342 Subject length lower bound = 19
343 the quick brown fox
344 0: the quick brown fox
345 \= Expect no match
346 this is a line with the quick brown fox
347 No match
348
349 /ab(?z)cd/
350 Failed: error 111 at offset 4: unrecognized character after (? or (?-
351
352 /^abc|def/I
353 Capturing subpattern count = 0
354 Subject length lower bound = 3
355 abcdef
356 0: abc
357 abcdef\=notbol
358 0: def
359
360 /.*((abc)$|(def))/I
361 Capturing subpattern count = 3
362 First code unit at start or follows newline
363 Subject length lower bound = 3
364 defabc
365 0: defabc
366 1: abc
367 2: abc
368 defabc\=noteol
369 0: def
370 1: def
371 2: <unset>
372 3: def
373
374 /)/
375 Failed: error 122 at offset 0: unmatched closing parenthesis
376
377 /a[]b/
378 Failed: error 106 at offset 4: missing terminating ] for character class
379
380 /[^aeiou ]{3,}/I
381 Capturing subpattern count = 0
382 Starting code units: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a
383 \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19
384 \x1a \x1b \x1c \x1d \x1e \x1f ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6
385 7 8 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 [
386 \ ] ^ _ ` b c d f g h j k l m n p q r s t v w x y z { | } ~ \x7f \x80 \x81
387 \x82 \x83 \x84 \x85 \x86 \x87 \x88 \x89 \x8a \x8b \x8c \x8d \x8e \x8f \x90
388 \x91 \x92 \x93 \x94 \x95 \x96 \x97 \x98 \x99 \x9a \x9b \x9c \x9d \x9e \x9f
389 \xa0 \xa1 \xa2 \xa3 \xa4 \xa5 \xa6 \xa7 \xa8 \xa9 \xaa \xab \xac \xad \xae
390 \xaf \xb0 \xb1 \xb2 \xb3 \xb4 \xb5 \xb6 \xb7 \xb8 \xb9 \xba \xbb \xbc \xbd
391 \xbe \xbf \xc0 \xc1 \xc2 \xc3 \xc4 \xc5 \xc6 \xc7 \xc8 \xc9 \xca \xcb \xcc
392 \xcd \xce \xcf \xd0 \xd1 \xd2 \xd3 \xd4 \xd5 \xd6 \xd7 \xd8 \xd9 \xda \xdb
393 \xdc \xdd \xde \xdf \xe0 \xe1 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8 \xe9 \xea
394 \xeb \xec \xed \xee \xef \xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7 \xf8 \xf9
395 \xfa \xfb \xfc \xfd \xfe \xff
396 Subject length lower bound = 3
397 co-processors, and for
398 0: -pr
399
400 /<.*>/I
401 Capturing subpattern count = 0
402 First code unit = '<'
403 Last code unit = '>'
404 Subject length lower bound = 2
405 abc<def>ghi<klm>nop
406 0: <def>ghi<klm>
407
408 /<.*?>/I
409 Capturing subpattern count = 0
410 First code unit = '<'
411 Last code unit = '>'
412 Subject length lower bound = 2
413 abc<def>ghi<klm>nop
414 0: <def>
415
416 /<.*>/I,ungreedy
417 Capturing subpattern count = 0
418 Options: ungreedy
419 First code unit = '<'
420 Last code unit = '>'
421 Subject length lower bound = 2
422 abc<def>ghi<klm>nop
423 0: <def>
424
425 /(?U)<.*>/I
426 Capturing subpattern count = 0
427 First code unit = '<'
428 Last code unit = '>'
429 Subject length lower bound = 2
430 abc<def>ghi<klm>nop
431 0: <def>
432
433 /<.*?>/I,ungreedy
434 Capturing subpattern count = 0
435 Options: ungreedy
436 First code unit = '<'
437 Last code unit = '>'
438 Subject length lower bound = 2
439 abc<def>ghi<klm>nop
440 0: <def>ghi<klm>
441
442 /={3,}/I,ungreedy
443 Capturing subpattern count = 0
444 Options: ungreedy
445 First code unit = '='
446 Last code unit = '='
447 Subject length lower bound = 3
448 abc========def
449 0: ===
450
451 /(?U)={3,}?/I
452 Capturing subpattern count = 0
453 First code unit = '='
454 Last code unit = '='
455 Subject length lower bound = 3
456 abc========def
457 0: ========
458
459 /(?<!bar|cattle)foo/I
460 Capturing subpattern count = 0
461 Max lookbehind = 6
462 First code unit = 'f'
463 Last code unit = 'o'
464 Subject length lower bound = 3
465 foo
466 0: foo
467 catfoo
468 0: foo
469 \= Expect no match
470 the barfoo
471 No match
472 and cattlefoo
473 No match
474
475 /abc(?<=a+)b/
476 Failed: error 125 at offset 3: lookbehind assertion is not fixed length
477
478 /12345(?<=aaa|b{0,3})b/
479 Failed: error 125 at offset 5: lookbehind assertion is not fixed length
480
481 /(?<!(foo)a\1)bar/
482
483 /(?i)abc/I
484 Capturing subpattern count = 0
485 First code unit = 'a' (caseless)
486 Last code unit = 'c' (caseless)
487 Subject length lower bound = 3
488
489 /(a|(?m)a)/I
490 Capturing subpattern count = 1
491 First code unit = 'a'
492 Subject length lower bound = 1
493
494 /(?i)^1234/I
495 Capturing subpattern count = 0
496 Compile options: <none>
497 Overall options: anchored
498 Subject length lower bound = 4
499
500 /(^b|(?i)^d)/I
501 Capturing subpattern count = 1
502 Compile options: <none>
503 Overall options: anchored
504 Subject length lower bound = 1
505
506 /(?s).*/I
507 Capturing subpattern count = 0
508 May match empty string
509 Compile options: <none>
510 Overall options: anchored
511 Subject length lower bound = 0
512
513 /[abcd]/I
514 Capturing subpattern count = 0
515 Starting code units: a b c d
516 Subject length lower bound = 1
517
518 /(?i)[abcd]/I
519 Capturing subpattern count = 0
520 Starting code units: A B C D a b c d
521 Subject length lower bound = 1
522
523 /(?m)[xy]|(b|c)/I
524 Capturing subpattern count = 1
525 Starting code units: b c x y
526 Subject length lower bound = 1
527
528 /(^a|^b)/Im
529 Capturing subpattern count = 1
530 Options: multiline
531 First code unit at start or follows newline
532 Subject length lower bound = 1
533
534 /(?i)(^a|^b)/Im
535 Capturing subpattern count = 1
536 Options: multiline
537 First code unit at start or follows newline
538 Subject length lower bound = 1
539
540 /(a)(?(1)a|b|c)/
541 Failed: error 127 at offset 3: conditional group contains more than two branches
542
543 /(?(?=a)a|b|c)/
544 Failed: error 127 at offset 0: conditional group contains more than two branches
545
546 /(?(1a)/
547 Failed: error 124 at offset 4: missing closing parenthesis for condition
548
549 /(?(1a))/
550 Failed: error 124 at offset 4: missing closing parenthesis for condition
551
552 /(?(?i))/
553 Failed: error 128 at offset 2: assertion expected after (?( or (?(?C)
554
555 /(?(abc))/
556 Failed: error 115 at offset 3: reference to non-existent subpattern
557
558 /(?(?<ab))/
559 Failed: error 128 at offset 2: assertion expected after (?( or (?(?C)
560
561 /((?s)blah)\s+\1/I
562 Capturing subpattern count = 1
563 Max back reference = 1
564 First code unit = 'b'
565 Last code unit = 'h'
566 Subject length lower bound = 9
567
568 /((?i)blah)\s+\1/I
569 Capturing subpattern count = 1
570 Max back reference = 1
571 First code unit = 'b' (caseless)
572 Last code unit = 'h' (caseless)
573 Subject length lower bound = 9
574
575 /((?i)b)/IB
576 ------------------------------------------------------------------
577 Bra
578 CBra 1
579 /i b
580 Ket
581 Ket
582 End
583 ------------------------------------------------------------------
584 Capturing subpattern count = 1
585 First code unit = 'b' (caseless)
586 Subject length lower bound = 1
587
588 /(a*b|(?i:c*(?-i)d))/I
589 Capturing subpattern count = 1
590 Starting code units: C a b c d
591 Subject length lower bound = 1
592
593 /a$/I
594 Capturing subpattern count = 0
595 First code unit = 'a'
596 Subject length lower bound = 1
597 a
598 0: a
599 a\n
600 0: a
601 \= Expect no match
602 a\=noteol
603 No match
604 a\n\=noteol
605 No match
606
607 /a$/Im
608 Capturing subpattern count = 0
609 Options: multiline
610 First code unit = 'a'
611 Subject length lower bound = 1
612 a
613 0: a
614 a\n
615 0: a
616 a\n\=noteol
617 0: a
618 \= Expect no match
619 a\=noteol
620 No match
621
622 /\Aabc/Im
623 Capturing subpattern count = 0
624 Max lookbehind = 1
625 Compile options: multiline
626 Overall options: anchored multiline
627 Subject length lower bound = 3
628
629 /^abc/Im
630 Capturing subpattern count = 0
631 Options: multiline
632 First code unit at start or follows newline
633 Last code unit = 'c'
634 Subject length lower bound = 3
635
636 /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/I
637 Capturing subpattern count = 5
638 Compile options: <none>
639 Overall options: anchored
640 Subject length lower bound = 3
641 aaaaabbbbbcccccdef
642 0: aaaaabbbbbcccccdef
643 1: aaaaabbbbbcccccdef
644 2: aaaaa
645 3: b
646 4: bbbbccccc
647 5: def
648
649 /(?<=foo)[ab]/I
650 Capturing subpattern count = 0
651 Max lookbehind = 3
652 Starting code units: a b
653 Subject length lower bound = 1
654
655 /(?<!foo)(alpha|omega)/I
656 Capturing subpattern count = 1
657 Max lookbehind = 3
658 Starting code units: a o
659 Last code unit = 'a'
660 Subject length lower bound = 5
661
662 /(?!alphabet)[ab]/I
663 Capturing subpattern count = 0
664 Starting code units: a b
665 Subject length lower bound = 1
666
667 /(?<=foo\n)^bar/Im
668 Capturing subpattern count = 0
669 Max lookbehind = 4
670 Contains explicit CR or LF match
671 Options: multiline
672 Last code unit = 'r'
673 Subject length lower bound = 3
674 foo\nbarbar
675 0: bar
676 \= Expect no match
677 rhubarb
678 No match
679 barbell
680 No match
681 abc\nbarton
682 No match
683
684 /^(?<=foo\n)bar/Im
685 Capturing subpattern count = 0
686 Max lookbehind = 4
687 Contains explicit CR or LF match
688 Options: multiline
689 First code unit at start or follows newline
690 Last code unit = 'r'
691 Subject length lower bound = 3
692 foo\nbarbar
693 0: bar
694 \= Expect no match
695 rhubarb
696 No match
697 barbell
698 No match
699 abc\nbarton
700 No match
701
702 /(?>^abc)/Im
703 Capturing subpattern count = 0
704 Options: multiline
705 First code unit at start or follows newline
706 Last code unit = 'c'
707 Subject length lower bound = 3
708 abc
709 0: abc
710 def\nabc
711 0: abc
712 \= Expect no match
713 defabc
714 No match
715
716 /(?<=ab(c+)d)ef/
717 Failed: error 125 at offset 0: lookbehind assertion is not fixed length
718
719 /(?<=ab(?<=c+)d)ef/
720 Failed: error 125 at offset 6: lookbehind assertion is not fixed length
721
722 /(?<=ab(c|de)f)g/
723 Failed: error 125 at offset 0: lookbehind assertion is not fixed length
724
725 /The next three are in testinput2 because they have variable length branches/
726
727 /(?<=bullock|donkey)-cart/I
728 Capturing subpattern count = 0
729 Max lookbehind = 7
730 First code unit = '-'
731 Last code unit = 't'
732 Subject length lower bound = 5
733 the bullock-cart
734 0: -cart
735 a donkey-cart race
736 0: -cart
737 \= Expect no match
738 cart
739 No match
740 horse-and-cart
741 No match
742
743 /(?<=ab(?i)x|y|z)/I
744 Capturing subpattern count = 0
745 Max lookbehind = 3
746 May match empty string
747 Subject length lower bound = 0
748
749 /(?>.*)(?<=(abcd)|(xyz))/I
750 Capturing subpattern count = 2
751 Max lookbehind = 4
752 May match empty string
753 Subject length lower bound = 0
754 alphabetabcd
755 0: alphabetabcd
756 1: abcd
757 endingxyz
758 0: endingxyz
759 1: <unset>
760 2: xyz
761
762 /(?<=ab(?i)x(?-i)y|(?i)z|b)ZZ/I
763 Capturing subpattern count = 0
764 Max lookbehind = 4
765 First code unit = 'Z'
766 Last code unit = 'Z'
767 Subject length lower bound = 2
768 abxyZZ
769 0: ZZ
770 abXyZZ
771 0: ZZ
772 ZZZ
773 0: ZZ
774 zZZ
775 0: ZZ
776 bZZ
777 0: ZZ
778 BZZ
779 0: ZZ
780 \= Expect no match
781 ZZ
782 No match
783 abXYZZ
784 No match
785 zzz
786 No match
787 bzz
788 No match
789
790 /(?<!(foo)a)bar/I
791 Capturing subpattern count = 1
792 Max lookbehind = 4
793 First code unit = 'b'
794 Last code unit = 'r'
795 Subject length lower bound = 3
796 bar
797 0: bar
798 foobbar
799 0: bar
800 \= Expect no match
801 fooabar
802 No match
803
804 # This one is here because Perl behaves differently; see also the following.
805
806 /^(a\1?){4}$/I
807 Capturing subpattern count = 1
808 Max back reference = 1
809 Compile options: <none>
810 Overall options: anchored
811 Subject length lower bound = 4
812 \= Expect no match
813 aaaa
814 No match
815 aaaaaa
816 No match
817
818 # Perl does not fail these two for the final subjects. Neither did PCRE until
819 # release 8.01. The problem is in backtracking into a subpattern that contains
820 # a recursive reference to itself. PCRE has now made these into atomic patterns.
821
822 /^(xa|=?\1a){2}$/
823 xa=xaa
824 0: xa=xaa
825 1: =xaa
826 \= Expect no match
827 xa=xaaa
828 No match
829
830 /^(xa|=?\1a)+$/
831 xa=xaa
832 0: xa=xaa
833 1: =xaa
834 \= Expect no match
835 xa=xaaa
836 No match
837
838 # These are syntax tests from Perl 5.005
839
840 /a[b-a]/
841 Failed: error 108 at offset 4: range out of order in character class
842
843 /a[]b/
844 Failed: error 106 at offset 4: missing terminating ] for character class
845
846 /a[/
847 Failed: error 106 at offset 2: missing terminating ] for character class
848
849 /*a/
850 Failed: error 109 at offset 0: quantifier does not follow a repeatable item
851
852 /(*)b/
853 Failed: error 109 at offset 1: quantifier does not follow a repeatable item
854
855 /abc)/
856 Failed: error 122 at offset 3: unmatched closing parenthesis
857
858 /(abc/
859 Failed: error 114 at offset 4: missing closing parenthesis
860
861 /a**/
862 Failed: error 109 at offset 2: quantifier does not follow a repeatable item
863
864 /)(/
865 Failed: error 122 at offset 0: unmatched closing parenthesis
866
867 /\1/
868 Failed: error 115 at offset 1: reference to non-existent subpattern
869
870 /\2/
871 Failed: error 115 at offset 1: reference to non-existent subpattern
872
873 /(a)|\2/
874 Failed: error 115 at offset 5: reference to non-existent subpattern
875
876 /a[b-a]/Ii
877 Failed: error 108 at offset 4: range out of order in character class
878
879 /a[]b/Ii
880 Failed: error 106 at offset 4: missing terminating ] for character class
881
882 /a[/Ii
883 Failed: error 106 at offset 2: missing terminating ] for character class
884
885 /*a/Ii
886 Failed: error 109 at offset 0: quantifier does not follow a repeatable item
887
888 /(*)b/Ii
889 Failed: error 109 at offset 1: quantifier does not follow a repeatable item
890
891 /abc)/Ii
892 Failed: error 122 at offset 3: unmatched closing parenthesis
893
894 /(abc/Ii
895 Failed: error 114 at offset 4: missing closing parenthesis
896
897 /a**/Ii
898 Failed: error 109 at offset 2: quantifier does not follow a repeatable item
899
900 /)(/Ii
901 Failed: error 122 at offset 0: unmatched closing parenthesis
902
903 /:(?:/
904 Failed: error 114 at offset 4: missing closing parenthesis
905
906 /(?<%)b/
907 Failed: error 162 at offset 3: subpattern name expected
908
909 /a(?{)b/
910 Failed: error 111 at offset 3: unrecognized character after (? or (?-
911
912 /a(?{{})b/
913 Failed: error 111 at offset 3: unrecognized character after (? or (?-
914
915 /a(?{}})b/
916 Failed: error 111 at offset 3: unrecognized character after (? or (?-
917
918 /a(?{"{"})b/
919 Failed: error 111 at offset 3: unrecognized character after (? or (?-
920
921 /a(?{"{"}})b/
922 Failed: error 111 at offset 3: unrecognized character after (? or (?-
923
924 /(?(1?)a|b)/
925 Failed: error 124 at offset 4: missing closing parenthesis for condition
926
927 /[a[:xyz:/
928 Failed: error 106 at offset 8: missing terminating ] for character class
929
930 /(?<=x+)y/
931 Failed: error 125 at offset 0: lookbehind assertion is not fixed length
932
933 /a{37,17}/
934 Failed: error 104 at offset 7: numbers out of order in {} quantifier
935
936 /abc/\
937 Failed: error 101 at offset 4: \ at end of pattern
938
939 /abc/\i
940 Failed: error 101 at offset 4: \ at end of pattern
941
942 /(a)bc(d)/I
943 Capturing subpattern count = 2
944 First code unit = 'a'
945 Last code unit = 'd'
946 Subject length lower bound = 4
947 abcd
948 0: abcd
949 1: a
950 2: d
951 abcd\=copy=2
952 0: abcd
953 1: a
954 2: d
955 2C d (1)
956 abcd\=copy=5
957 0: abcd
958 1: a
959 2: d
960 Copy substring 5 failed (-49): unknown substring
961
962 /(.{20})/I
963 Capturing subpattern count = 1
964 Subject length lower bound = 20
965 abcdefghijklmnopqrstuvwxyz
966 0: abcdefghijklmnopqrst
967 1: abcdefghijklmnopqrst
968 abcdefghijklmnopqrstuvwxyz\=copy=1
969 0: abcdefghijklmnopqrst
970 1: abcdefghijklmnopqrst
971 1C abcdefghijklmnopqrst (20)
972 abcdefghijklmnopqrstuvwxyz\=get=1
973 0: abcdefghijklmnopqrst
974 1: abcdefghijklmnopqrst
975 1G abcdefghijklmnopqrst (20)
976
977 /(.{15})/I
978 Capturing subpattern count = 1
979 Subject length lower bound = 15
980 abcdefghijklmnopqrstuvwxyz
981 0: abcdefghijklmno
982 1: abcdefghijklmno
983 abcdefghijklmnopqrstuvwxyz\=copy=1,get=1
984 0: abcdefghijklmno
985 1: abcdefghijklmno
986 1C abcdefghijklmno (15)
987 1G abcdefghijklmno (15)
988
989 /(.{16})/I
990 Capturing subpattern count = 1
991 Subject length lower bound = 16
992 abcdefghijklmnopqrstuvwxyz
993 0: abcdefghijklmnop
994 1: abcdefghijklmnop
995 abcdefghijklmnopqrstuvwxyz\=copy=1,get=1,getall
996 0: abcdefghijklmnop
997 1: abcdefghijklmnop
998 1C abcdefghijklmnop (16)
999 1G abcdefghijklmnop (16)
1000 0L abcdefghijklmnop
1001 1L abcdefghijklmnop
1002
1003 /^(a|(bc))de(f)/I
1004 Capturing subpattern count = 3
1005 Compile options: <none>
1006 Overall options: anchored
1007 Subject length lower bound = 4
1008 adef\=get=1,get=2,get=3,get=4,getall
1009 0: adef
1010 1: a
1011 2: <unset>
1012 3: f
1013 1G a (1)
1014 Get substring 2 failed (-55): requested value is not set
1015 3G f (1)
1016 Get substring 4 failed (-49): unknown substring
1017 0L adef
1018 1L a
1019 2L
1020 3L f
1021 bcdef\=get=1,get=2,get=3,get=4,getall
1022 0: bcdef
1023 1: bc
1024 2: bc
1025 3: f
1026 1G bc (2)
1027 2G bc (2)
1028 3G f (1)
1029 Get substring 4 failed (-49): unknown substring
1030 0L bcdef
1031 1L bc
1032 2L bc
1033 3L f
1034 adefghijk\=copy=0
1035 0: adef
1036 1: a
1037 2: <unset>
1038 3: f
1039 0C adef (4)
1040
1041 /^abc\00def/I
1042 Capturing subpattern count = 0
1043 Compile options: <none>
1044 Overall options: anchored
1045 Subject length lower bound = 7
1046 abc\00def\=copy=0,getall
1047 0: abc\x00def
1048 0C abc\x00def (7)
1049 0L abc\x00def
1050
1051 /word ((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
1052 )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
1053 )?)?)?)?)?)?)?)?)?otherword/I
1054 Capturing subpattern count = 8
1055 Contains explicit CR or LF match
1056 First code unit = 'w'
1057 Last code unit = 'd'
1058 Subject length lower bound = 14
1059
1060 /.*X/IB
1061 ------------------------------------------------------------------
1062 Bra
1063 Any*
1064 X
1065 Ket
1066 End
1067 ------------------------------------------------------------------
1068 Capturing subpattern count = 0
1069 First code unit at start or follows newline
1070 Last code unit = 'X'
1071 Subject length lower bound = 1
1072
1073 /.*X/IBs
1074 ------------------------------------------------------------------
1075 Bra
1076 AllAny*
1077 X
1078 Ket
1079 End
1080 ------------------------------------------------------------------
1081 Capturing subpattern count = 0
1082 Compile options: dotall
1083 Overall options: anchored dotall
1084 Last code unit = 'X'
1085 Subject length lower bound = 1
1086
1087 /(.*X|^B)/IB
1088 ------------------------------------------------------------------
1089 Bra
1090 CBra 1
1091 Any*
1092 X
1093 Alt
1094 ^
1095 B
1096 Ket
1097 Ket
1098 End
1099 ------------------------------------------------------------------
1100 Capturing subpattern count = 1
1101 First code unit at start or follows newline
1102 Subject length lower bound = 1
1103
1104 /(.*X|^B)/IBs
1105 ------------------------------------------------------------------
1106 Bra
1107 CBra 1
1108 AllAny*
1109 X
1110 Alt
1111 ^
1112 B
1113 Ket
1114 Ket
1115 End
1116 ------------------------------------------------------------------
1117 Capturing subpattern count = 1
1118 Compile options: dotall
1119 Overall options: anchored dotall
1120 Subject length lower bound = 1
1121
1122 /(?s)(.*X|^B)/IB
1123 ------------------------------------------------------------------
1124 Bra
1125 CBra 1
1126 AllAny*
1127 X
1128 Alt
1129 ^
1130 B
1131 Ket
1132 Ket
1133 End
1134 ------------------------------------------------------------------
1135 Capturing subpattern count = 1
1136 Compile options: <none>
1137 Overall options: anchored
1138 Subject length lower bound = 1
1139
1140 /(?s:.*X|^B)/IB
1141 ------------------------------------------------------------------
1142 Bra
1143 Bra
1144 AllAny*
1145 X
1146 Alt
1147 ^
1148 B
1149 Ket
1150 Ket
1151 End
1152 ------------------------------------------------------------------
1153 Capturing subpattern count = 0
1154 Compile options: <none>
1155 Overall options: anchored
1156 Subject length lower bound = 1
1157
1158 /\Biss\B/I,aftertext
1159 Capturing subpattern count = 0
1160 Max lookbehind = 1
1161 First code unit = 'i'
1162 Last code unit = 's'
1163 Subject length lower bound = 3
1164 Mississippi
1165 0: iss
1166 0+ issippi
1167
1168 /iss/I,aftertext,altglobal
1169 Capturing subpattern count = 0
1170 First code unit = 'i'
1171 Last code unit = 's'
1172 Subject length lower bound = 3
1173 Mississippi
1174 0: iss
1175 0+ issippi
1176 0: iss
1177 0+ ippi
1178
1179 /\Biss\B/I,aftertext,altglobal
1180 Capturing subpattern count = 0
1181 Max lookbehind = 1
1182 First code unit = 'i'
1183 Last code unit = 's'
1184 Subject length lower bound = 3
1185 Mississippi
1186 0: iss
1187 0+ issippi
1188
1189 /\Biss\B/Ig,aftertext
1190 Capturing subpattern count = 0
1191 Max lookbehind = 1
1192 First code unit = 'i'
1193 Last code unit = 's'
1194 Subject length lower bound = 3
1195 Mississippi
1196 0: iss
1197 0+ issippi
1198 0: iss
1199 0+ ippi
1200 \= Expect no match
1201 Mississippi\=anchored
1202 No match
1203
1204 /(?<=[Ms])iss/Ig,aftertext
1205 Capturing subpattern count = 0
1206 Max lookbehind = 1
1207 First code unit = 'i'
1208 Last code unit = 's'
1209 Subject length lower bound = 3
1210 Mississippi
1211 0: iss
1212 0+ issippi
1213 0: iss
1214 0+ ippi
1215
1216 /(?<=[Ms])iss/I,aftertext,altglobal
1217 Capturing subpattern count = 0
1218 Max lookbehind = 1
1219 First code unit = 'i'
1220 Last code unit = 's'
1221 Subject length lower bound = 3
1222 Mississippi
1223 0: iss
1224 0+ issippi
1225
1226 /^iss/Ig,aftertext
1227 Capturing subpattern count = 0
1228 Compile options: <none>
1229 Overall options: anchored
1230 Subject length lower bound = 3
1231 ississippi
1232 0: iss
1233 0+ issippi
1234
1235 /.*iss/Ig,aftertext
1236 Capturing subpattern count = 0
1237 First code unit at start or follows newline
1238 Last code unit = 's'
1239 Subject length lower bound = 3
1240 abciss\nxyzisspqr
1241 0: abciss
1242 0+ \x0axyzisspqr
1243 0: xyziss
1244 0+ pqr
1245
1246 /.i./Ig,aftertext
1247 Capturing subpattern count = 0
1248 Last code unit = 'i'
1249 Subject length lower bound = 3
1250 Mississippi
1251 0: Mis
1252 0+ sissippi
1253 0: sis
1254 0+ sippi
1255 0: sip
1256 0+ pi
1257 Mississippi\=anchored
1258 0: Mis
1259 0+ sissippi
1260 0: sis
1261 0+ sippi
1262 0: sip
1263 0+ pi
1264 Missouri river
1265 0: Mis
1266 0+ souri river
1267 0: ri
1268 0+ river
1269 0: riv
1270 0+ er
1271 Missouri river\=anchored
1272 0: Mis
1273 0+ souri river
1274
1275 /^.is/Ig,aftertext
1276 Capturing subpattern count = 0
1277 Compile options: <none>
1278 Overall options: anchored
1279 Subject length lower bound = 3
1280 Mississippi
1281 0: Mis
1282 0+ sissippi
1283
1284 /^ab\n/Ig,aftertext
1285 Capturing subpattern count = 0
1286 Contains explicit CR or LF match
1287 Compile options: <none>
1288 Overall options: anchored
1289 Subject length lower bound = 3
1290 ab\nab\ncd
1291 0: ab\x0a
1292 0+ ab\x0acd
1293
1294 /^ab\n/Igm,aftertext
1295 Capturing subpattern count = 0
1296 Contains explicit CR or LF match
1297 Options: multiline
1298 First code unit at start or follows newline
1299 Last code unit = \x0a
1300 Subject length lower bound = 3
1301 ab\nab\ncd
1302 0: ab\x0a
1303 0+ ab\x0acd
1304 0: ab\x0a
1305 0+ cd
1306
1307 /^/gm,newline=any
1308 a\rb\nc\r\nxyz\=aftertext
1309 0:
1310 0+ a\x0db\x0ac\x0d\x0axyz
1311 0:
1312 0+ b\x0ac\x0d\x0axyz
1313 0:
1314 0+ c\x0d\x0axyz
1315 0:
1316 0+ xyz
1317
1318 /abc/I
1319 Capturing subpattern count = 0
1320 First code unit = 'a'
1321 Last code unit = 'c'
1322 Subject length lower bound = 3
1323
1324 /abc|bac/I
1325 Capturing subpattern count = 0
1326 Starting code units: a b
1327 Last code unit = 'c'
1328 Subject length lower bound = 3
1329
1330 /(abc|bac)/I
1331 Capturing subpattern count = 1
1332 Starting code units: a b
1333 Last code unit = 'c'
1334 Subject length lower bound = 3
1335
1336 /(abc|(c|dc))/I
1337 Capturing subpattern count = 2
1338 Starting code units: a c d
1339 Last code unit = 'c'
1340 Subject length lower bound = 1
1341
1342 /(abc|(d|de)c)/I
1343 Capturing subpattern count = 2
1344 Starting code units: a d
1345 Last code unit = 'c'
1346 Subject length lower bound = 2
1347
1348 /a*/I
1349 Capturing subpattern count = 0
1350 May match empty string
1351 Subject length lower bound = 0
1352
1353 /a+/I
1354 Capturing subpattern count = 0
1355 First code unit = 'a'
1356 Subject length lower bound = 1
1357
1358 /(baa|a+)/I
1359 Capturing subpattern count = 1
1360 Starting code units: a b
1361 Last code unit = 'a'
1362 Subject length lower bound = 1
1363
1364 /a{0,3}/I
1365 Capturing subpattern count = 0
1366 May match empty string
1367 Subject length lower bound = 0
1368
1369 /baa{3,}/I
1370 Capturing subpattern count = 0
1371 First code unit = 'b'
1372 Last code unit = 'a'
1373 Subject length lower bound = 5
1374
1375 /"([^\\"]+|\\.)*"/I
1376 Capturing subpattern count = 1
1377 First code unit = '"'
1378 Last code unit = '"'
1379 Subject length lower bound = 2
1380
1381 /(abc|ab[cd])/I
1382 Capturing subpattern count = 1
1383 First code unit = 'a'
1384 Subject length lower bound = 3
1385
1386 /(a|.)/I
1387 Capturing subpattern count = 1
1388 Subject length lower bound = 1
1389
1390 /a|ba|\w/I
1391 Capturing subpattern count = 0
1392 Starting code units: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P
1393 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
1394 Subject length lower bound = 1
1395
1396 /abc(?=pqr)/I
1397 Capturing subpattern count = 0
1398 First code unit = 'a'
1399 Last code unit = 'r'
1400 Subject length lower bound = 3
1401
1402 /...(?<=abc)/I
1403 Capturing subpattern count = 0
1404 Max lookbehind = 3
1405 Subject length lower bound = 3
1406
1407 /abc(?!pqr)/I
1408 Capturing subpattern count = 0
1409 First code unit = 'a'
1410 Last code unit = 'c'
1411 Subject length lower bound = 3
1412
1413 /ab./I
1414 Capturing subpattern count = 0
1415 First code unit = 'a'
1416 Last code unit = 'b'
1417 Subject length lower bound = 3
1418
1419 /ab[xyz]/I
1420 Capturing subpattern count = 0
1421 First code unit = 'a'
1422 Last code unit = 'b'
1423 Subject length lower bound = 3
1424
1425 /abc*/I
1426 Capturing subpattern count = 0
1427 First code unit = 'a'
1428 Last code unit = 'b'
1429 Subject length lower bound = 2
1430
1431 /ab.c*/I
1432 Capturing subpattern count = 0
1433 First code unit = 'a'
1434 Last code unit = 'b'
1435 Subject length lower bound = 3
1436
1437 /a.c*/I
1438 Capturing subpattern count = 0
1439 First code unit = 'a'
1440 Subject length lower bound = 2
1441
1442 /.c*/I
1443 Capturing subpattern count = 0
1444 Subject length lower bound = 1
1445
1446 /ac*/I
1447 Capturing subpattern count = 0
1448 First code unit = 'a'
1449 Subject length lower bound = 1
1450
1451 /(a.c*|b.c*)/I
1452 Capturing subpattern count = 1
1453 Starting code units: a b
1454 Subject length lower bound = 2
1455
1456 /a.c*|aba/I
1457 Capturing subpattern count = 0
1458 First code unit = 'a'
1459 Subject length lower bound = 2
1460
1461 /.+a/I
1462 Capturing subpattern count = 0
1463 Last code unit = 'a'
1464 Subject length lower bound = 2
1465
1466 /(?=abcda)a.*/I
1467 Capturing subpattern count = 0
1468 First code unit = 'a'
1469 Last code unit = 'a'
1470 Subject length lower bound = 1
1471
1472 /(?=a)a.*/I
1473 Capturing subpattern count = 0
1474 First code unit = 'a'
1475 Subject length lower bound = 1
1476
1477 /a(b)*/I
1478 Capturing subpattern count = 1
1479 First code unit = 'a'
1480 Subject length lower bound = 1
1481
1482 /a\d*/I
1483 Capturing subpattern count = 0
1484 First code unit = 'a'
1485 Subject length lower bound = 1
1486
1487 /ab\d*/I
1488 Capturing subpattern count = 0
1489 First code unit = 'a'
1490 Last code unit = 'b'
1491 Subject length lower bound = 2
1492
1493 /a(\d)*/I
1494 Capturing subpattern count = 1
1495 First code unit = 'a'
1496 Subject length lower bound = 1
1497
1498 /abcde{0,0}/I
1499 Capturing subpattern count = 0
1500 First code unit = 'a'
1501 Last code unit = 'd'
1502 Subject length lower bound = 4
1503
1504 /ab\d+/I
1505 Capturing subpattern count = 0
1506 First code unit = 'a'
1507 Last code unit = 'b'
1508 Subject length lower bound = 3
1509
1510 /a(?(1)b)(.)/I
1511 Capturing subpattern count = 1
1512 Max back reference = 1
1513 First code unit = 'a'
1514 Subject length lower bound = 2
1515
1516 /a(?(1)bag|big)(.)/I
1517 Capturing subpattern count = 1
1518 Max back reference = 1
1519 First code unit = 'a'
1520 Last code unit = 'g'
1521 Subject length lower bound = 5
1522
1523 /a(?(1)bag|big)*(.)/I
1524 Capturing subpattern count = 1
1525 Max back reference = 1
1526 First code unit = 'a'
1527 Subject length lower bound = 2
1528
1529 /a(?(1)bag|big)+(.)/I
1530 Capturing subpattern count = 1
1531 Max back reference = 1
1532 First code unit = 'a'
1533 Last code unit = 'g'
1534 Subject length lower bound = 5
1535
1536 /a(?(1)b..|b..)(.)/I
1537 Capturing subpattern count = 1
1538 Max back reference = 1
1539 First code unit = 'a'
1540 Last code unit = 'b'
1541 Subject length lower bound = 5
1542
1543 /ab\d{0}e/I
1544 Capturing subpattern count = 0
1545 First code unit = 'a'
1546 Last code unit = 'e'
1547 Subject length lower bound = 3
1548
1549 /a?b?/I
1550 Capturing subpattern count = 0
1551 May match empty string
1552 Subject length lower bound = 0
1553 a
1554 0: a
1555 b
1556 0: b
1557 ab
1558 0: ab
1559 \
1560 0:
1561 \= Expect no match
1562 \=notempty
1563 No match
1564
1565 /|-/I
1566 Capturing subpattern count = 0
1567 May match empty string
1568 Subject length lower bound = 0
1569 abcd
1570 0:
1571 -abc
1572 0:
1573 ab-c\=notempty
1574 0: -
1575 \= Expect no match
1576 abc\=notempty
1577 No match
1578
1579 /^.?abcd/I
1580 Capturing subpattern count = 0
1581 Compile options: <none>
1582 Overall options: anchored
1583 Last code unit = 'd'
1584 Subject length lower bound = 4
1585
1586 /\( # ( at start
1587 (?: # Non-capturing bracket
1588 (?>[^()]+) # Either a sequence of non-brackets (no backtracking)
1589 | # Or
1590 (?R) # Recurse - i.e. nested bracketed string
1591 )* # Zero or more contents
1592 \) # Closing )
1593 /Ix
1594 Capturing subpattern count = 0
1595 Options: extended
1596 First code unit = '('
1597 Last code unit = ')'
1598 Subject length lower bound = 2
1599 (abcd)
1600 0: (abcd)
1601 (abcd)xyz
1602 0: (abcd)
1603 xyz(abcd)
1604 0: (abcd)
1605 (ab(xy)cd)pqr
1606 0: (ab(xy)cd)
1607 (ab(xycd)pqr
1608 0: (xycd)
1609 () abc ()
1610 0: ()
1611 12(abcde(fsh)xyz(foo(bar))lmno)89
1612 0: (abcde(fsh)xyz(foo(bar))lmno)
1613 \= Expect no match
1614 abcd
1615 No match
1616 abcd)
1617 No match
1618 (abcd
1619 No match
1620
1621 /\( ( (?>[^()]+) | (?R) )* \) /Igx
1622 Capturing subpattern count = 1
1623 Options: extended
1624 First code unit = '('
1625 Last code unit = ')'
1626 Subject length lower bound = 2
1627 (ab(xy)cd)pqr
1628 0: (ab(xy)cd)
1629 1: cd
1630 1(abcd)(x(y)z)pqr
1631 0: (abcd)
1632 1: abcd
1633 0: (x(y)z)
1634 1: z
1635
1636 /\( (?: (?>[^()]+) | (?R) ) \) /Ix
1637 Capturing subpattern count = 0
1638 Options: extended
1639 First code unit = '('
1640 Last code unit = ')'
1641 Subject length lower bound = 3
1642 (abcd)
1643 0: (abcd)
1644 (ab(xy)cd)
1645 0: (xy)
1646 (a(b(c)d)e)
1647 0: (c)
1648 ((ab))
1649 0: ((ab))
1650 \= Expect no match
1651 ()
1652 No match
1653
1654 /\( (?: (?>[^()]+) | (?R) )? \) /Ix
1655 Capturing subpattern count = 0
1656 Options: extended
1657 First code unit = '('
1658 Last code unit = ')'
1659 Subject length lower bound = 2
1660 ()
1661 0: ()
1662 12(abcde(fsh)xyz(foo(bar))lmno)89
1663 0: (fsh)
1664
1665 /\( ( (?>[^()]+) | (?R) )* \) /Ix
1666 Capturing subpattern count = 1
1667 Options: extended
1668 First code unit = '('
1669 Last code unit = ')'
1670 Subject length lower bound = 2
1671 (ab(xy)cd)
1672 0: (ab(xy)cd)
1673 1: cd
1674
1675 /\( ( ( (?>[^()]+) | (?R) )* ) \) /Ix
1676 Capturing subpattern count = 2
1677 Options: extended
1678 First code unit = '('
1679 Last code unit = ')'
1680 Subject length lower bound = 2
1681 (ab(xy)cd)
1682 0: (ab(xy)cd)
1683 1: ab(xy)cd
1684 2: cd
1685
1686 /\( (123)? ( ( (?>[^()]+) | (?R) )* ) \) /Ix
1687 Capturing subpattern count = 3
1688 Options: extended
1689 First code unit = '('
1690 Last code unit = ')'
1691 Subject length lower bound = 2
1692 (ab(xy)cd)
1693 0: (ab(xy)cd)
1694 1: <unset>
1695 2: ab(xy)cd
1696 3: cd
1697 (123ab(xy)cd)
1698 0: (123ab(xy)cd)
1699 1: 123
1700 2: ab(xy)cd
1701 3: cd
1702
1703 /\( ( (123)? ( (?>[^()]+) | (?R) )* ) \) /Ix
1704 Capturing subpattern count = 3
1705 Options: extended
1706 First code unit = '('
1707 Last code unit = ')'
1708 Subject length lower bound = 2
1709 (ab(xy)cd)
1710 0: (ab(xy)cd)
1711 1: ab(xy)cd
1712 2: <unset>
1713 3: cd
1714 (123ab(xy)cd)
1715 0: (123ab(xy)cd)
1716 1: 123ab(xy)cd
1717 2: 123
1718 3: cd
1719
1720 /\( (((((((((( ( (?>[^()]+) | (?R) )* )))))))))) \) /Ix
1721 Capturing subpattern count = 11
1722 Options: extended
1723 First code unit = '('
1724 Last code unit = ')'
1725 Subject length lower bound = 2
1726 (ab(xy)cd)
1727 0: (ab(xy)cd)
1728 1: ab(xy)cd
1729 2: ab(xy)cd
1730 3: ab(xy)cd
1731 4: ab(xy)cd
1732 5: ab(xy)cd
1733 6: ab(xy)cd
1734 7: ab(xy)cd
1735 8: ab(xy)cd
1736 9: ab(xy)cd
1737 10: ab(xy)cd
1738 11: cd
1739
1740 /\( ( ( (?>[^()<>]+) | ((?>[^()]+)) | (?R) )* ) \) /Ix
1741 Capturing subpattern count = 3
1742 Options: extended
1743 First code unit = '('
1744 Last code unit = ')'
1745 Subject length lower bound = 2
1746 (abcd(xyz<p>qrs)123)
1747 0: (abcd(xyz<p>qrs)123)
1748 1: abcd(xyz<p>qrs)123
1749 2: 123
1750
1751 /\( ( ( (?>[^()]+) | ((?R)) )* ) \) /Ix
1752 Capturing subpattern count = 3
1753 Options: extended
1754 First code unit = '('
1755 Last code unit = ')'
1756 Subject length lower bound = 2
1757 (ab(cd)ef)
1758 0: (ab(cd)ef)
1759 1: ab(cd)ef
1760 2: ef
1761 3: (cd)
1762 (ab(cd(ef)gh)ij)
1763 0: (ab(cd(ef)gh)ij)
1764 1: ab(cd(ef)gh)ij
1765 2: ij
1766 3: (cd(ef)gh)
1767
1768 /^[[:alnum:]]/IB
1769 ------------------------------------------------------------------
1770 Bra
1771 ^
1772 [0-9A-Za-z]
1773 Ket
1774 End
1775 ------------------------------------------------------------------
1776 Capturing subpattern count = 0
1777 Compile options: <none>
1778 Overall options: anchored
1779 Subject length lower bound = 1
1780
1781 /^[[:^alnum:]]/IB
1782 ------------------------------------------------------------------
1783 Bra
1784 ^
1785 [\x00-/:-@[-`{-\xff] (neg)
1786 Ket
1787 End
1788 ------------------------------------------------------------------
1789 Capturing subpattern count = 0
1790 Compile options: <none>
1791 Overall options: anchored
1792 Subject length lower bound = 1
1793
1794 /^[[:alpha:]]/IB
1795 ------------------------------------------------------------------
1796 Bra
1797 ^
1798 [A-Za-z]
1799 Ket
1800 End
1801 ------------------------------------------------------------------
1802 Capturing subpattern count = 0
1803 Compile options: <none>
1804 Overall options: anchored
1805 Subject length lower bound = 1
1806
1807 /^[[:^alpha:]]/IB
1808 ------------------------------------------------------------------
1809 Bra
1810 ^
1811 [\x00-@[-`{-\xff] (neg)
1812 Ket
1813 End
1814 ------------------------------------------------------------------
1815 Capturing subpattern count = 0
1816 Compile options: <none>
1817 Overall options: anchored
1818 Subject length lower bound = 1
1819
1820 /[_[:alpha:]]/I
1821 Capturing subpattern count = 0
1822 Starting code units: 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
1823 _ 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
1824 Subject length lower bound = 1
1825
1826 /^[[:ascii:]]/IB
1827 ------------------------------------------------------------------
1828 Bra
1829 ^
1830 [\x00-\x7f]
1831 Ket
1832 End
1833 ------------------------------------------------------------------
1834 Capturing subpattern count = 0
1835 Compile options: <none>
1836 Overall options: anchored
1837 Subject length lower bound = 1
1838
1839 /^[[:^ascii:]]/IB
1840 ------------------------------------------------------------------
1841 Bra
1842 ^
1843 [\x80-\xff] (neg)
1844 Ket
1845 End
1846 ------------------------------------------------------------------
1847 Capturing subpattern count = 0
1848 Compile options: <none>
1849 Overall options: anchored
1850 Subject length lower bound = 1
1851
1852 /^[[:blank:]]/IB
1853 ------------------------------------------------------------------
1854 Bra
1855 ^
1856 [\x09 ]
1857 Ket
1858 End
1859 ------------------------------------------------------------------
1860 Capturing subpattern count = 0
1861 Compile options: <none>
1862 Overall options: anchored
1863 Subject length lower bound = 1
1864
1865 /^[[:^blank:]]/IB
1866 ------------------------------------------------------------------
1867 Bra
1868 ^
1869 [\x00-\x08\x0a-\x1f!-\xff] (neg)
1870 Ket
1871 End
1872 ------------------------------------------------------------------
1873 Capturing subpattern count = 0
1874 Compile options: <none>
1875 Overall options: anchored
1876 Subject length lower bound = 1
1877
1878 /[\n\x0b\x0c\x0d[:blank:]]/I
1879 Capturing subpattern count = 0
1880 Contains explicit CR or LF match
1881 Starting code units: \x09 \x0a \x0b \x0c \x0d \x20
1882 Subject length lower bound = 1
1883
1884 /^[[:cntrl:]]/IB
1885 ------------------------------------------------------------------
1886 Bra
1887 ^
1888 [\x00-\x1f\x7f]
1889 Ket
1890 End
1891 ------------------------------------------------------------------
1892 Capturing subpattern count = 0
1893 Compile options: <none>
1894 Overall options: anchored
1895 Subject length lower bound = 1
1896
1897 /^[[:digit:]]/IB
1898 ------------------------------------------------------------------
1899 Bra
1900 ^
1901 [0-9]
1902 Ket
1903 End
1904 ------------------------------------------------------------------
1905 Capturing subpattern count = 0
1906 Compile options: <none>
1907 Overall options: anchored
1908 Subject length lower bound = 1
1909
1910 /^[[:graph:]]/IB
1911 ------------------------------------------------------------------
1912 Bra
1913 ^
1914 [!-~]
1915 Ket
1916 End
1917 ------------------------------------------------------------------
1918 Capturing subpattern count = 0
1919 Compile options: <none>
1920 Overall options: anchored
1921 Subject length lower bound = 1
1922
1923 /^[[:lower:]]/IB
1924 ------------------------------------------------------------------
1925 Bra
1926 ^
1927 [a-z]
1928 Ket
1929 End
1930 ------------------------------------------------------------------
1931 Capturing subpattern count = 0
1932 Compile options: <none>
1933 Overall options: anchored
1934 Subject length lower bound = 1
1935
1936 /^[[:print:]]/IB
1937 ------------------------------------------------------------------
1938 Bra
1939 ^
1940 [ -~]
1941 Ket
1942 End
1943 ------------------------------------------------------------------
1944 Capturing subpattern count = 0
1945 Compile options: <none>
1946 Overall options: anchored
1947 Subject length lower bound = 1
1948
1949 /^[[:punct:]]/IB
1950 ------------------------------------------------------------------
1951 Bra
1952 ^
1953 [!-/:-@[-`{-~]
1954 Ket
1955 End
1956 ------------------------------------------------------------------
1957 Capturing subpattern count = 0
1958 Compile options: <none>
1959 Overall options: anchored
1960 Subject length lower bound = 1
1961
1962 /^[[:space:]]/IB
1963 ------------------------------------------------------------------
1964 Bra
1965 ^
1966 [\x09-\x0d ]
1967 Ket
1968 End
1969 ------------------------------------------------------------------
1970 Capturing subpattern count = 0
1971 Compile options: <none>
1972 Overall options: anchored
1973 Subject length lower bound = 1
1974
1975 /^[[:upper:]]/IB
1976 ------------------------------------------------------------------
1977 Bra
1978 ^
1979 [A-Z]
1980 Ket
1981 End
1982 ------------------------------------------------------------------
1983 Capturing subpattern count = 0
1984 Compile options: <none>
1985 Overall options: anchored
1986 Subject length lower bound = 1
1987
1988 /^[[:xdigit:]]/IB
1989 ------------------------------------------------------------------
1990 Bra
1991 ^
1992 [0-9A-Fa-f]
1993 Ket
1994 End
1995 ------------------------------------------------------------------
1996 Capturing subpattern count = 0
1997 Compile options: <none>
1998 Overall options: anchored
1999 Subject length lower bound = 1
2000
2001 /^[[:word:]]/IB
2002 ------------------------------------------------------------------
2003 Bra
2004 ^
2005 [0-9A-Z_a-z]
2006 Ket
2007 End
2008 ------------------------------------------------------------------
2009 Capturing subpattern count = 0
2010 Compile options: <none>
2011 Overall options: anchored
2012 Subject length lower bound = 1
2013
2014 /^[[:^cntrl:]]/IB
2015 ------------------------------------------------------------------
2016 Bra
2017 ^
2018 [ -~\x80-\xff] (neg)
2019 Ket
2020 End
2021 ------------------------------------------------------------------
2022 Capturing subpattern count = 0
2023 Compile options: <none>
2024 Overall options: anchored
2025 Subject length lower bound = 1
2026
2027 /^[12[:^digit:]]/IB
2028 ------------------------------------------------------------------
2029 Bra
2030 ^
2031 [\x00-/12:-\xff] (neg)
2032 Ket
2033 End
2034 ------------------------------------------------------------------
2035 Capturing subpattern count = 0
2036 Compile options: <none>
2037 Overall options: anchored
2038 Subject length lower bound = 1
2039
2040 /^[[:^blank:]]/IB
2041 ------------------------------------------------------------------
2042 Bra
2043 ^
2044 [\x00-\x08\x0a-\x1f!-\xff] (neg)
2045 Ket
2046 End
2047 ------------------------------------------------------------------
2048 Capturing subpattern count = 0
2049 Compile options: <none>
2050 Overall options: anchored
2051 Subject length lower bound = 1
2052
2053 /[01[:alpha:]%]/IB
2054 ------------------------------------------------------------------
2055 Bra
2056 [%01A-Za-z]
2057 Ket
2058 End
2059 ------------------------------------------------------------------
2060 Capturing subpattern count = 0
2061 Starting code units: % 0 1 A B C D E F G H I J K L M N O P Q R S T U V W
2062 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
2063 Subject length lower bound = 1
2064
2065 /[[.ch.]]/I
2066 Failed: error 113 at offset 1: POSIX collating elements are not supported
2067
2068 /[[=ch=]]/I
2069 Failed: error 113 at offset 1: POSIX collating elements are not supported
2070
2071 /[[:rhubarb:]]/I
2072 Failed: error 130 at offset 3: unknown POSIX class name
2073
2074 /[[:upper:]]/Ii
2075 Capturing subpattern count = 0
2076 Options: caseless
2077 Starting code units: 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
2078 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
2079 Subject length lower bound = 1
2080 A
2081 0: A
2082 a
2083 0: a
2084
2085 /[[:lower:]]/Ii
2086 Capturing subpattern count = 0
2087 Options: caseless
2088 Starting code units: 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
2089 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
2090 Subject length lower bound = 1
2091 A
2092 0: A
2093 a
2094 0: a
2095
2096 /((?-i)[[:lower:]])[[:lower:]]/Ii
2097 Capturing subpattern count = 1
2098 Options: caseless
2099 Starting code units: 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
2100 Subject length lower bound = 2
2101 ab
2102 0: ab
2103 1: a
2104 aB
2105 0: aB
2106 1: a
2107 \= Expect no match
2108 Ab
2109 No match
2110 AB
2111 No match
2112
2113 /[\200-\110]/I
2114 Failed: error 108 at offset 9: range out of order in character class
2115
2116 /^(?(0)f|b)oo/I
2117 Failed: error 115 at offset 5: reference to non-existent subpattern
2118
2119 # This one's here because of the large output vector needed
2120
2121 /(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\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
2122 Capturing subpattern count = 271
2123 Max back reference = 270
2124 Starting code units: 0 1 2 3 4 5 6 7 8 9
2125 Subject length lower bound = 0
2126 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 ABC ABC\=ovector=300
2127 0: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 ABC ABC
2128 1: 1
2129 2: 2
2130 3: 3
2131 4: 4
2132 5: 5
2133 6: 6
2134 7: 7
2135 8: 8
2136 9: 9
2137 10: 10
2138 11: 11
2139 12: 12
2140 13: 13
2141 14: 14
2142 15: 15
2143 16: 16
2144 17: 17
2145 18: 18
2146 19: 19
2147 20: 20
2148 21: 21
2149 22: 22
2150 23: 23
2151 24: 24
2152 25: 25
2153 26: 26
2154 27: 27
2155 28: 28
2156 29: 29
2157 30: 30
2158 31: 31
2159 32: 32
2160 33: 33
2161 34: 34
2162 35: 35
2163 36: 36
2164 37: 37
2165 38: 38
2166 39: 39
2167 40: 40
2168 41: 41
2169 42: 42
2170 43: 43
2171 44: 44
2172 45: 45
2173 46: 46
2174 47: 47
2175 48: 48
2176 49: 49
2177 50: 50
2178 51: 51
2179 52: 52
2180 53: 53
2181 54: 54
2182 55: 55
2183 56: 56
2184 57: 57
2185 58: 58
2186 59: 59
2187 60: 60
2188 61: 61
2189 62: 62
2190 63: 63
2191 64: 64
2192 65: 65
2193 66: 66
2194 67: 67
2195 68: 68
2196 69: 69
2197 70: 70
2198 71: 71
2199 72: 72
2200 73: 73
2201 74: 74
2202 75: 75
2203 76: 76
2204 77: 77
2205 78: 78
2206 79: 79
2207 80: 80
2208 81: 81
2209 82: 82
2210 83: 83
2211 84: 84
2212 85: 85
2213 86: 86
2214 87: 87
2215 88: 88
2216 89: 89
2217 90: 90
2218 91: 91
2219 92: 92
2220 93: 93
2221 94: 94
2222 95: 95
2223 96: 96
2224 97: 97
2225 98: 98
2226 99: 99
2227 100: 100
2228 101: 101
2229 102: 102
2230 103: 103
2231 104: 104
2232 105: 105
2233 106: 106
2234 107: 107
2235 108: 108
2236 109: 109
2237 110: 110
2238 111: 111
2239 112: 112
2240 113: 113
2241 114: 114
2242 115: 115
2243 116: 116
2244 117: 117
2245 118: 118
2246 119: 119
2247 120: 120
2248 121: 121
2249 122: 122
2250 123: 123
2251 124: 124
2252 125: 125
2253 126: 126
2254 127: 127
2255 128: 128
2256 129: 129
2257 130: 130
2258 131: 131
2259 132: 132
2260 133: 133
2261 134: 134
2262 135: 135
2263 136: 136
2264 137: 137
2265 138: 138
2266 139: 139
2267 140: 140
2268 141: 141
2269 142: 142
2270 143: 143
2271 144: 144
2272 145: 145
2273 146: 146
2274 147: 147
2275 148: 148
2276 149: 149
2277 150: 150
2278 151: 151
2279 152: 152
2280 153: 153
2281 154: 154
2282 155: 155
2283 156: 156
2284 157: 157
2285 158: 158
2286 159: 159
2287 160: 160
2288 161: 161
2289 162: 162
2290 163: 163
2291 164: 164
2292 165: 165
2293 166: 166
2294 167: 167
2295 168: 168
2296 169: 169
2297 170: 170
2298 171: 171
2299 172: 172
2300 173: 173
2301 174: 174
2302 175: 175
2303 176: 176
2304 177: 177
2305 178: 178
2306 179: 179
2307 180: 180
2308 181: 181
2309 182: 182
2310 183: 183
2311 184: 184
2312 185: 185
2313 186: 186
2314 187: 187
2315 188: 188
2316 189: 189
2317 190: 190
2318 191: 191
2319 192: 192
2320 193: 193
2321 194: 194
2322 195: 195
2323 196: 196
2324 197: 197
2325 198: 198
2326 199: 199
2327 200: 200
2328 201: 201
2329 202: 202
2330 203: 203
2331 204: 204
2332 205: 205
2333 206: 206
2334 207: 207
2335 208: 208
2336 209: 209
2337 210: 210
2338 211: 211
2339 212: 212
2340 213: 213
2341 214: 214
2342 215: 215
2343 216: 216
2344 217: 217
2345 218: 218
2346 219: 219
2347 220: 220
2348 221: 221
2349 222: 222
2350 223: 223
2351 224: 224
2352 225: 225
2353 226: 226
2354 227: 227
2355 228: 228
2356 229: 229
2357 230: 230
2358 231: 231
2359 232: 232
2360 233: 233
2361 234: 234
2362 235: 235
2363 236: 236
2364 237: 237
2365 238: 238
2366 239: 239
2367 240: 240
2368 241: 241
2369 242: 242
2370 243: 243
2371 244: 244
2372 245: 245
2373 246: 246
2374 247: 247
2375 248: 248
2376 249: 249
2377 250: 250
2378 251: 251
2379 252: 252
2380 253: 253
2381 254: 254
2382 255: 255
2383 256: 256
2384 257: 257
2385 258: 258
2386 259: 259
2387 260: 260
2388 261: 261
2389 262: 262
2390 263: 263
2391 264: 264
2392 265: 265
2393 266: 266
2394 267: 267
2395 268: 268
2396 269: 269
2397 270: ABC
2398 271: ABC
2399
2400 # This one's here because Perl does this differently and PCRE2 can't at present
2401
2402 /(main(O)?)+/I
2403 Capturing subpattern count = 2
2404 First code unit = 'm'
2405 Last code unit = 'n'
2406 Subject length lower bound = 4
2407 mainmain
2408 0: mainmain
2409 1: main
2410 mainOmain
2411 0: mainOmain
2412 1: main
2413 2: O
2414
2415 # These are all cases where Perl does it differently (nested captures)
2416
2417 /^(a(b)?)+$/I
2418 Capturing subpattern count = 2
2419 Compile options: <none>
2420 Overall options: anchored
2421 Subject length lower bound = 1
2422 aba
2423 0: aba
2424 1: a
2425 2: b
2426
2427 /^(aa(bb)?)+$/I
2428 Capturing subpattern count = 2
2429 Compile options: <none>
2430 Overall options: anchored
2431 Subject length lower bound = 2
2432 aabbaa
2433 0: aabbaa
2434 1: aa
2435 2: bb
2436
2437 /^(aa|aa(bb))+$/I
2438 Capturing subpattern count = 2
2439 Compile options: <none>
2440 Overall options: anchored
2441 Subject length lower bound = 2
2442 aabbaa
2443 0: aabbaa
2444 1: aa
2445 2: bb
2446
2447 /^(aa(bb)??)+$/I
2448 Capturing subpattern count = 2
2449 Compile options: <none>
2450 Overall options: anchored
2451 Subject length lower bound = 2
2452 aabbaa
2453 0: aabbaa
2454 1: aa
2455 2: bb
2456
2457 /^(?:aa(bb)?)+$/I
2458 Capturing subpattern count = 1
2459 Compile options: <none>
2460 Overall options: anchored
2461 Subject length lower bound = 2
2462 aabbaa
2463 0: aabbaa
2464 1: bb
2465
2466 /^(aa(b(b))?)+$/I
2467 Capturing subpattern count = 3
2468 Compile options: <none>
2469 Overall options: anchored
2470 Subject length lower bound = 2
2471 aabbaa
2472 0: aabbaa
2473 1: aa
2474 2: bb
2475 3: b
2476
2477 /^(?:aa(b(b))?)+$/I
2478 Capturing subpattern count = 2
2479 Compile options: <none>
2480 Overall options: anchored
2481 Subject length lower bound = 2
2482 aabbaa
2483 0: aabbaa
2484 1: bb
2485 2: b
2486
2487 /^(?:aa(b(?:b))?)+$/I
2488 Capturing subpattern count = 1
2489 Compile options: <none>
2490 Overall options: anchored
2491 Subject length lower bound = 2
2492 aabbaa
2493 0: aabbaa
2494 1: bb
2495
2496 /^(?:aa(bb(?:b))?)+$/I
2497 Capturing subpattern count = 1
2498 Compile options: <none>
2499 Overall options: anchored
2500 Subject length lower bound = 2
2501 aabbbaa
2502 0: aabbbaa
2503 1: bbb
2504
2505 /^(?:aa(b(?:bb))?)+$/I
2506 Capturing subpattern count = 1
2507 Compile options: <none>
2508 Overall options: anchored
2509 Subject length lower bound = 2
2510 aabbbaa
2511 0: aabbbaa
2512 1: bbb
2513
2514 /^(?:aa(?:b(b))?)+$/I
2515 Capturing subpattern count = 1
2516 Compile options: <none>
2517 Overall options: anchored
2518 Subject length lower bound = 2
2519 aabbaa
2520 0: aabbaa
2521 1: b
2522
2523 /^(?:aa(?:b(bb))?)+$/I
2524 Capturing subpattern count = 1
2525 Compile options: <none>
2526 Overall options: anchored
2527 Subject length lower bound = 2
2528 aabbbaa
2529 0: aabbbaa
2530 1: bb
2531
2532 /^(aa(b(bb))?)+$/I
2533 Capturing subpattern count = 3
2534 Compile options: <none>
2535 Overall options: anchored
2536 Subject length lower bound = 2
2537 aabbbaa
2538 0: aabbbaa
2539 1: aa
2540 2: bbb
2541 3: bb
2542
2543 /^(aa(bb(bb))?)+$/I
2544 Capturing subpattern count = 3
2545 Compile options: <none>
2546 Overall options: anchored
2547 Subject length lower bound = 2
2548 aabbbbaa
2549 0: aabbbbaa
2550 1: aa
2551 2: bbbb
2552 3: bb
2553
2554 # ----------------
2555
2556 /#/IBx
2557 ------------------------------------------------------------------
2558 Bra
2559 Ket
2560 End
2561 ------------------------------------------------------------------
2562 Capturing subpattern count = 0
2563 May match empty string
2564 Options: extended
2565 Subject length lower bound = 0
2566
2567 /a#/IBx
2568 ------------------------------------------------------------------
2569 Bra
2570 a
2571 Ket
2572 End
2573 ------------------------------------------------------------------
2574 Capturing subpattern count = 0
2575 Options: extended
2576 First code unit = 'a'
2577 Subject length lower bound = 1
2578
2579 /[\s]/IB
2580 ------------------------------------------------------------------
2581 Bra
2582 [\x09-\x0d ]
2583 Ket
2584 End
2585 ------------------------------------------------------------------
2586 Capturing subpattern count = 0
2587 Starting code units: \x09 \x0a \x0b \x0c \x0d \x20
2588 Subject length lower bound = 1
2589
2590 /[\S]/IB
2591 ------------------------------------------------------------------
2592 Bra
2593 [\x00-\x08\x0e-\x1f!-\xff] (neg)
2594 Ket
2595 End
2596 ------------------------------------------------------------------
2597 Capturing subpattern count = 0
2598 Starting code units: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x0e \x0f
2599 \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19 \x1a \x1b \x1c \x1d \x1e
2600 \x1f ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C
2601 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
2602 i j k l m n o p q r s t u v w x y z { | } ~ \x7f \x80 \x81 \x82 \x83 \x84
2603 \x85 \x86 \x87 \x88 \x89 \x8a \x8b \x8c \x8d \x8e \x8f \x90 \x91 \x92 \x93
2604 \x94 \x95 \x96 \x97 \x98 \x99 \x9a \x9b \x9c \x9d \x9e \x9f \xa0 \xa1 \xa2
2605 \xa3 \xa4 \xa5 \xa6 \xa7 \xa8 \xa9 \xaa \xab \xac \xad \xae \xaf \xb0 \xb1
2606 \xb2 \xb3 \xb4 \xb5 \xb6 \xb7 \xb8 \xb9 \xba \xbb \xbc \xbd \xbe \xbf \xc0
2607 \xc1 \xc2 \xc3 \xc4 \xc5 \xc6 \xc7 \xc8 \xc9 \xca \xcb \xcc \xcd \xce \xcf
2608 \xd0 \xd1 \xd2 \xd3 \xd4 \xd5 \xd6 \xd7 \xd8 \xd9 \xda \xdb \xdc \xdd \xde
2609 \xdf \xe0 \xe1 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8 \xe9 \xea \xeb \xec \xed
2610 \xee \xef \xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7 \xf8 \xf9 \xfa \xfb \xfc
2611 \xfd \xfe \xff
2612 Subject length lower bound = 1
2613
2614 /a(?i)b/IB
2615 ------------------------------------------------------------------
2616 Bra
2617 a
2618 /i b
2619 Ket
2620 End
2621 ------------------------------------------------------------------
2622 Capturing subpattern count = 0
2623 First code unit = 'a'
2624 Last code unit = 'b' (caseless)
2625 Subject length lower bound = 2
2626 ab
2627 0: ab
2628 aB
2629 0: aB
2630 \= Expect no match
2631 AB
2632 No match
2633
2634 /(a(?i)b)/IB
2635 ------------------------------------------------------------------
2636 Bra
2637 CBra 1
2638 a
2639 /i b
2640 Ket
2641 Ket
2642 End
2643 ------------------------------------------------------------------
2644 Capturing subpattern count = 1
2645 First code unit = 'a'
2646 Last code unit = 'b' (caseless)
2647 Subject length lower bound = 2
2648 ab
2649 0: ab
2650 1: ab
2651 aB
2652 0: aB
2653 1: aB
2654 \= Expect no match
2655 AB
2656 No match
2657
2658 / (?i)abc/IBx
2659 ------------------------------------------------------------------
2660 Bra
2661 /i abc
2662 Ket
2663 End
2664 ------------------------------------------------------------------
2665 Capturing subpattern count = 0
2666 Options: extended
2667 First code unit = 'a' (caseless)
2668 Last code unit = 'c' (caseless)
2669 Subject length lower bound = 3
2670
2671 /#this is a comment
2672 (?i)abc/IBx
2673 ------------------------------------------------------------------
2674 Bra
2675 /i abc
2676 Ket
2677 End
2678 ------------------------------------------------------------------
2679 Capturing subpattern count = 0
2680 Options: extended
2681 First code unit = 'a' (caseless)
2682 Last code unit = 'c' (caseless)
2683 Subject length lower bound = 3
2684
2685 /123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/IB
2686 ------------------------------------------------------------------
2687 Bra
2688 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
2689 Ket
2690 End
2691 ------------------------------------------------------------------
2692 Capturing subpattern count = 0
2693 First code unit = '1'
2694 Last code unit = '0'
2695 Subject length lower bound = 300
2696
2697 /\Q123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/IB
2698 ------------------------------------------------------------------
2699 Bra
2700 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
2701 Ket
2702 End
2703 ------------------------------------------------------------------
2704 Capturing subpattern count = 0
2705 First code unit = '1'
2706 Last code unit = '0'
2707 Subject length lower bound = 300
2708
2709 /\Q\E/IB
2710 ------------------------------------------------------------------
2711 Bra
2712 Ket
2713 End
2714 ------------------------------------------------------------------
2715 Capturing subpattern count = 0
2716 May match empty string
2717 Subject length lower bound = 0
2718 \
2719 0:
2720
2721 /\Q\Ex/IB
2722 ------------------------------------------------------------------
2723 Bra
2724 x
2725 Ket
2726 End
2727 ------------------------------------------------------------------
2728 Capturing subpattern count = 0
2729 First code unit = 'x'
2730 Subject length lower bound = 1
2731
2732 / \Q\E/IB
2733 ------------------------------------------------------------------
2734 Bra
2735
2736 Ket
2737 End
2738 ------------------------------------------------------------------
2739 Capturing subpattern count = 0
2740 First code unit = ' '
2741 Subject length lower bound = 1
2742
2743 /a\Q\E/IB
2744 ------------------------------------------------------------------
2745 Bra
2746 a
2747 Ket
2748 End
2749 ------------------------------------------------------------------
2750 Capturing subpattern count = 0
2751 First code unit = 'a'
2752 Subject length lower bound = 1
2753 abc
2754 0: a
2755 bca
2756 0: a
2757 bac
2758 0: a
2759
2760 /a\Q\Eb/IB
2761 ------------------------------------------------------------------
2762 Bra
2763 ab
2764 Ket
2765 End
2766 ------------------------------------------------------------------
2767 Capturing subpattern count = 0
2768 First code unit = 'a'
2769 Last code unit = 'b'
2770 Subject length lower bound = 2
2771 abc
2772 0: ab
2773
2774 /\Q\Eabc/IB
2775 ------------------------------------------------------------------
2776 Bra
2777 abc
2778 Ket
2779 End
2780 ------------------------------------------------------------------
2781 Capturing subpattern count = 0
2782 First code unit = 'a'
2783 Last code unit = 'c'
2784 Subject length lower bound = 3
2785
2786 /x*+\w/IB
2787 ------------------------------------------------------------------
2788 Bra
2789 x*+
2790 \w
2791 Ket
2792 End
2793 ------------------------------------------------------------------
2794 Capturing subpattern count = 0
2795 Starting code units: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P
2796 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
2797 Subject length lower bound = 1
2798 \= Expect no match
2799 xxxxx
2800 No match
2801
2802 /x?+/IB
2803 ------------------------------------------------------------------
2804 Bra
2805 x?+
2806 Ket
2807 End
2808 ------------------------------------------------------------------
2809 Capturing subpattern count = 0
2810 May match empty string
2811 Subject length lower bound = 0
2812
2813 /x++/IB
2814 ------------------------------------------------------------------
2815 Bra
2816 x++
2817 Ket
2818 End
2819 ------------------------------------------------------------------
2820 Capturing subpattern count = 0
2821 First code unit = 'x'
2822 Subject length lower bound = 1
2823
2824 /x{1,3}+/B,no_auto_possess
2825 ------------------------------------------------------------------
2826 Bra
2827 x
2828 x{0,2}+
2829 Ket
2830 End
2831 ------------------------------------------------------------------
2832
2833 /x{1,3}+/Bi,no_auto_possess
2834 ------------------------------------------------------------------
2835 Bra
2836 /i x
2837 /i x{0,2}+
2838 Ket
2839 End
2840 ------------------------------------------------------------------
2841
2842 /[^x]{1,3}+/B,no_auto_possess
2843 ------------------------------------------------------------------
2844 Bra
2845 [^x]
2846 [^x]{0,2}+
2847 Ket
2848 End
2849 ------------------------------------------------------------------
2850
2851 /[^x]{1,3}+/Bi,no_auto_possess
2852 ------------------------------------------------------------------
2853 Bra
2854 /i [^x]
2855 /i [^x]{0,2}+
2856 Ket
2857 End
2858 ------------------------------------------------------------------
2859
2860 /(x)*+/IB
2861 ------------------------------------------------------------------
2862 Bra
2863 Braposzero
2864 CBraPos 1
2865 x
2866 KetRpos
2867 Ket
2868 End
2869 ------------------------------------------------------------------
2870 Capturing subpattern count = 1
2871 May match empty string
2872 Subject length lower bound = 0
2873
2874 /^(\w++|\s++)*$/I
2875 Capturing subpattern count = 1
2876 May match empty string
2877 Compile options: <none>
2878 Overall options: anchored
2879 Subject length lower bound = 0
2880 now is the time for all good men to come to the aid of the party
2881 0: now is the time for all good men to come to the aid of the party
2882 1: party
2883 \= Expect no match
2884 this is not a line with only words and spaces!
2885 No match
2886
2887 /(\d++)(\w)/I
2888 Capturing subpattern count = 2
2889 Starting code units: 0 1 2 3 4 5 6 7 8 9
2890 Subject length lower bound = 2
2891 12345a
2892 0: 12345a
2893 1: 12345
2894 2: a
2895 \= Expect no match
2896 12345+
2897 No match
2898
2899 /a++b/I
2900 Capturing subpattern count = 0
2901 First code unit = 'a'
2902 Last code unit = 'b'
2903 Subject length lower bound = 2
2904 aaab
2905 0: aaab
2906
2907 /(a++b)/I
2908 Capturing subpattern count = 1
2909 First code unit = 'a'
2910 Last code unit = 'b'
2911 Subject length lower bound = 2
2912 aaab
2913 0: aaab
2914 1: aaab
2915
2916 /(a++)b/I
2917 Capturing subpattern count = 1
2918 First code unit = 'a'
2919 Last code unit = 'b'
2920 Subject length lower bound = 2
2921 aaab
2922 0: aaab
2923 1: aaa
2924
2925 /([^()]++|\([^()]*\))+/I
2926 Capturing subpattern count = 1
2927 Starting code units: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a
2928 \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19
2929 \x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( * + , - . / 0 1 2 3 4 5
2930 6 7 8 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
2931 [ \ ] ^ _ ` 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
2932 \x80 \x81 \x82 \x83 \x84 \x85 \x86 \x87 \x88 \x89 \x8a \x8b \x8c \x8d \x8e
2933 \x8f \x90 \x91 \x92 \x93 \x94 \x95 \x96 \x97 \x98 \x99 \x9a \x9b \x9c \x9d
2934 \x9e \x9f \xa0 \xa1 \xa2 \xa3 \xa4 \xa5 \xa6 \xa7 \xa8 \xa9 \xaa \xab \xac
2935 \xad \xae \xaf \xb0 \xb1 \xb2 \xb3 \xb4 \xb5 \xb6 \xb7 \xb8 \xb9 \xba \xbb
2936 \xbc \xbd \xbe \xbf \xc0 \xc1 \xc2 \xc3 \xc4 \xc5 \xc6 \xc7 \xc8 \xc9 \xca
2937 \xcb \xcc \xcd \xce \xcf \xd0 \xd1 \xd2 \xd3 \xd4 \xd5 \xd6 \xd7 \xd8 \xd9
2938 \xda \xdb \xdc \xdd \xde \xdf \xe0 \xe1 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8
2939 \xe9 \xea \xeb \xec \xed \xee \xef \xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7
2940 \xf8 \xf9 \xfa \xfb \xfc \xfd \xfe \xff
2941 Subject length lower bound = 1
2942 ((abc(ade)ufh()()x
2943 0: abc(ade)ufh()()x
2944 1: x
2945
2946 /\(([^()]++|\([^()]+\))+\)/I
2947 Capturing subpattern count = 1
2948 First code unit = '('
2949 Last code unit = ')'
2950 Subject length lower bound = 3
2951 (abc)
2952 0: (abc)
2953 1: abc
2954 (abc(def)xyz)
2955 0: (abc(def)xyz)
2956 1: xyz
2957 \= Expect no match
2958 ((()aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
2959 No match
2960
2961 /(abc){1,3}+/IB
2962 ------------------------------------------------------------------
2963 Bra
2964 Once
2965 CBra 1
2966 abc
2967 Ket
2968 Brazero
2969 Bra
2970 CBra 1
2971 abc
2972 Ket
2973 Brazero
2974 CBra 1
2975 abc
2976 Ket
2977 Ket
2978 Ket
2979 Ket
2980 End
2981 ------------------------------------------------------------------
2982 Capturing subpattern count = 1
2983 First code unit = 'a'
2984 Last code unit = 'c'
2985 Subject length lower bound = 3
2986
2987 /a+?+/I
2988 Failed: error 109 at offset 3: quantifier does not follow a repeatable item
2989
2990 /a{2,3}?+b/I
2991 Failed: error 109 at offset 7: quantifier does not follow a repeatable item
2992
2993 /(?U)a+?+/I
2994 Failed: error 109 at offset 7: quantifier does not follow a repeatable item
2995
2996 /a{2,3}?+b/I,ungreedy
2997 Failed: error 109 at offset 7: quantifier does not follow a repeatable item
2998
2999 /x(?U)a++b/IB
3000 ------------------------------------------------------------------
3001 Bra
3002 x
3003 a++
3004 b
3005 Ket
3006 End
3007 ------------------------------------------------------------------
3008 Capturing subpattern count = 0
3009 First code unit = 'x'
3010 Last code unit = 'b'
3011 Subject length lower bound = 3
3012 xaaaab
3013 0: xaaaab
3014
3015 /(?U)xa++b/IB
3016 ------------------------------------------------------------------
3017 Bra
3018 x
3019 a++
3020 b
3021 Ket
3022 End
3023 ------------------------------------------------------------------
3024 Capturing subpattern count = 0
3025 First code unit = 'x'
3026 Last code unit = 'b'
3027 Subject length lower bound = 3
3028 xaaaab
3029 0: xaaaab
3030
3031 /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/IB
3032 ------------------------------------------------------------------
3033 Bra
3034 ^
3035 CBra 1
3036 CBra 2
3037 a+
3038 Ket
3039 CBra 3
3040 [ab]+?
3041 Ket
3042 CBra 4
3043 [bc]+
3044 Ket
3045 CBra 5
3046 \w*+
3047 Ket
3048 Ket
3049 Ket
3050 End
3051 ------------------------------------------------------------------
3052 Capturing subpattern count = 5
3053 Compile options: <none>
3054 Overall options: anchored
3055 Subject length lower bound = 3
3056
3057 /^x(?U)a+b/IB
3058 ------------------------------------------------------------------
3059 Bra
3060 ^
3061 x
3062 a++
3063 b
3064 Ket
3065 End
3066 ------------------------------------------------------------------
3067 Capturing subpattern count = 0
3068 Compile options: <none>
3069 Overall options: anchored
3070 Last code unit = 'b'
3071 Subject length lower bound = 3
3072
3073 /^x(?U)(a+)b/IB
3074 ------------------------------------------------------------------
3075 Bra
3076 ^
3077 x
3078 CBra 1
3079 a+?
3080 Ket
3081 b
3082 Ket
3083 End
3084 ------------------------------------------------------------------
3085 Capturing subpattern count = 1
3086 Compile options: <none>
3087 Overall options: anchored
3088 Last code unit = 'b'
3089 Subject length lower bound = 3
3090
3091 /[.x.]/I
3092 Failed: error 113 at offset 0: POSIX collating elements are not supported
3093
3094 /[=x=]/I
3095 Failed: error 113 at offset 0: POSIX collating elements are not supported
3096
3097 /[:x:]/I
3098 Failed: error 112 at offset 0: POSIX named classes are supported only within a class
3099
3100 /\l/I
3101 Failed: error 137 at offset 2: PCRE does not support \L, \l, \N{name}, \U, or \u
3102
3103 /\L/I
3104 Failed: error 137 at offset 2: PCRE does not support \L, \l, \N{name}, \U, or \u
3105
3106 /\N{name}/I
3107 Failed: error 137 at offset 2: PCRE does not support \L, \l, \N{name}, \U, or \u
3108
3109 /\u/I
3110 Failed: error 137 at offset 2: PCRE does not support \L, \l, \N{name}, \U, or \u
3111
3112 /\U/I
3113 Failed: error 137 at offset 2: PCRE does not support \L, \l, \N{name}, \U, or \u
3114
3115 /a{1,3}b/ungreedy
3116 ab
3117 0: ab
3118
3119 /[/I
3120 Failed: error 106 at offset 1: missing terminating ] for character class
3121
3122 /[a-/I
3123 Failed: error 106 at offset 3: missing terminating ] for character class
3124
3125 /[[:space:]/I
3126 Failed: error 106 at offset 10: missing terminating ] for character class
3127
3128 /[\s]/IB
3129 ------------------------------------------------------------------
3130 Bra
3131 [\x09-\x0d ]
3132 Ket
3133 End
3134 ------------------------------------------------------------------
3135 Capturing subpattern count = 0
3136 Starting code units: \x09 \x0a \x0b \x0c \x0d \x20
3137 Subject length lower bound = 1
3138
3139 /[[:space:]]/IB
3140 ------------------------------------------------------------------
3141 Bra
3142 [\x09-\x0d ]
3143 Ket
3144 End
3145 ------------------------------------------------------------------
3146 Capturing subpattern count = 0
3147 Starting code units: \x09 \x0a \x0b \x0c \x0d \x20
3148 Subject length lower bound = 1
3149
3150 /[[:space:]abcde]/IB
3151 ------------------------------------------------------------------
3152 Bra
3153 [\x09-\x0d a-e]
3154 Ket
3155 End
3156 ------------------------------------------------------------------
3157 Capturing subpattern count = 0
3158 Starting code units: \x09 \x0a \x0b \x0c \x0d \x20 a b c d e
3159 Subject length lower bound = 1
3160
3161 /< (?: (?(R) \d++ | [^<>]*+) | (?R)) * >/Ix
3162 Capturing subpattern count = 0
3163 Options: extended
3164 First code unit = '<'
3165 Last code unit = '>'
3166 Subject length lower bound = 2
3167 <>
3168 0: <>
3169 <abcd>
3170 0: <abcd>
3171 <abc <123> hij>
3172 0: <abc <123> hij>
3173 <abc <def> hij>
3174 0: <def>
3175 <abc<>def>
3176 0: <abc<>def>
3177 <abc<>
3178 0: <>
3179 \= Expect no match
3180 <abc
3181 No match
3182
3183 /8J\$WE\<\.rX\+ix\[d1b\!H\#\?vV0vrK\:ZH1\=2M\>iV\;\?aPhFB\<\*vW\@QW\@sO9\}cfZA\-i\'w\%hKd6gt1UJP\,15_\#QY\$M\^Mss_U\/\]\&LK9\[5vQub\^w\[KDD\<EjmhUZ\?\.akp2dF\>qmj\;2\}YWFdYx\.Ap\]hjCPTP\(n28k\+3\;o\&WXqs\/gOXdr\$\:r\'do0\;b4c\(f_Gr\=\"\\4\)\[01T7ajQJvL\$W\~mL_sS\/4h\:x\*\[ZN\=KLs\&L5zX\/\/\>it\,o\:aU\(\;Z\>pW\&T7oP\'2K\^E\:x9\'c\[\%z\-\,64JQ5AeH_G\#KijUKghQw\^\\vea3a\?kka_G\$8\#\`\*kynsxzBLru\'\]k_\[7FrVx\}\^\=\$blx\>s\-N\%j\;D\*aZDnsw\:YKZ\%Q\.Kne9\#hP\?\+b3\(SOvL\,\^\;\&u5\@\?5C5Bhb\=m\-vEh_L15Jl\]U\)0RP6\{q\%L\^_z5E\'Dw6X\b/IB
3184 ------------------------------------------------------------------
3185 Bra
3186 8J$WE<.rX+ix[d1b!H#?vV0vrK:ZH1=2M>iV;?aPhFB<*vW@QW@sO9}cfZA-i'w%hKd6gt1UJP,15_#QY$M^Mss_U/]&LK9[5vQub^w[KDD<EjmhUZ?.akp2dF>qmj;2}YWFdYx.Ap]hjCPTP(n28k+3;o&WXqs/gOXdr$:r'do0;b4c(f_Gr="\4)[01T7ajQJvL$W~mL_sS/4h:x*[ZN=KLs&L5zX//>it,o:aU(;Z>pW&T7oP'2K^E:x9'c[%z-,64JQ5AeH_G#KijUKghQw^\vea3a?kka_G$8#`*kynsxzBLru']k_[7FrVx}^=$blx>s-N%j;D*aZDnsw:YKZ%Q.Kne9#hP?+b3(SOvL,^;&u5@?5C5Bhb=m-vEh_L15Jl]U)0RP6{q%L^_z5E'Dw6X
3187 \b
3188 Ket
3189 End
3190 ------------------------------------------------------------------
3191 Capturing subpattern count = 0
3192 Max lookbehind = 1
3193 First code unit = '8'
3194 Last code unit = 'X'
3195 Subject length lower bound = 409
3196
3197 /\$\<\.X\+ix\[d1b\!H\#\?vV0vrK\:ZH1\=2M\>iV\;\?aPhFB\<\*vW\@QW\@sO9\}cfZA\-i\'w\%hKd6gt1UJP\,15_\#QY\$M\^Mss_U\/\]\&LK9\[5vQub\^w\[KDD\<EjmhUZ\?\.akp2dF\>qmj\;2\}YWFdYx\.Ap\]hjCPTP\(n28k\+3\;o\&WXqs\/gOXdr\$\:r\'do0\;b4c\(f_Gr\=\"\\4\)\[01T7ajQJvL\$W\~mL_sS\/4h\:x\*\[ZN\=KLs\&L5zX\/\/\>it\,o\:aU\(\;Z\>pW\&T7oP\'2K\^E\:x9\'c\[\%z\-\,64JQ5AeH_G\#KijUKghQw\^\\vea3a\?kka_G\$8\#\`\*kynsxzBLru\'\]k_\[7FrVx\}\^\=\$blx\>s\-N\%j\;D\*aZDnsw\:YKZ\%Q\.Kne9\#hP\?\+b3\(SOvL\,\^\;\&u5\@\?5C5Bhb\=m\-vEh_L15Jl\]U\)0RP6\{q\%L\^_z5E\'Dw6X\b/IB
3198 ------------------------------------------------------------------
3199 Bra
3200 $<.X+ix[d1b!H#?vV0vrK:ZH1=2M>iV;?aPhFB<*vW@QW@sO9}cfZA-i'w%hKd6gt1UJP,15_#QY$M^Mss_U/]&LK9[5vQub^w[KDD<EjmhUZ?.akp2dF>qmj;2}YWFdYx.Ap]hjCPTP(n28k+3;o&WXqs/gOXdr$:r'do0;b4c(f_Gr="\4)[01T7ajQJvL$W~mL_sS/4h:x*[ZN=KLs&L5zX//>it,o:aU(;Z>pW&T7oP'2K^E:x9'c[%z-,64JQ5AeH_G#KijUKghQw^\vea3a?kka_G$8#`*kynsxzBLru']k_[7FrVx}^=$blx>s-N%j;D*aZDnsw:YKZ%Q.Kne9#hP?+b3(SOvL,^;&u5@?5C5Bhb=m-vEh_L15Jl]U)0RP6{q%L^_z5E'Dw6X
3201 \b
3202 Ket
3203 End
3204 ------------------------------------------------------------------
3205 Capturing subpattern count = 0
3206 Max lookbehind = 1
3207 First code unit = '$'
3208 Last code unit = 'X'
3209 Subject length lower bound = 404
3210
3211 /(.*)\d+\1/I
3212 Capturing subpattern count = 1
3213 Max back reference = 1
3214 Subject length lower bound = 1
3215
3216 /(.*)\d+/I
3217 Capturing subpattern count = 1
3218 First code unit at start or follows newline
3219 Subject length lower bound = 1
3220
3221 /(.*)\d+\1/Is
3222 Capturing subpattern count = 1
3223 Max back reference = 1
3224 Options: dotall
3225 Subject length lower bound = 1
3226
3227 /(.*)\d+/Is
3228 Capturing subpattern count = 1
3229 Compile options: dotall
3230 Overall options: anchored dotall
3231 Subject length lower bound = 1
3232
3233 /(.*(xyz))\d+\2/I
3234 Capturing subpattern count = 2
3235 Max back reference = 2
3236 First code unit at start or follows newline
3237 Last code unit = 'z'
3238 Subject length lower bound = 7
3239
3240 /((.*))\d+\1/I
3241 Capturing subpattern count = 2
3242 Max back reference = 1
3243 Subject length lower bound = 1
3244 abc123bc
3245 0: bc123bc
3246 1: bc
3247 2: bc
3248
3249 /a[b]/I
3250 Capturing subpattern count = 0
3251 First code unit = 'a'
3252 Last code unit = 'b'
3253 Subject length lower bound = 2
3254
3255 /(?=a).*/I
3256 Capturing subpattern count = 0
3257 May match empty string
3258 First code unit = 'a'
3259 Subject length lower bound = 0
3260
3261 /(?=abc).xyz/Ii
3262 Capturing subpattern count = 0
3263 Options: caseless
3264 First code unit = 'a' (caseless)
3265 Last code unit = 'z' (caseless)
3266 Subject length lower bound = 4
3267
3268 /(?=abc)(?i).xyz/I
3269 Capturing subpattern count = 0
3270 First code unit = 'a'
3271 Last code unit = 'z' (caseless)
3272 Subject length lower bound = 4
3273
3274 /(?=a)(?=b)/I
3275 Capturing subpattern count = 0
3276 May match empty string
3277 First code unit = 'a'
3278 Subject length lower bound = 0
3279
3280 /(?=.)a/I
3281 Capturing subpattern count = 0
3282 First code unit = 'a'
3283 Subject length lower bound = 1
3284
3285 /((?=abcda)a)/I
3286 Capturing subpattern count = 1
3287 First code unit = 'a'
3288 Last code unit = 'a'
3289 Subject length lower bound = 1
3290
3291 /((?=abcda)ab)/I
3292 Capturing subpattern count = 1
3293 First code unit = 'a'
3294 Last code unit = 'b'
3295 Subject length lower bound = 2
3296
3297 /()a/I
3298 Capturing subpattern count = 1
3299 First code unit = 'a'
3300 Subject length lower bound = 1
3301
3302 /(?:(?=.)|(?<!x))a/I
3303 Capturing subpattern count = 0
3304 Max lookbehind = 1
3305 First code unit = 'a'
3306 Subject length lower bound = 1
3307
3308 /(?(1)ab|ac)(.)/I
3309 Capturing subpattern count = 1
3310 Max back reference = 1
3311 First code unit = 'a'
3312 Subject length lower bound = 3
3313
3314 /(?(1)abz|acz)(.)/I
3315 Capturing subpattern count = 1
3316 Max back reference = 1
3317 First code unit = 'a'
3318 Last code unit = 'z'
3319 Subject length lower bound = 4
3320
3321 /(?(1)abz)(.)/I
3322 Capturing subpattern count = 1
3323 Max back reference = 1
3324 Subject length lower bound = 1
3325
3326 /(?(1)abz)(1)23/I
3327 Capturing subpattern count = 1
3328 Max back reference = 1
3329 Last code unit = '3'
3330 Subject length lower bound = 3
3331
3332 /(a)+/I
3333 Capturing subpattern count = 1
3334 First code unit = 'a'
3335 Subject length lower bound = 1
3336
3337 /(a){2,3}/I
3338 Capturing subpattern count = 1
3339 First code unit = 'a'
3340 Last code unit = 'a'
3341 Subject length lower bound = 2
3342
3343 /(a)*/I
3344 Capturing subpattern count = 1
3345 May match empty string
3346 Subject length lower bound = 0
3347
3348 /[a]/I
3349 Capturing subpattern count = 0
3350 First code unit = 'a'
3351 Subject length lower bound = 1
3352
3353 /[ab]/I
3354 Capturing subpattern count = 0
3355 Starting code units: a b
3356 Subject length lower bound = 1
3357
3358 /[ab]/I
3359 Capturing subpattern count = 0
3360 Starting code units: a b
3361 Subject length lower bound = 1
3362
3363 /[^a]/I
3364 Capturing subpattern count = 0
3365 Subject length lower bound = 1
3366
3367 /\d456/I
3368 Capturing subpattern count = 0
3369 Starting code units: 0 1 2 3 4 5 6 7 8 9
3370 Last code unit = '6'
3371 Subject length lower bound = 4
3372
3373 /\d456/I
3374 Capturing subpattern count = 0
3375 Starting code units: 0 1 2 3 4 5 6 7 8 9
3376 Last code unit = '6'
3377 Subject length lower bound = 4
3378
3379 /a^b/I
3380 Capturing subpattern count = 0
3381 First code unit = 'a'
3382 Last code unit = 'b'
3383 Subject length lower bound = 2
3384
3385 /^a/Im
3386 Capturing subpattern count = 0
3387 Options: multiline
3388 First code unit at start or follows newline
3389 Last code unit = 'a'
3390 Subject length lower bound = 1
3391 abcde
3392 0: a
3393 xy\nabc
3394 0: a
3395 \= Expect no match
3396 xyabc
3397 No match
3398
3399 /c|abc/I
3400 Capturing subpattern count = 0
3401 Starting code units: a c
3402 Last code unit = 'c'
3403 Subject length lower bound = 1
3404
3405 /(?i)[ab]/I
3406 Capturing subpattern count = 0
3407 Starting code units: A B a b
3408 Subject length lower bound = 1
3409
3410 /[ab](?i)cd/I
3411 Capturing subpattern count = 0
3412 Starting code units: a b
3413 Last code unit = 'd' (caseless)
3414 Subject length lower bound = 3
3415
3416 /abc(?C)def/I
3417 Capturing subpattern count = 0
3418 First code unit = 'a'
3419 Last code unit = 'f'
3420 Subject length lower bound = 6
3421 abcdef
3422 --->abcdef
3423 0 ^ ^ d
3424 0: abcdef
3425 1234abcdef
3426 --->1234abcdef
3427 0 ^ ^ d
3428 0: abcdef
3429 \= Expect no match
3430 abcxyz
3431 No match
3432 abcxyzf
3433 --->abcxyzf
3434 0 ^ ^ d
3435 No match
3436
3437 /abc(?C)de(?C1)f/I
3438 Capturing subpattern count = 0
3439 First code unit = 'a'
3440 Last code unit = 'f'
3441 Subject length lower bound = 6
3442 123abcdef
3443 --->123abcdef
3444 0 ^ ^ d
3445 1 ^ ^ f
3446 0: abcdef
3447
3448 /(?C1)\dabc(?C2)def/I
3449 Capturing subpattern count = 0
3450 Starting code units: 0 1 2 3 4 5 6 7 8 9
3451 Last code unit = 'f'
3452 Subject length lower bound = 7
3453 1234abcdef
3454 --->1234abcdef
3455 1 ^ \d
3456 1 ^ \d
3457 1 ^ \d
3458 1 ^ \d
3459 2 ^ ^ d
3460 0: 4abcdef
3461 \= Expect no match
3462 abcdef
3463 No match
3464
3465 /(?C1)\dabc(?C2)def/I
3466 Capturing subpattern count = 0
3467 Starting code units: 0 1 2 3 4 5 6 7 8 9
3468 Last code unit = 'f'
3469 Subject length lower bound = 7
3470 1234abcdef
3471 --->1234abcdef
3472 1 ^ \d
3473 1 ^ \d
3474 1 ^ \d
3475 1 ^ \d
3476 2 ^ ^ d
3477 0: 4abcdef
3478 \= Expect no match
3479 abcdef
3480 No match
3481
3482 /(?C255)ab/I
3483 Capturing subpattern count = 0
3484 First code unit = 'a'
3485 Last code unit = 'b'
3486 Subject length lower bound = 2
3487
3488 /(?C256)ab/I
3489 Failed: error 138 at offset 6: number after (?C is greater than 255
3490
3491 /(?Cab)xx/I
3492 Failed: error 182 at offset 3: unrecognized string delimiter follows (?C
3493
3494 /(?C12vr)x/I
3495 Failed: error 139 at offset 5: closing parenthesis for (?C expected
3496
3497 /abc(?C)def/I
3498 Capturing subpattern count = 0
3499 First code unit = 'a'
3500 Last code unit = 'f'
3501 Subject length lower bound = 6
3502 \x83\x0\x61bcdef
3503 --->\x83\x00abcdef
3504 0 ^ ^ d
3505 0: abcdef
3506
3507 /(abc)(?C)de(?C1)f/I
3508 Capturing subpattern count = 1
3509 First code unit = 'a'
3510 Last code unit = 'f'
3511 Subject length lower bound = 6
3512 123abcdef
3513 --->123abcdef
3514 0 ^ ^ d
3515 1 ^ ^ f
3516 0: abcdef
3517 1: abc
3518 123abcdef\=callout_capture
3519 Callout 0: last capture = 1
3520 1: abc
3521 --->123abcdef
3522 ^ ^ d
3523 Callout 1: last capture = 1
3524 1: abc
3525 --->123abcdef
3526 ^ ^ f
3527 0: abcdef
3528 1: abc
3529 123abcdefC-\=callout_none
3530 0: abcdef
3531 1: abc
3532 \= Expect no match
3533 123abcdef\=callout_fail=1
3534 --->123abcdef
3535 0 ^ ^ d
3536 1 ^ ^ f
3537 No match
3538
3539 /(?C0)(abc(?C1))*/I
3540 Capturing subpattern count = 1
3541 May match empty string
3542 Subject length lower bound = 0
3543 abcabcabc
3544 --->abcabcabc
3545 0 ^ (
3546 1 ^ ^ )*
3547 1 ^ ^ )*
3548 1 ^ ^ )*
3549 0: abcabcabc
3550 1: abc
3551 abcabc\=callout_fail=1:4
3552 --->abcabc
3553 0 ^ (
3554 1 ^ ^ )*
3555 1 ^ ^ )*
3556 0: abcabc
3557 1: abc
3558 abcabcabc\=callout_fail=1:4
3559 --->abcabcabc
3560 0 ^ (
3561 1 ^ ^ )*
3562 1 ^ ^ )*
3563 1 ^ ^ )*
3564 0: abcabc
3565 1: abc
3566
3567 /(\d{3}(?C))*/I
3568 Capturing subpattern count = 1
3569 May match empty string
3570 Subject length lower bound = 0
3571 123\=callout_capture
3572 Callout 0: last capture = 0
3573 --->123
3574 ^ ^ )*
3575 0: 123
3576 1: 123
3577 123456\=callout_capture
3578 Callout 0: last capture = 0
3579 --->123456
3580 ^ ^ )*
3581 Callout 0: last capture = 1
3582 1: 123
3583 --->123456
3584 ^ ^ )*
3585 0: 123456
3586 1: 456
3587 123456789\=callout_capture
3588 Callout 0: last capture = 0
3589 --->123456789
3590 ^ ^ )*
3591 Callout 0: last capture = 1
3592 1: 123
3593 --->123456789
3594 ^ ^ )*
3595 Callout 0: last capture = 1
3596 1: 456
3597 --->123456789
3598 ^ ^ )*
3599 0: 123456789
3600 1: 789
3601
3602 /((xyz)(?C)p|(?C1)xyzabc)/I
3603 Capturing subpattern count = 2
3604 First code unit = 'x'
3605 Subject length lower bound = 4
3606 xyzabc\=callout_capture
3607 Callout 0: last capture = 2
3608 1: <unset>
3609 2: xyz
3610 --->xyzabc
3611 ^ ^ p
3612 Callout 1: last capture = 0
3613 --->xyzabc
3614 ^ x
3615 0: xyzabc
3616 1: xyzabc
3617
3618 /(X)((xyz)(?C)p|(?C1)xyzabc)/I
3619 Capturing subpattern count = 3
3620 First code unit = 'X'
3621 Last code unit = 'x'
3622 Subject length lower bound = 5
3623 Xxyzabc\=callout_capture
3624 Callout 0: last capture = 3
3625 1: X
3626 2: <unset>
3627 3: xyz
3628 --->Xxyzabc
3629 ^ ^ p
3630 Callout 1: last capture = 1
3631 1: X
3632 --->Xxyzabc
3633 ^^ x
3634 0: Xxyzabc
3635 1: X
3636 2: xyzabc
3637
3638 /(?=(abc))(?C)abcdef/I
3639 Capturing subpattern count = 1
3640 First code unit = 'a'
3641 Last code unit = 'f'
3642 Subject length lower bound = 6
3643 abcdef\=callout_capture
3644 Callout 0: last capture = 1
3645 1: abc
3646 --->abcdef
3647 ^ a
3648 0: abcdef
3649 1: abc
3650
3651 /(?!(abc)(?C1)d)(?C2)abcxyz/I
3652 Capturing subpattern count = 1
3653 First code unit = 'a'
3654 Last code unit = 'z'
3655 Subject length lower bound = 6
3656 abcxyz\=callout_capture
3657 Callout 1: last capture = 1
3658 1: abc
3659 --->abcxyz
3660 ^ ^ d
3661 Callout 2: last capture = 0
3662 --->abcxyz
3663 ^ a
3664 0: abcxyz
3665
3666 /(?<=(abc)(?C))xyz/I
3667 Capturing subpattern count = 1
3668 Max lookbehind = 3
3669 First code unit = 'x'
3670 Last code unit = 'z'
3671 Subject length lower bound = 3
3672 abcxyz\=callout_capture
3673 Callout 0: last capture = 1
3674 1: abc
3675 --->abcxyz
3676 ^ )
3677 0: xyz
3678 1: abc
3679
3680 /a(b+)(c*)(?C1)/I
3681 Capturing subpattern count = 2
3682 First code unit = 'a'
3683 Last code unit = 'b'
3684 Subject length lower bound = 2
3685 \= Expect no match
3686 abbbbbccc\=callout_data=1
3687 --->abbbbbccc
3688 1 ^ ^
3689 Callout data = 1
3690 No match
3691
3692 /a(b+?)(c*?)(?C1)/I
3693 Capturing subpattern count = 2
3694 First code unit = 'a'
3695 Last code unit = 'b'
3696 Subject length lower bound = 2
3697 \= Expect no match
3698 abbbbbccc\=callout_data=1
3699 --->abbbbbccc
3700 1 ^ ^
3701 Callout data = 1
3702 1 ^ ^
3703 Callout data = 1
3704 1 ^ ^
3705 Callout data = 1
3706 1 ^ ^
3707 Callout data = 1
3708 1 ^ ^
3709 Callout data = 1
3710 1 ^ ^
3711 Callout data = 1
3712 1 ^ ^
3713 Callout data = 1
3714 1 ^ ^
3715 Callout data = 1
3716 No match
3717
3718 /(?C)abc/I
3719 Capturing subpattern count = 0
3720 First code unit = 'a'
3721 Last code unit = 'c'
3722 Subject length lower bound = 3
3723
3724 /(?C)^abc/I
3725 Capturing subpattern count = 0
3726 Compile options: <none>
3727 Overall options: anchored
3728 Subject length lower bound = 3
3729
3730 /(?C)a|b/I
3731 Capturing subpattern count = 0
3732 Starting code units: a b
3733 Subject length lower bound = 1
3734
3735 /x(ab|(bc|(de|(?R))))/I
3736 Capturing subpattern count = 3
3737 First code unit = 'x'
3738 Subject length lower bound = 3
3739 xab
3740 0: xab
3741 1: ab
3742 xbc
3743 0: xbc
3744 1: bc
3745 2: bc
3746 xde
3747 0: xde
3748 1: de
3749 2: de
3750 3: de
3751 xxab
3752 0: xxab
3753 1: xab
3754 2: xab
3755 3: xab
3756 xxxab
3757 0: xxxab
3758 1: xxab
3759 2: xxab
3760 3: xxab
3761 \= Expect no match
3762 xyab
3763 No match
3764
3765 /^([^()]|\((?1)*\))*$/I
3766 Capturing subpattern count = 1
3767 May match empty string
3768 Compile options: <none>
3769 Overall options: anchored
3770 Subject length lower bound = 0
3771 abc
3772 0: abc
3773 1: c
3774 a(b)c
3775 0: a(b)c
3776 1: c
3777 a(b(c))d
3778 0: a(b(c))d
3779 1: d
3780 \= Expect no match)
3781 a(b(c)d
3782 No match
3783
3784 /^>abc>([^()]|\((?1)*\))*<xyz<$/I
3785 Capturing subpattern count = 1
3786 Compile options: <none>
3787 Overall options: anchored
3788 Last code unit = '<'
3789 Subject length lower bound = 10
3790 >abc>123<xyz<
3791 0: >abc>123<xyz<
3792 1: 3
3793 >abc>1(2)3<xyz<
3794 0: >abc>1(2)3<xyz<
3795 1: 3
3796 >abc>(1(2)3)<xyz<
3797 0: >abc>(1(2)3)<xyz<
3798 1: (1(2)3)
3799
3800 /(a(?1)b)/IB
3801 ------------------------------------------------------------------
3802 Bra
3803 CBra 1
3804 a
3805 Recurse
3806 b
3807 Ket
3808 Ket
3809 End
3810 ------------------------------------------------------------------
3811 Capturing subpattern count = 1
3812 First code unit = 'a'
3813 Last code unit = 'b'
3814 Subject length lower bound = 2
3815
3816 /(a(?1)+b)/IB
3817 ------------------------------------------------------------------
3818 Bra
3819 CBra 1
3820 a
3821 SBra
3822 Recurse
3823 KetRmax
3824 b
3825 Ket
3826 Ket
3827 End
3828 ------------------------------------------------------------------
3829 Capturing subpattern count = 1
3830 First code unit = 'a'
3831 Last code unit = 'b'
3832 Subject length lower bound = 2
3833
3834 /^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/I
3835 Capturing subpattern count = 2
3836 Compile options: <none>
3837 Overall options: anchored
3838 Subject length lower bound = 1
3839 12
3840 0: 12
3841 1: 12
3842 (((2+2)*-3)-7)
3843 0: (((2+2)*-3)-7)
3844 1: (((2+2)*-3)-7)
3845 2: -
3846 -12
3847 0: -12
3848 1: -12
3849 \= Expect no match
3850 ((2+2)*-3)-7)
3851 No match
3852
3853 /^(x(y|(?1){2})z)/I
3854 Capturing subpattern count = 2
3855 Compile options: <none>
3856 Overall options: anchored
3857 Subject length lower bound = 3
3858 xyz
3859 0: xyz
3860 1: xyz
3861 2: y
3862 xxyzxyzz
3863 0: xxyzxyzz
3864 1: xxyzxyzz
3865 2: xyzxyz
3866 \= Expect no match
3867 xxyzz
3868 No match
3869 xxyzxyzxyzz
3870 No match
3871
3872 /((< (?: (?(R) \d++ | [^<>]*+) | (?2)) * >))/Ix
3873 Capturing subpattern count = 2
3874 Options: extended
3875 First code unit = '<'
3876 Last code unit = '>'
3877 Subject length lower bound = 2
3878 <>
3879 0: <>
3880 1: <>
3881 2: <>
3882 <abcd>
3883 0: <abcd>
3884 1: <abcd>
3885 2: <abcd>
3886 <abc <123> hij>
3887 0: <abc <123> hij>
3888 1: <abc <123> hij>
3889 2: <abc <123> hij>
3890 <abc <def> hij>
3891 0: <def>
3892 1: <def>
3893 2: <def>
3894 <abc<>def>
3895 0: <abc<>def>
3896 1: <abc<>def>
3897 2: <abc<>def>
3898 <abc<>
3899 0: <>
3900 1: <>
3901 2: <>
3902 \= Expect no match
3903 <abc
3904 No match
3905
3906 /(?1)/I
3907 Failed: error 115 at offset 3: reference to non-existent subpattern
3908
3909 /((?2)(abc)/I
3910 Failed: error 114 at offset 10: missing closing parenthesis
3911
3912 /^(abc)def(?1)/I
3913 Capturing subpattern count = 1
3914 Compile options: <none>
3915 Overall options: anchored
3916 Subject length lower bound = 9
3917 abcdefabc
3918 0: abcdefabc
3919 1: abc
3920
3921 /^(a|b|c)=(?1)+/I
3922 Capturing subpattern count = 1
3923 Compile options: <none>
3924 Overall options: anchored
3925 Subject length lower bound = 2
3926 a=a
3927 0: a=a
3928 1: a
3929 a=b
3930 0: a=b
3931 1: a
3932 a=bc
3933 0: a=bc
3934 1: a
3935
3936 /^(a|b|c)=((?1))+/I
3937 Capturing subpattern count = 2
3938 Compile options: <none>
3939 Overall options: anchored
3940 Subject length lower bound = 2
3941 a=a
3942 0: a=a
3943 1: a
3944 2: a
3945 a=b
3946 0: a=b
3947 1: a
3948 2: b
3949 a=bc
3950 0: a=bc
3951 1: a
3952 2: c
3953
3954 /a(?P<name1>b|c)d(?P<longername2>e)/IB
3955 ------------------------------------------------------------------
3956 Bra
3957 a
3958 CBra 1
3959 b
3960 Alt
3961 c
3962 Ket
3963 d
3964 CBra 2
3965 e
3966 Ket
3967 Ket
3968 End
3969 ------------------------------------------------------------------
3970 Capturing subpattern count = 2
3971 Named capturing subpatterns:
3972 longername2 2
3973 name1 1
3974 First code unit = 'a'
3975 Last code unit = 'e'
3976 Subject length lower bound = 4
3977 abde
3978 0: abde
3979 1: b
3980 2: e
3981 acde
3982 0: acde
3983 1: c
3984 2: e
3985
3986 /(?:a(?P<c>c(?P<d>d)))(?P<a>a)/IB
3987 ------------------------------------------------------------------
3988 Bra
3989 Bra
3990 a
3991 CBra 1
3992 c
3993 CBra 2
3994 d
3995 Ket
3996 Ket
3997 Ket
3998 CBra 3
3999 a
4000 Ket
4001 Ket
4002 End
4003 ------------------------------------------------------------------
4004 Capturing subpattern count = 3
4005 Named capturing subpatterns:
4006 a 3
4007 c 1
4008 d 2
4009 First code unit = 'a'
4010 Last code unit = 'a'
4011 Subject length lower bound = 4
4012
4013 /(?P<a>a)...(?P=a)bbb(?P>a)d/IB
4014 ------------------------------------------------------------------
4015 Bra
4016 CBra 1
4017 a
4018 Ket
4019 Any
4020 Any
4021 Any
4022 \1
4023 bbb
4024 Recurse
4025 d
4026 Ket
4027 End
4028 ------------------------------------------------------------------
4029 Capturing subpattern count = 1
4030 Max back reference = 1
4031 Named capturing subpatterns:
4032 a 1
4033 First code unit = 'a'
4034 Last code unit = 'd'
4035 Subject length lower bound = 10
4036
4037 /^\W*(?:(?P<one>(?P<two>.)\W*(?P>one)\W*(?P=two)|)|(?P<three>(?P<four>.)\W*(?P>three)\W*(?P=four)|\W*.\W*))\W*$/Ii
4038 Capturing subpattern count = 4
4039 Max back reference = 4
4040 Named capturing subpatterns:
4041 four 4
4042 one 1
4043 three 3
4044 two 2
4045 May match empty string
4046 Compile options: caseless
4047 Overall options: anchored caseless
4048 Subject length lower bound = 0
4049 1221
4050 0: 1221
4051 1: 1221
4052 2: 1
4053 Satan, oscillate my metallic sonatas!
4054 0: Satan, oscillate my metallic sonatas!
4055 1: <unset>
4056 2: <unset>
4057 3: Satan, oscillate my metallic sonatas
4058 4: S
4059 A man, a plan, a canal: Panama!
4060 0: A man, a plan, a canal: Panama!
4061 1: <unset>
4062 2: <unset>
4063 3: A man, a plan, a canal: Panama
4064 4: A
4065 Able was I ere I saw Elba.
4066 0: Able was I ere I saw Elba.
4067 1: <unset>
4068 2: <unset>
4069 3: Able was I ere I saw Elba
4070 4: A
4071 \= Expect no match
4072 The quick brown fox
4073 No match
4074
4075 /((?(R)a|b))\1(?1)?/I
4076 Capturing subpattern count = 1
4077 Max back reference = 1
4078 Subject length lower bound = 2
4079 bb
4080 0: bb
4081 1: b
4082 bbaa
4083 0: bba
4084 1: b
4085
4086 /(.*)a/Is
4087 Capturing subpattern count = 1
4088 Compile options: dotall
4089 Overall options: anchored dotall
4090 Last code unit = 'a'
4091 Subject length lower bound = 1
4092
4093 /(.*)a\1/Is
4094 Capturing subpattern count = 1
4095 Max back reference = 1
4096 Options: dotall
4097 Last code unit = 'a'
4098 Subject length lower bound = 1
4099
4100 /(.*)a(b)\2/Is
4101 Capturing subpattern count = 2
4102 Max back reference = 2
4103 Compile options: dotall
4104 Overall options: anchored dotall
4105 Last code unit = 'b'
4106 Subject length lower bound = 3
4107
4108 /((.*)a|(.*)b)z/Is
4109 Capturing subpattern count = 3
4110 Compile options: dotall
4111 Overall options: anchored dotall
4112 Last code unit = 'z'
4113 Subject length lower bound = 2
4114
4115 /((.*)a|(.*)b)z\1/Is
4116 Capturing subpattern count = 3
4117 Max back reference = 1
4118 Options: dotall
4119 Last code unit = 'z'
4120 Subject length lower bound = 3
4121
4122 /((.*)a|(.*)b)z\2/Is
4123 Capturing subpattern count = 3
4124 Max back reference = 2
4125 Options: dotall
4126 Last code unit = 'z'
4127 Subject length lower bound = 2
4128
4129 /((.*)a|(.*)b)z\3/Is
4130 Capturing subpattern count = 3
4131 Max back reference = 3
4132 Options: dotall
4133 Last code unit = 'z'
4134 Subject length lower bound = 2
4135
4136 /((.*)a|^(.*)b)z\3/Is
4137 Capturing subpattern count = 3
4138 Max back reference = 3
4139 Compile options: dotall
4140 Overall options: anchored dotall
4141 Last code unit = 'z'
4142 Subject length lower bound = 2
4143
4144 /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a/Is
4145 Capturing subpattern count = 31
4146 May match empty string
4147 Compile options: dotall
4148 Overall options: anchored dotall
4149 Subject length lower bound = 0
4150
4151 /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\31/Is
4152 Capturing subpattern count = 31
4153 Max back reference = 31
4154 May match empty string
4155 Options: dotall
4156 Subject length lower bound = 0
4157
4158 /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\32/Is
4159 Capturing subpattern count = 32
4160 Max back reference = 32
4161 May match empty string
4162 Options: dotall
4163 Subject length lower bound = 0
4164
4165 /(a)(bc)/IB,no_auto_capture
4166 ------------------------------------------------------------------
4167 Bra
4168 Bra
4169 a
4170 Ket
4171 Bra
4172 bc
4173 Ket
4174 Ket
4175 End
4176 ------------------------------------------------------------------
4177 Capturing subpattern count = 0
4178 Options: no_auto_capture
4179 First code unit = 'a'
4180 Last code unit = 'c'
4181 Subject length lower bound = 3
4182 abc
4183 0: abc
4184
4185 /(?P<one>a)(bc)/IB,no_auto_capture
4186 ------------------------------------------------------------------
4187 Bra
4188 CBra 1
4189 a
4190 Ket
4191 Bra
4192 bc
4193 Ket
4194 Ket
4195 End
4196 ------------------------------------------------------------------
4197 Capturing subpattern count = 1
4198 Named capturing subpatterns:
4199 one 1
4200 Options: no_auto_capture
4201 First code unit = 'a'
4202 Last code unit = 'c'
4203 Subject length lower bound = 3
4204 abc
4205 0: abc
4206 1: a
4207
4208 /(a)(?P<named>bc)/IB,no_auto_capture
4209 ------------------------------------------------------------------
4210 Bra
4211 Bra
4212 a
4213 Ket
4214 CBra 1
4215 bc
4216 Ket
4217 Ket
4218 End
4219 ------------------------------------------------------------------
4220 Capturing subpattern count = 1
4221 Named capturing subpatterns:
4222 named 1
4223 Options: no_auto_capture
4224 First code unit = 'a'
4225 Last code unit = 'c'
4226 Subject length lower bound = 3
4227
4228 /(aaa(?C1)bbb|ab)/I
4229 Capturing subpattern count = 1
4230 First code unit = 'a'
4231 Last code unit = 'b'
4232 Subject length lower bound = 2
4233 aaabbb
4234 --->aaabbb
4235 1 ^ ^ b
4236 0: aaabbb
4237 1: aaabbb
4238 aaabbb\=callout_data=0
4239 --->aaabbb
4240 1 ^ ^ b
4241 0: aaabbb
4242 1: aaabbb
4243 aaabbb\=callout_data=1
4244 --->aaabbb
4245 1 ^ ^ b
4246 Callout data = 1
4247 0: ab
4248 1: ab
4249 \= Expect no match
4250 aaabbb\=callout_data=-1
4251 --->aaabbb
4252 1 ^ ^ b
4253 Callout data = -1
4254 No match
4255
4256 /ab(?P<one>cd)ef(?P<two>gh)/I
4257 Capturing subpattern count = 2
4258 Named capturing subpatterns:
4259 one 1
4260 two 2
4261 First code unit = 'a'
4262 Last code unit = 'h'
4263 Subject length lower bound = 8
4264 abcdefgh
4265 0: abcdefgh
4266 1: cd
4267 2: gh
4268 abcdefgh\=copy=1,get=two
4269 0: abcdefgh
4270 1: cd
4271 2: gh
4272 1C cd (2)
4273 G gh (2) two (group 2)
4274 abcdefgh\=copy=one,copy=two
4275 0: abcdefgh
4276 1: cd
4277 2: gh
4278 C cd (2) one (group 1)
4279 C gh (2) two (group 2)
4280 abcdefgh\=copy=three
4281 0: abcdefgh
4282 1: cd
4283 2: gh
4284 Number not found for group 'three'
4285 Copy substring 'three' failed (-49): unknown substring
4286
4287 /(?P<Tes>)(?P<Test>)/IB
4288 ------------------------------------------------------------------
4289 Bra
4290 CBra 1
4291 Ket
4292 CBra 2
4293 Ket
4294 Ket
4295 End
4296 ------------------------------------------------------------------
4297 Capturing subpattern count = 2
4298 Named capturing subpatterns:
4299 Tes 1
4300 Test 2
4301 May match empty string
4302 Subject length lower bound = 0
4303
4304 /(?P<Test>)(?P<Tes>)/IB
4305 ------------------------------------------------------------------
4306 Bra
4307 CBra 1
4308 Ket
4309 CBra 2
4310 Ket
4311 Ket
4312 End
4313 ------------------------------------------------------------------
4314 Capturing subpattern count = 2
4315 Named capturing subpatterns:
4316 Tes 2
4317 Test 1
4318 May match empty string
4319 Subject length lower bound = 0
4320
4321 /(?P<Z>zz)(?P<A>aa)/I
4322 Capturing subpattern count = 2
4323 Named capturing subpatterns:
4324 A 2
4325 Z 1
4326 First code unit = 'z'
4327 Last code unit = 'a'
4328 Subject length lower bound = 4
4329 zzaa\=copy=Z
4330 0: zzaa
4331 1: zz
4332 2: aa
4333 C zz (2) Z (group 1)
4334 zzaa\=copy=A
4335 0: zzaa
4336 1: zz
4337 2: aa
4338 C aa (2) A (group 2)
4339
4340 /(?P<x>eks)(?P<x>eccs)/I
4341 Failed: error 143 at offset 16: two named subpatterns have the same name (PCRE2_DUPNAMES not set)
4342
4343 /(?P<abc>abc(?P<def>def)(?P<abc>xyz))/I
4344 Failed: error 143 at offset 31: two named subpatterns have the same name (PCRE2_DUPNAMES not set)
4345
4346 "\[((?P<elem>\d+)(,(?P>elem))*)\]"I
4347 Capturing subpattern count = 3
4348 Named capturing subpatterns:
4349 elem 2
4350 First code unit = '['
4351 Last code unit = ']'
4352 Subject length lower bound = 3
4353 [10,20,30,5,5,4,4,2,43,23,4234]
4354 0: [10,20,30,5,5,4,4,2,43,23,4234]
4355 1: 10,20,30,5,5,4,4,2,43,23,4234
4356 2: 10
4357 3: ,4234
4358 \= Expect no match
4359 []
4360 No match
4361
4362 "\[((?P<elem>\d+)(,(?P>elem))*)?\]"I
4363 Capturing subpattern count = 3
4364 Named capturing subpatterns:
4365 elem 2
4366 First code unit = '['
4367 Last code unit = ']'
4368 Subject length lower bound = 2
4369 [10,20,30,5,5,4,4,2,43,23,4234]
4370 0: [10,20,30,5,5,4,4,2,43,23,4234]
4371 1: 10,20,30,5,5,4,4,2,43,23,4234
4372 2: 10
4373 3: ,4234
4374 []
4375 0: []
4376
4377 /(a(b(?2)c))?/IB
4378 ------------------------------------------------------------------
4379 Bra
4380 Brazero
4381 CBra 1
4382 a
4383 CBra 2
4384 b
4385 Recurse
4386 c
4387 Ket
4388 Ket
4389 Ket
4390 End
4391 ------------------------------------------------------------------
4392 Capturing subpattern count = 2
4393 May match empty string
4394 Subject length lower bound = 0
4395
4396 /(a(b(?2)c))*/IB
4397 ------------------------------------------------------------------
4398 Bra
4399 Brazero
4400 CBra 1
4401 a
4402 CBra 2
4403 b
4404 Recurse
4405 c
4406 Ket
4407 KetRmax
4408 Ket
4409 End
4410 ------------------------------------------------------------------
4411 Capturing subpattern count = 2
4412 May match empty string
4413 Subject length lower bound = 0
4414
4415 /(a(b(?2)c)){0,2}/IB
4416 ------------------------------------------------------------------
4417 Bra
4418 Brazero
4419 Bra
4420 CBra 1
4421 a
4422 CBra 2
4423 b
4424 Recurse
4425 c
4426 Ket
4427 Ket
4428 Brazero
4429 CBra 1
4430 a
4431 CBra 2
4432 b
4433 Recurse
4434 c
4435 Ket
4436 Ket
4437 Ket
4438 Ket
4439 End
4440 ------------------------------------------------------------------
4441 Capturing subpattern count = 2
4442 May match empty string
4443 Subject length lower bound = 0
4444
4445 /[ab]{1}+/B
4446 ------------------------------------------------------------------
4447 Bra
4448 [ab]
4449 Ket
4450 End
4451 ------------------------------------------------------------------
4452
4453 /()(?1){1}/B
4454 ------------------------------------------------------------------
4455 Bra
4456 CBra 1
4457 Ket
4458 Recurse
4459 Ket
4460 End
4461 ------------------------------------------------------------------
4462
4463 /()(?1)/B
4464 ------------------------------------------------------------------
4465 Bra
4466 CBra 1
4467 Ket
4468 Recurse
4469 Ket
4470 End
4471 ------------------------------------------------------------------
4472
4473 /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/Ii
4474 Capturing subpattern count = 3
4475 Options: caseless
4476 Last code unit = 'g' (caseless)
4477 Subject length lower bound = 8
4478 Baby Bjorn Active Carrier - With free SHIPPING!!
4479 0: Baby Bjorn Active Carrier - With free SHIPPING!!
4480 1: Baby Bjorn Active Carrier - With free SHIPPING!!
4481
4482 /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/Ii
4483 Capturing subpattern count = 3
4484 Options: caseless
4485 Last code unit = 'g' (caseless)
4486 Subject length lower bound = 8
4487 Baby Bjorn Active Carrier - With free SHIPPING!!
4488 0: Baby Bjorn Active Carrier - With free SHIPPING!!
4489 1: Baby Bjorn Active Carrier - With free SHIPPING!!
4490
4491 /a*.*b/IB
4492 ------------------------------------------------------------------
4493 Bra
4494 a*
4495 Any*
4496 b
4497 Ket
4498 End
4499 ------------------------------------------------------------------
4500 Capturing subpattern count = 0
4501 Last code unit = 'b'
4502 Subject length lower bound = 1
4503
4504 /(a|b)*.?c/IB
4505 ------------------------------------------------------------------
4506 Bra
4507 Brazero
4508 CBra 1
4509 a
4510 Alt
4511 b
4512 KetRmax
4513 Any?
4514 c
4515 Ket
4516 End
4517 ------------------------------------------------------------------
4518 Capturing subpattern count = 1
4519 Last code unit = 'c'
4520 Subject length lower bound = 1
4521
4522 /abc(?C255)de(?C)f/IB
4523 ------------------------------------------------------------------
4524 Bra
4525 abc
4526 Callout 255 10 1
4527 de
4528 Callout 0 16 1
4529 f
4530 Ket
4531 End
4532 ------------------------------------------------------------------
4533 Capturing subpattern count = 0
4534 First code unit = 'a'
4535 Last code unit = 'f'
4536 Subject length lower bound = 6
4537
4538 /abcde/IB,auto_callout
4539 ------------------------------------------------------------------
4540 Bra
4541 Callout 255 0 1
4542 a
4543 Callout 255 1 1
4544 b
4545 Callout 255 2 1
4546 c
4547 Callout 255 3 1
4548 d
4549 Callout 255 4 1
4550 e
4551 Callout 255 5 0
4552 Ket
4553 End
4554 ------------------------------------------------------------------
4555 Capturing subpattern count = 0
4556 Options: auto_callout
4557 First code unit = 'a'
4558 Last code unit = 'e'
4559 Subject length lower bound = 5
4560 abcde
4561 --->abcde
4562 +0 ^ a
4563 +1 ^^ b
4564 +2 ^ ^ c
4565 +3 ^ ^ d
4566 +4 ^ ^ e
4567 +5 ^ ^
4568 0: abcde
4569 \= Expect no match
4570 abcdfe
4571 --->abcdfe
4572 +0 ^ a
4573 +1 ^^ b
4574 +2 ^ ^ c
4575 +3 ^ ^ d
4576 +4 ^ ^ e
4577 No match
4578
4579 /a*b/IB,auto_callout
4580 ------------------------------------------------------------------
4581 Bra
4582 Callout 255 0 2
4583 a*+
4584 Callout 255 2 1
4585 b
4586 Callout 255 3 0
4587 Ket
4588 End
4589 ------------------------------------------------------------------
4590 Capturing subpattern count = 0
4591 Options: auto_callout
4592 Starting code units: a b
4593 Last code unit = 'b'
4594 Subject length lower bound = 1
4595 ab
4596 --->ab
4597 +0 ^ a*
4598 +2 ^^ b
4599 +3 ^ ^
4600 0: ab
4601 aaaab
4602 --->aaaab
4603 +0 ^ a*
4604 +2 ^ ^ b
4605 +3 ^ ^
4606 0: aaaab
4607 aaaacb
4608 --->aaaacb
4609 +0 ^ a*
4610 +2 ^ ^ b
4611 +0 ^ a*
4612 +2 ^ ^ b
4613 +0 ^ a*
4614 +2 ^ ^ b
4615 +0 ^ a*
4616 +2 ^^ b
4617 +0 ^ a*
4618 +2 ^ b
4619 +3 ^^
4620 0: b
4621
4622 /a*b/IB,auto_callout
4623 ------------------------------------------------------------------
4624 Bra
4625 Callout 255 0 2
4626 a*+
4627 Callout 255 2 1
4628 b
4629 Callout 255 3 0
4630 Ket
4631 End
4632 ------------------------------------------------------------------
4633 Capturing subpattern count = 0
4634 Options: auto_callout
4635 Starting code units: a b
4636 Last code unit = 'b'
4637 Subject length lower bound = 1
4638 ab
4639 --->ab
4640 +0 ^ a*
4641 +2 ^^ b
4642 +3 ^ ^
4643 0: ab
4644 aaaab
4645 --->aaaab
4646 +0 ^ a*
4647 +2 ^ ^ b
4648 +3 ^ ^
4649 0: aaaab
4650 aaaacb
4651 --->aaaacb
4652 +0 ^ a*
4653 +2 ^ ^ b
4654 +0 ^ a*
4655 +2 ^ ^ b
4656 +0 ^ a*
4657 +2 ^ ^ b
4658 +0 ^ a*
4659 +2 ^^ b
4660 +0 ^ a*
4661 +2 ^ b
4662 +3 ^^
4663 0: b
4664
4665 /a+b/IB,auto_callout
4666 ------------------------------------------------------------------
4667 Bra
4668 Callout 255 0 2
4669 a++
4670 Callout 255 2 1
4671 b
4672 Callout 255 3 0
4673 Ket
4674 End
4675 ------------------------------------------------------------------
4676 Capturing subpattern count = 0
4677 Options: auto_callout
4678 First code unit = 'a'
4679 Last code unit = 'b'
4680 Subject length lower bound = 2
4681 ab
4682 --->ab
4683 +0 ^ a+
4684 +2 ^^ b
4685 +3 ^ ^
4686 0: ab
4687 aaaab
4688 --->aaaab
4689 +0 ^ a+
4690 +2 ^ ^ b
4691 +3 ^ ^
4692 0: aaaab
4693 \= Expect no match
4694 aaaacb
4695 --->aaaacb
4696 +0 ^ a+
4697 +2 ^ ^ b
4698 +0 ^ a+
4699 +2 ^ ^ b
4700 +0 ^ a+
4701 +2 ^ ^ b
4702 +0 ^ a+
4703 +2 ^^ b
4704 No match
4705
4706 /(abc|def)x/IB,auto_callout
4707 ------------------------------------------------------------------
4708 Bra
4709 Callout 255 0 1
4710 CBra 1
4711 Callout 255 1 1
4712 a
4713 Callout 255 2 1
4714 b
4715 Callout 255 3 1
4716 c
4717 Callout 255 4 1
4718 Alt
4719 Callout 255 5 1
4720 d
4721 Callout 255 6 1
4722 e
4723 Callout 255 7 1
4724 f
4725 Callout 255 8 1
4726 Ket
4727 Callout 255 9 1
4728 x
4729 Callout 255 10 0
4730 Ket
4731 End
4732 ------------------------------------------------------------------
4733 Capturing subpattern count = 1
4734 Options: auto_callout
4735 Starting code units: a d
4736 Last code unit = 'x'
4737 Subject length lower bound = 4
4738 abcx
4739 --->abcx
4740 +0 ^ (
4741 +1 ^ a
4742 +2 ^^ b
4743 +3 ^ ^ c
4744 +4 ^ ^ |
4745 +9 ^ ^ x
4746 +10 ^ ^
4747 0: abcx
4748 1: abc
4749 defx
4750 --->defx
4751 +0 ^ (
4752 +1 ^ a
4753 +5 ^ d
4754 +6 ^^ e
4755 +7 ^ ^ f
4756 +8 ^ ^ )
4757 +9 ^ ^ x
4758 +10 ^ ^
4759 0: defx
4760 1: def
4761 \= Expect no match
4762 abcdefzx
4763 --->abcdefzx
4764 +0 ^ (
4765 +1 ^ a
4766 +2 ^^ b
4767 +3 ^ ^ c
4768 +4 ^ ^ |
4769 +9 ^ ^ x
4770 +5 ^ d
4771 +0 ^ (
4772 +1 ^ a
4773 +5 ^ d
4774 +6 ^^ e
4775 +7 ^ ^ f
4776 +8 ^ ^ )
4777 +9 ^ ^ x
4778 No match
4779
4780 /(abc|def)x/IB,auto_callout
4781 ------------------------------------------------------------------
4782 Bra
4783 Callout 255 0 1
4784 CBra 1
4785 Callout 255 1 1
4786 a
4787 Callout 255 2 1
4788 b
4789 Callout 255 3 1
4790 c
4791 Callout 255 4 1
4792 Alt
4793 Callout 255 5 1
4794 d
4795 Callout 255 6 1
4796 e
4797 Callout 255 7 1
4798 f
4799 Callout 255 8 1
4800 Ket
4801 Callout 255 9 1
4802 x
4803 Callout 255 10 0
4804 Ket
4805 End
4806 ------------------------------------------------------------------
4807 Capturing subpattern count = 1
4808 Options: auto_callout
4809 Starting code units: a d
4810 Last code unit = 'x'
4811 Subject length lower bound = 4
4812 abcx
4813 --->abcx
4814 +0 ^ (
4815 +1 ^ a
4816 +2 ^^ b
4817 +3 ^ ^ c
4818 +4 ^ ^ |
4819 +9 ^ ^ x
4820 +10 ^ ^
4821 0: abcx
4822 1: abc
4823 defx
4824 --->defx
4825 +0 ^ (
4826 +1 ^ a
4827 +5 ^ d
4828 +6 ^^ e
4829 +7 ^ ^ f
4830 +8 ^ ^ )
4831 +9 ^ ^ x
4832 +10 ^ ^
4833 0: defx
4834 1: def
4835 \= Expect no match
4836 abcdefzx
4837 --->abcdefzx
4838 +0 ^ (
4839 +1 ^ a
4840 +2 ^^ b
4841 +3 ^ ^ c
4842 +4 ^ ^ |
4843 +9 ^ ^ x
4844 +5 ^ d
4845 +0 ^ (
4846 +1 ^ a
4847 +5 ^ d
4848 +6 ^^ e
4849 +7 ^ ^ f
4850 +8 ^ ^ )
4851 +9 ^ ^ x
4852 No match
4853
4854 /(ab|cd){3,4}/I,auto_callout
4855 Capturing subpattern count = 1
4856 Options: auto_callout
4857 Starting code units: a c
4858 Subject length lower bound = 6
4859 ababab
4860 --->ababab
4861 +0 ^ (
4862 +1 ^ a
4863 +2 ^^ b
4864 +3 ^ ^ |
4865 +1 ^ ^ a
4866 +2 ^ ^ b
4867 +3 ^ ^ |
4868 +1 ^ ^ a
4869 +2 ^ ^ b
4870 +3 ^ ^ |
4871 +1 ^ ^ a
4872 +4 ^ ^ c
4873 +12 ^ ^
4874 0: ababab
4875 1: ab
4876 abcdabcd
4877 --->abcdabcd
4878 +0 ^ (
4879 +1 ^ a
4880 +2 ^^ b
4881 +3 ^ ^ |
4882 +1 ^ ^ a
4883 +4 ^ ^ c
4884 +5 ^ ^ d
4885 +6 ^ ^ ){3,4}
4886 +1 ^ ^ a
4887 +2 ^ ^ b
4888 +3 ^ ^ |
4889 +1 ^ ^ a
4890 +4 ^ ^ c
4891 +5 ^ ^ d
4892 +6 ^ ^ ){3,4}
4893 +12 ^ ^
4894 0: abcdabcd
4895 1: cd
4896 abcdcdcdcdcd
4897 --->abcdcdcdcdcd
4898 +0 ^ (
4899 +1 ^ a
4900 +2 ^^ b
4901 +3 ^ ^ |
4902 +1 ^ ^ a
4903 +4 ^ ^ c
4904 +5 ^ ^ d
4905 +6 ^ ^ ){3,4}
4906 +1 ^ ^ a
4907 +4 ^ ^ c
4908 +5 ^ ^ d
4909 +6 ^ ^ ){3,4}
4910 +1 ^ ^ a
4911 +4 ^ ^ c
4912 +5 ^ ^ d
4913 +6 ^ ^ ){3,4}
4914 +12 ^ ^
4915 0: abcdcdcd
4916 1: cd
4917
4918 /([ab]{,4}c|xy)/IB,auto_callout
4919 ------------------------------------------------------------------
4920 Bra
4921 Callout 255 0 1
4922 CBra 1
4923 Callout 255 1 4
4924 [ab]
4925 Callout 255 5 1
4926 {
4927 Callout 255 6 1
4928 ,
4929 Callout 255 7 1
4930 4
4931 Callout 255 8 1
4932 }
4933 Callout 255 9 1
4934 c
4935 Callout 255 10 1
4936 Alt
4937 Callout 255 11 1
4938 x
4939 Callout 255 12 1
4940 y
4941 Callout 255 13 1
4942 Ket
4943 Callout 255 14 0
4944 Ket
4945 End
4946 ------------------------------------------------------------------
4947 Capturing subpattern count = 1
4948 Options: auto_callout
4949 Starting code units: a b x
4950 Subject length lower bound = 2
4951 \= Expect no match
4952 Note: that { does NOT introduce a quantifier
4953 --->Note: that { does NOT introduce a quantifier
4954 +0 ^ (
4955 +1 ^ [ab]
4956 +5 ^^ {
4957 +11 ^ x
4958 +0 ^ (
4959 +1 ^ [ab]
4960 +5 ^^ {
4961 +11 ^ x
4962 +0 ^ (
4963 +1 ^ [ab]
4964 +5 ^^ {
4965 +11 ^ x
4966 No match
4967
4968 /([ab]{,4}c|xy)/IB,auto_callout
4969 ------------------------------------------------------------------
4970 Bra
4971 Callout 255 0 1
4972 CBra 1
4973 Callout 255 1 4
4974 [ab]
4975 Callout 255 5 1
4976 {
4977 Callout 255 6 1
4978 ,
4979 Callout 255 7 1
4980 4
4981 Callout 255 8 1
4982 }
4983 Callout 255 9 1
4984 c
4985 Callout 255 10 1
4986 Alt
4987 Callout 255 11 1
4988 x
4989 Callout 255 12 1
4990 y
4991 Callout 255 13 1
4992 Ket
4993 Callout 255 14 0
4994 Ket
4995 End
4996 ------------------------------------------------------------------
4997 Capturing subpattern count = 1
4998 Options: auto_callout
4999 Starting code units: a b x
5000 Subject length lower bound = 2
5001 \= Expect no match
5002 Note: that { does NOT introduce a quantifier
5003 --->Note: that { does NOT introduce a quantifier
5004 +0 ^ (
5005 +1 ^ [ab]
5006 +5 ^^ {
5007 +11 ^ x
5008 +0 ^ (
5009 +1 ^ [ab]
5010 +5 ^^ {
5011 +11 ^ x
5012 +0 ^ (
5013 +1 ^ [ab]
5014 +5 ^^ {
5015 +11 ^ x
5016 No match
5017
5018 /([ab]{1,4}c|xy){4,5}?123/IB,auto_callout
5019 ------------------------------------------------------------------
5020 Bra
5021 Callout 255 0 1
5022 CBra 1
5023 Callout 255 1 9
5024 [ab]{1,4}+
5025 Callout 255 10 1
5026 c
5027 Callout 255 11 1
5028 Alt
5029 Callout 255 12 1
5030 x
5031 Callout 255 13 1
5032 y
5033 Callout 255 14 7
5034 Ket
5035 CBra 1
5036 Callout 255 1 9
5037 [ab]{1,4}+
5038 Callout 255 10 1
5039 c
5040 Callout 255 11 1
5041 Alt
5042 Callout 255 12 1
5043 x
5044 Callout 255 13 1
5045 y
5046 Callout 255 14 7
5047 Ket
5048 CBra 1
5049 Callout 255 1 9
5050 [ab]{1,4}+
5051 Callout 255 10 1
5052 c
5053 Callout 255 11 1
5054 Alt
5055 Callout 255 12 1
5056 x
5057 Callout 255 13 1
5058 y
5059 Callout 255 14 7
5060 Ket
5061 CBra 1
5062 Callout 255 1 9
5063 [ab]{1,4}+
5064 Callout 255 10 1
5065 c
5066 Callout 255 11 1
5067 Alt
5068 Callout 255 12 1
5069 x
5070 Callout 255 13 1
5071 y
5072 Callout 255 14 7
5073 Ket
5074 Braminzero
5075 CBra 1
5076 Callout 255 1 9
5077 [ab]{1,4}+
5078 Callout 255 10 1
5079 c
5080 Callout 255 11 1
5081 Alt
5082 Callout 255 12 1
5083 x
5084 Callout 255 13 1
5085 y
5086 Callout 255 14 7
5087 Ket
5088 Callout 255 21 1
5089 1
5090 Callout 255 22 1
5091 2
5092 Callout 255 23 1
5093 3
5094 Callout 255 24 0
5095 Ket
5096 End
5097 ------------------------------------------------------------------
5098 Capturing subpattern count = 1
5099 Options: auto_callout
5100 Starting code units: a b x
5101 Last code unit = '3'
5102 Subject length lower bound = 11
5103 aacaacaacaacaac123
5104 --->aacaacaacaacaac123
5105 +0 ^ (
5106 +1 ^ [ab]{1,4}
5107 +10 ^ ^ c
5108 +11 ^ ^ |
5109 +1 ^ ^ [ab]{1,4}
5110 +10 ^ ^ c
5111 +11 ^ ^ |
5112 +1 ^ ^ [ab]{1,4}
5113 +10 ^ ^ c
5114 +11 ^ ^ |
5115 +1 ^ ^ [ab]{1,4}
5116 +10 ^ ^ c
5117 +11 ^ ^ |
5118 +21 ^ ^ 1
5119 +1 ^ ^ [ab]{1,4}
5120 +10 ^ ^ c
5121 +11 ^ ^ |
5122 +21 ^ ^ 1
5123 +22 ^ ^ 2
5124 +23 ^ ^ 3
5125 +24 ^ ^
5126 0: aacaacaacaacaac123
5127 1: aac
5128
5129 /\b.*/I
5130 Capturing subpattern count = 0
5131 Max lookbehind = 1
5132 May match empty string
5133 Subject length lower bound = 0
5134 ab cd\=offset=1
5135 0: cd
5136
5137 /\b.*/Is
5138 Capturing subpattern count = 0
5139 Max lookbehind = 1
5140 May match empty string
5141 Options: dotall
5142 Subject length lower bound = 0
5143 ab cd\=startoffset=1
5144 0: cd
5145
5146 /(?!.bcd).*/I
5147 Capturing subpattern count = 0
5148 May match empty string
5149 Subject length lower bound = 0
5150 Xbcd12345
5151 0: bcd12345
5152
5153 /abcde/I
5154 Capturing subpattern count = 0
5155 First code unit = 'a'
5156 Last code unit = 'e'
5157 Subject length lower bound = 5
5158 ab\=ps
5159 Partial match: ab
5160 abc\=ps
5161 Partial match: abc
5162 abcd\=ps
5163 Partial match: abcd
5164 abcde\=ps
5165 0: abcde
5166 the quick brown abc\=ps
5167 Partial match: abc
5168 \= Expect no match\=ps
5169 the quick brown abxyz fox\=ps
5170 No match
5171
5172 "^(0?[1-9]|[12][0-9]|3[01])/(0?[1-9]|1[012])/(20)?\d\d$"I
5173 Capturing subpattern count = 3
5174 Compile options: <none>
5175 Overall options: anchored
5176 Last code unit = '/'
5177 Subject length lower bound = 6
5178 13/05/04\=ps
5179 0: 13/05/04
5180 1: 13
5181 2: 05
5182 13/5/2004\=ps
5183 0: 13/5/2004
5184 1: 13
5185 2: 5
5186 3: 20
5187 02/05/09\=ps
5188 0: 02/05/09
5189 1: 02
5190 2: 05
5191 1\=ps
5192 Partial match: 1
5193 1/2\=ps
5194 Partial match: 1/2
5195 1/2/0\=ps
5196 Partial match: 1/2/0
5197 1/2/04\=ps
5198 0: 1/2/04
5199 1: 1
5200 2: 2
5201 0\=ps
5202 Partial match: 0
5203 02/\=ps
5204 Partial match: 02/
5205 02/0\=ps
5206 Partial match: 02/0
5207 02/1\=ps
5208 Partial match: 02/1
5209 \= Expect no match\=ps
5210 \=ps
5211 No match
5212 123\=ps
5213 No match
5214 33/4/04\=ps
5215 No match
5216 3/13/04\=ps
5217 No match
5218 0/1/2003\=ps
5219 No match
5220 0/\=ps
5221 No match
5222 02/0/\=ps
5223 No match
5224 02/13\=ps
5225 No match
5226
5227 /0{0,2}ABC/I
5228 Capturing subpattern count = 0
5229 Starting code units: 0 A
5230 Last code unit = 'C'
5231 Subject length lower bound = 3
5232
5233 /\d{3,}ABC/I
5234 Capturing subpattern count = 0
5235 Starting code units: 0 1 2 3 4 5 6 7 8 9
5236 Last code unit = 'C'
5237 Subject length lower bound = 6
5238
5239 /\d*ABC/I
5240 Capturing subpattern count = 0
5241 Starting code units: 0 1 2 3 4 5 6 7 8 9 A
5242 Last code unit = 'C'
5243 Subject length lower bound = 3
5244
5245 /[abc]+DE/I
5246 Capturing subpattern count = 0
5247 Starting code units: a b c
5248 Last code unit = 'E'
5249 Subject length lower bound = 3
5250
5251 /[abc]?123/I
5252 Capturing subpattern count = 0
5253 Starting code units: 1 a b c
5254 Last code unit = '3'
5255 Subject length lower bound = 3
5256 123\=ps
5257 0: 123
5258 a\=ps
5259 Partial match: a
5260 b\=ps
5261 Partial match: b
5262 c\=ps
5263 Partial match: c
5264 c12\=ps
5265 Partial match: c12
5266 c123\=ps
5267 0: c123
5268
5269 /^(?:\d){3,5}X/I
5270 Capturing subpattern count = 0
5271 Compile options: <none>
5272 Overall options: anchored
5273 Last code unit = 'X'
5274 Subject length lower bound = 4
5275 1\=ps
5276 Partial match: 1
5277 123\=ps
5278 Partial match: 123
5279 123X
5280 0: 123X
5281 1234\=ps
5282 Partial match: 1234
5283 1234X
5284 0: 1234X
5285 12345\=ps
5286 Partial match: 12345
5287 12345X
5288 0: 12345X
5289 \= Expect no match
5290 1X
5291 No match
5292 123456\=ps
5293 No match
5294
5295 "<(\w+)/?>(.)*</(\1)>"Igms
5296 Capturing subpattern count = 3
5297 Max back reference = 1
5298 Options: dotall multiline
5299 First code unit = '<'
5300 Last code unit = '>'
5301 Subject length lower bound = 7
5302 <!DOCTYPE seite SYSTEM "http://www.lco.lineas.de/xmlCms.dtd">\n<seite>\n<dokumenteninformation>\n<seitentitel>Partner der LCO</seitentitel>\n<sprache>de</sprache>\n<seitenbeschreibung>Partner der LINEAS Consulting\nGmbH</seitenbeschreibung>\n<schluesselworte>LINEAS Consulting GmbH Hamburg\nPartnerfirmen</schluesselworte>\n<revisit>30 days</revisit>\n<robots>index,follow</robots>\n<menueinformation>\n<aktiv>ja</aktiv>\n<menueposition>3</menueposition>\n<menuetext>Partner</menuetext>\n</menueinformation>\n<lastedited>\n<autor>LCO</autor>\n<firma>LINEAS Consulting</firma>\n<datum>15.10.2003</datum>\n</lastedited>\n</dokumenteninformation>\n<inhalt>\n\n<absatzueberschrift>Die Partnerfirmen der LINEAS Consulting\nGmbH</absatzueberschrift>\n\n<absatz><link ziel="http://www.ca.com/" zielfenster="_blank">\n<bild name="logo_ca.gif" rahmen="no"/></link> <link\nziel="http://www.ey.com/" zielfenster="_blank"><bild\nname="logo_euy.gif" rahmen="no"/></link>\n</absatz>\n\n<absatz><link ziel="http://www.cisco.de/" zielfenster="_blank">\n<bild name="logo_cisco.gif" rahmen="ja"/></link></absatz>\n\n<absatz><link ziel="http://www.atelion.de/"\nzielfenster="_blank"><bild\nname="logo_atelion.gif" rahmen="no"/></link>\n</absatz>\n\n<absatz><link ziel="http://www.line-information.de/"\nzielfenster="_blank">\n<bild name="logo_line_information.gif" rahmen="no"/></link>\n</absatz>\n\n<absatz><bild name="logo_aw.gif" rahmen="no"/></absatz>\n\n<absatz><link ziel="http://www.incognis.de/"\nzielfenster="_blank"><bild\nname="logo_incognis.gif" rahmen="no"/></link></absatz>\n\n<absatz><link ziel="http://www.addcraft.com/"\nzielfenster="_blank"><bild\nname="logo_addcraft.gif" rahmen="no"/></link></absatz>\n\n<absatz><link ziel="http://www.comendo.com/"\nzielfenster="_blank"><bild\nname="logo_comendo.gif" rahmen="no"/></link></absatz>\n\n</inhalt>\n</seite>\=jitstack=1024
5303 0: <seite>\x0a<dokumenteninformation>\x0a<seitentitel>Partner der LCO</seitentitel>\x0a<sprache>de</sprache>\x0a<seitenbeschreibung>Partner der LINEAS Consulting\x0aGmbH</seitenbeschreibung>\x0a<schluesselworte>LINEAS Consulting GmbH Hamburg\x0aPartnerfirmen</schluesselworte>\x0a<revisit>30 days</revisit>\x0a<robots>index,follow</robots>\x0a<menueinformation>\x0a<aktiv>ja</aktiv>\x0a<menueposition>3</menueposition>\x0a<menuetext>Partner</menuetext>\x0a</menueinformation>\x0a<lastedited>\x0a<autor>LCO</autor>\x0a<firma>LINEAS Consulting</firma>\x0a<datum>15.10.2003</datum>\x0a</lastedited>\x0a</dokumenteninformation>\x0a<inhalt>\x0a\x0a<absatzueberschrift>Die Partnerfirmen der LINEAS Consulting\x0aGmbH</absatzueberschrift>\x0a\x0a<absatz><link ziel="http://www.ca.com/" zielfenster="_blank">\x0a<bild name="logo_ca.gif" rahmen="no"/></link> <link\x0aziel="http://www.ey.com/" zielfenster="_blank"><bild\x0aname="logo_euy.gif" rahmen="no"/></link>\x0a</absatz>\x0a\x0a<absatz><link ziel="http://www.cisco.de/" zielfenster="_blank">\x0a<bild name="logo_cisco.gif" rahmen="ja"/></link></absatz>\x0a\x0a<absatz><link ziel="http://www.atelion.de/"\x0azielfenster="_blank"><bild\x0aname="logo_atelion.gif" rahmen="no"/></link>\x0a</absatz>\x0a\x0a<absatz><link ziel="http://www.line-information.de/"\x0azielfenster="_blank">\x0a<bild name="logo_line_information.gif" rahmen="no"/></link>\x0a</absatz>\x0a\x0a<absatz><bild name="logo_aw.gif" rahmen="no"/></absatz>\x0a\x0a<absatz><link ziel="http://www.incognis.de/"\x0azielfenster="_blank"><bild\x0aname="logo_incognis.gif" rahmen="no"/></link></absatz>\x0a\x0a<absatz><link ziel="http://www.addcraft.com/"\x0azielfenster="_blank"><bild\x0aname="logo_addcraft.gif" rahmen="no"/></link></absatz>\x0a\x0a<absatz><link ziel="http://www.comendo.com/"\x0azielfenster="_blank"><bild\x0aname="logo_comendo.gif" rahmen="no"/></link></absatz>\x0a\x0a</inhalt>\x0a</seite>
5304 1: seite
5305 2: \x0a
5306 3: seite
5307
5308 /line\nbreak/I
5309 Capturing subpattern count = 0
5310 Contains explicit CR or LF match
5311 First code unit = 'l'
5312 Last code unit = 'k'
5313 Subject length lower bound = 10
5314 this is a line\nbreak
5315 0: line\x0abreak
5316 line one\nthis is a line\nbreak in the second line
5317 0: line\x0abreak
5318
5319 /line\nbreak/I,firstline
5320 Capturing subpattern count = 0
5321 Contains explicit CR or LF match
5322 Options: firstline
5323 First code unit = 'l'
5324 Last code unit = 'k'
5325 Subject length lower bound = 10
5326 this is a line\nbreak
5327 0: line\x0abreak
5328 \= Expect no match
5329 line one\nthis is a line\nbreak in the second line
5330 No match
5331
5332 /line\nbreak/Im,firstline
5333 Capturing subpattern count = 0
5334 Contains explicit CR or LF match
5335 Options: firstline multiline
5336 First code unit = 'l'
5337 Last code unit = 'k'
5338 Subject length lower bound = 10
5339 this is a line\nbreak
5340 0: line\x0abreak
5341 \= Expect no match
5342 line one\nthis is a line\nbreak in the second line
5343 No match
5344
5345 /(?i)(?-i)AbCd/I
5346 Capturing subpattern count = 0
5347 First code unit = 'A'
5348 Last code unit = 'd'
5349 Subject length lower bound = 4
5350 AbCd
5351 0: AbCd
5352 \= Expect no match
5353 abcd
5354 No match
5355
5356 /a{11111111111111111111}/I
5357 Failed: error 105 at offset 8: number too big in {} quantifier
5358
5359 /(){64294967295}/I
5360 Failed: error 105 at offset 9: number too big in {} quantifier
5361
5362 /(){2,4294967295}/I
5363 Failed: error 105 at offset 11: number too big in {} quantifier
5364
5365 "(?i:a)(?i:b)(?i:c)(?i:d)(?i:e)(?i:f)(?i:g)(?i:h)(?i:i)(?i:j)(k)(?i:l)A\1B"I
5366 Capturing subpattern count = 1
5367 Max back reference = 1
5368 First code unit = 'a' (caseless)
5369 Last code unit = 'B'
5370 Subject length lower bound = 15
5371 abcdefghijklAkB
5372 0: abcdefghijklAkB
5373 1: k
5374
5375 "(?P<n0>a)(?P<n1>b)(?P<n2>c)(?P<n3>d)(?P<n4>e)(?P<n5>f)(?P<n6>g)(?P<n7>h)(?P<n8>i)(?P<n9>j)(?P<n10>k)(?P<n11>l)A\11B"I
5376 Capturing subpattern count = 12
5377 Max back reference = 11
5378 Named capturing subpatterns:
5379 n0 1
5380 n1 2
5381 n10 11
5382 n11 12
5383 n2 3
5384 n3 4
5385 n4 5
5386 n5 6
5387 n6 7
5388 n7 8
5389 n8 9
5390 n9 10
5391 First code unit = 'a'
5392 Last code unit = 'B'
5393 Subject length lower bound = 15
5394 abcdefghijklAkB
5395 0: abcdefghijklAkB
5396 1: a
5397 2: b
5398 3: c
5399 4: d
5400 5: e
5401 6: f
5402 7: g
5403 8: h
5404 9: i
5405 10: j
5406 11: k
5407 12: l
5408
5409 "(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)A\11B"I
5410 Capturing subpattern count = 12
5411 Max back reference = 11
5412 First code unit = 'a'
5413 Last code unit = 'B'
5414 Subject length lower bound = 15
5415 abcdefghijklAkB
5416 0: abcdefghijklAkB
5417 1: a
5418 2: b
5419 3: c
5420 4: d
5421 5: e
5422 6: f
5423 7: g
5424 8: h
5425 9: i
5426 10: j
5427 11: k
5428 12: l
5429
5430 "(?P<name0>a)(?P<name1>a)(?P<name2>a)(?P<name3>a)(?P<name4>a)(?P<name5>a)(?P<name6>a)(?P<name7>a)(?P<name8>a)(?P<name9>a)(?P<name10>a)(?P<name11>a)(?P<name12>a)(?P<name13>a)(?P<name14>a)(?P<name15>a)(?P<name16>a)(?P<name17>a)(?P<name18>a)(?P<name19>a)(?P<name20>a)(?P<name21>a)(?P<name22>a)(?P<name23>a)(?P<name24>a)(?P<name25>a)(?P<name26>a)(?P<name27>a)(?P<name28>a)(?P<name29>a)(?P<name30>a)(?P<name31>a)(?P<name32>a)(?P<name33>a)(?P<name34>a)(?P<name35>a)(?P<name36>a)(?P<name37>a)(?P<name38>a)(?P<name39>a)(?P<name40>a)(?P<name41>a)(?P<name42>a)(?P<name43>a)(?P<name44>a)(?P<name45>a)(?P<name46>a)(?P<name47>a)(?P<name48>a)(?P<name49>a)(?P<name50>a)(?P<name51>a)(?P<name52>a)(?P<name53>a)(?P<name54>a)(?P<name55>a)(?P<name56>a)(?P<name57>a)(?P<name58>a)(?P<name59>a)(?P<name60>a)(?P<name61>a)(?P<name62>a)(?P<name63>a)(?P<name64>a)(?P<name65>a)(?P<name66>a)(?P<name67>a)(?P<name68>a)(?P<name69>a)(?P<name70>a)(?P<name71>a)(?P<name72>a)(?P<name73>a)(?P<name74>a)(?P<name75>a)(?P<name76>a)(?P<name77>a)(?P<name78>a)(?P<name79>a)(?P<name80>a)(?P<name81>a)(?P<name82>a)(?P<name83>a)(?P<name84>a)(?P<name85>a)(?P<name86>a)(?P<name87>a)(?P<name88>a)(?P<name89>a)(?P<name90>a)(?P<name91>a)(?P<name92>a)(?P<name93>a)(?P<name94>a)(?P<name95>a)(?P<name96>a)(?P<name97>a)(?P<name98>a)(?P<name99>a)(?P<name100>a)"I
5431 Capturing subpattern count = 101
5432 Named capturing subpatterns:
5433 name0 1
5434 name1 2
5435 name10 11
5436 name100 101
5437 name11 12
5438 name12 13
5439 name13 14
5440 name14 15
5441 name15 16
5442 name16 17
5443 name17 18
5444 name18 19
5445 name19 20
5446 name2 3
5447 name20 21
5448 name21 22
5449 name22 23
5450 name23 24
5451 name24 25
5452 name25 26
5453 name26 27
5454 name27 28
5455 name28 29
5456 name29 30
5457 name3 4
5458 name30 31
5459 name31 32
5460 name32 33
5461 name33 34
5462 name34 35
5463 name35 36
5464 name36 37
5465 name37 38
5466 name38 39
5467 name39 40
5468 name4 5
5469 name40 41
5470 name41 42
5471 name42 43
5472 name43 44
5473 name44 45
5474 name45 46
5475 name46 47
5476 name47 48
5477 name48 49
5478 name49 50
5479 name5 6
5480 name50 51
5481 name51 52
5482 name52 53
5483 name53 54
5484 name54 55
5485 name55 56
5486 name56 57
5487 name57 58
5488 name58 59
5489 name59 60
5490 name6 7
5491 name60 61
5492 name61 62
5493 name62 63
5494 name63 64
5495 name64 65
5496 name65 66
5497 name66 67
5498 name67 68
5499 name68 69
5500 name69 70
5501 name7 8
5502 name70 71
5503 name71 72
5504 name72 73
5505 name73 74
5506 name74 75
5507 name75 76
5508 name76 77
5509 name77 78
5510 name78 79
5511 name79 80
5512 name8 9
5513 name80 81
5514 name81 82
5515 name82 83
5516 name83 84
5517 name84 85
5518 name85 86
5519 name86 87
5520 name87 88
5521 name88 89
5522 name89 90
5523 name9 10
5524 name90 91
5525 name91 92
5526 name92 93
5527 name93 94
5528 name94 95
5529 name95 96
5530 name96 97
5531 name97 98
5532 name98 99
5533 name99 100
5534 First code unit = 'a'
5535 Last code unit = 'a'
5536 Subject length lower bound = 101
5537 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
5538 Matched, but too many substrings
5539 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
5540 1: a
5541 2: a
5542 3: a
5543 4: a
5544 5: a
5545 6: a
5546 7: a
5547 8: a
5548 9: a
5549 10: a
5550 11: a
5551 12: a
5552 13: a
5553 14: a
5554
5555 "(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)"I
5556 Capturing subpattern count = 101
5557 First code unit = 'a'
5558 Last code unit = 'a'
5559 Subject length lower bound = 101
5560 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
5561 Matched, but too many substrings
5562 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
5563 1: a
5564 2: a
5565 3: a
5566 4: a
5567 5: a
5568 6: a
5569 7: a
5570 8: a
5571 9: a
5572 10: a
5573 11: a
5574 12: a
5575 13: a
5576 14: a
5577
5578 /[^()]*(?:\((?R)\)[^()]*)*/I
5579 Capturing subpattern count = 0
5580 May match empty string
5581 Subject length lower bound = 0
5582 (this(and)that
5583 0:
5584 (this(and)that)
5585 0: (this(and)that)
5586 (this(and)that)stuff
5587 0: (this(and)that)stuff
5588
5589 /[^()]*(?:\((?>(?R))\)[^()]*)*/I
5590 Capturing subpattern count = 0
5591 May match empty string
5592 Subject length lower bound = 0
5593 (this(and)that
5594 0:
5595 (this(and)that)
5596 0: (this(and)that)
5597
5598 /[^()]*(?:\((?R)\))*[^()]*/I
5599 Capturing subpattern count = 0
5600 May match empty string
5601 Subject length lower bound = 0
5602 (this(and)that
5603 0:
5604 (this(and)that)
5605 0: (this(and)that)
5606
5607 /(?:\((?R)\))*[^()]*/I
5608 Capturing subpattern count = 0
5609 May match empty string
5610 Subject length lower bound = 0
5611 (this(and)that
5612 0:
5613 (this(and)that)
5614 0:
5615 ((this))
5616 0: ((this))
5617
5618 /(?:\((?R)\))|[^()]*/I
5619 Capturing subpattern count = 0
5620 May match empty string
5621 Subject length lower bound = 0
5622 (this(and)that
5623 0:
5624 (this(and)that)
5625 0:
5626 (this)
5627 0: (this)
5628 ((this))
5629 0: ((this))
5630
5631 /\x{0000ff}/I
5632 Capturing subpattern count = 0
5633 First code unit = \xff
5634 Subject length lower bound = 1
5635
5636 /^((?P<A>a1)|(?P<A>a2)b)/I
5637 Failed: error 143 at offset 18: two named subpatterns have the same name (PCRE2_DUPNAMES not set)
5638
5639 /^((?P<A>a1)|(?P<A>a2)b)/I,dupnames
5640 Capturing subpattern count = 3
5641 Named capturing subpatterns:
5642 A 2
5643 A 3
5644 Compile options: dupnames
5645 Overall options: anchored dupnames
5646 Subject length lower bound = 2
5647 a1b\=copy=A
5648 0: a1
5649 1: a1
5650 2: a1
5651 C a1 (2) A (non-unique)
5652 a2b\=copy=A
5653 0: a2b
5654 1: a2b
5655 2: <unset>
5656 3: a2
5657 C a2 (2) A (non-unique)
5658 a1b\=copy=Z,copy=A
5659 0: a1
5660 1: a1
5661 2: a1
5662 Number not found for group 'Z'
5663 Copy substring 'Z' failed (-49): unknown substring
5664 C a1 (2) A (non-unique)
5665
5666 /(?|(?<a>)(?<b>)(?<a>)|(?<a>)(?<b>)(?<a>))/I,dupnames
5667 Capturing subpattern count = 3
5668 Named capturing subpatterns:
5669 a 1
5670 a 3
5671 b 2
5672 May match empty string
5673 Options: dupnames
5674 Subject length lower bound = 0
5675
5676 /^(?P<A>a)(?P<A>b)/I,dupnames
5677 Capturing subpattern count = 2
5678 Named capturing subpatterns:
5679 A 1
5680 A 2
5681 Compile options: dupnames
5682 Overall options: anchored dupnames
5683 Subject length lower bound = 2
5684 ab\=copy=A
5685 0: ab
5686 1: a
5687 2: b
5688 C a (1) A (non-unique)
5689
5690 /^(?P<A>a)(?P<A>b)|cd/I,dupnames
5691 Capturing subpattern count = 2
5692 Named capturing subpatterns:
5693 A 1
5694 A 2
5695 Options: dupnames
5696 Subject length lower bound = 2
5697 ab\=copy=A
5698 0: ab
5699 1: a
5700 2: b
5701 C a (1) A (non-unique)
5702 cd\=copy=A
5703 0: cd
5704 Copy substring 'A' failed (-55): requested value is not set
5705
5706 /^(?P<A>a)(?P<A>b)|cd(?P<A>ef)(?P<A>gh)/I,dupnames
5707 Capturing subpattern count = 4
5708 Named capturing subpatterns:
5709 A 1
5710 A 2
5711 A 3
5712 A 4
5713 Options: dupnames
5714 Subject length lower bound = 2
5715 cdefgh\=copy=A
5716 0: cdefgh
5717 1: <unset>
5718 2: <unset>
5719 3: ef
5720 4: gh
5721 C ef (2) A (non-unique)
5722
5723 /^((?P<A>a1)|(?P<A>a2)b)/I,dupnames
5724 Capturing subpattern count = 3
5725 Named capturing subpatterns:
5726 A 2
5727 A 3
5728 Compile options: dupnames
5729 Overall options: anchored dupnames
5730 Subject length lower bound = 2
5731 a1b\=get=A
5732 0: a1
5733 1: a1
5734 2: a1
5735 G a1 (2) A (non-unique)
5736 a2b\=get=A
5737 0: a2b
5738 1: a2b
5739 2: <unset>
5740 3: a2
5741 G a2 (2) A (non-unique)
5742 a1b\=get=Z,get=A
5743 0: a1
5744 1: a1
5745 2: a1
5746 Number not found for group 'Z'
5747 Get substring 'Z' failed (-49): unknown substring
5748 G a1 (2) A (non-unique)
5749
5750 /^(?P<A>a)(?P<A>b)/I,dupnames
5751 Capturing subpattern count = 2
5752 Named capturing subpatterns:
5753 A 1
5754 A 2
5755 Compile options: dupnames
5756 Overall options: anchored dupnames
5757 Subject length lower bound = 2
5758 ab\=get=A
5759 0: ab
5760 1: a
5761 2: b
5762 G a (1) A (non-unique)
5763
5764 /^(?P<A>a)(?P<A>b)|cd/I,dupnames
5765 Capturing subpattern count = 2
5766 Named capturing subpatterns:
5767 A 1
5768 A 2
5769 Options: dupnames
5770 Subject length lower bound = 2
5771 ab\=get=A
5772 0: ab
5773 1: a
5774 2: b
5775 G a (1) A (non-unique)
5776 cd\=get=A
5777 0: cd
5778 Get substring 'A' failed (-55): requested value is not set
5779
5780 /^(?P<A>a)(?P<A>b)|cd(?P<A>ef)(?P<A>gh)/I,dupnames
5781 Capturing subpattern count = 4
5782 Named capturing subpatterns:
5783 A 1
5784 A 2
5785 A 3
5786 A 4
5787 Options: dupnames
5788 Subject length lower bound = 2
5789 cdefgh\=get=A
5790 0: cdefgh
5791 1: <unset>
5792 2: <unset>
5793 3: ef
5794 4: gh
5795 G ef (2) A (non-unique)
5796
5797 /(?J)^((?P<A>a1)|(?P<A>a2)b)/I
5798 Capturing subpattern count = 3
5799 Named capturing subpatterns:
5800 A 2
5801 A 3
5802 Compile options: <none>
5803 Overall options: anchored
5804 Duplicate name status changes
5805 Subject length lower bound = 2
5806 a1b\=copy=A
5807 0: a1
5808 1: a1
5809 2: a1
5810 C a1 (2) A (non-unique)
5811 a2b\=copy=A
5812 0: a2b
5813 1: a2b
5814 2: <unset>
5815 3: a2
5816 C a2 (2) A (non-unique)
5817
5818 /^(?P<A>a) (?J:(?P<B>b)(?P<B>c)) (?P<A>d)/I
5819 Failed: error 143 at offset 38: two named subpatterns have the same name (PCRE2_DUPNAMES not set)
5820
5821 # In this next test, J is not set at the outer level; consequently it isn't set
5822 # in the pattern's options; consequently pcre2_substring_get_byname() produces
5823 # a random value.
5824
5825 /^(?P<A>a) (?J:(?P<B>b)(?P<B>c)) (?P<C>d)/I
5826 Capturing subpattern count = 4
5827 Named capturing subpatterns:
5828 A 1
5829 B 2
5830 B 3
5831 C 4
5832 Compile options: <none>
5833 Overall options: anchored
5834 Duplicate name status changes
5835 Subject length lower bound = 6
5836 a bc d\=copy=A,copy=B,copy=C
5837 0: a bc d
5838 1: a
5839 2: b
5840 3: c
5841 4: d
5842 C a (1) A (group 1)
5843 C b (1) B (non-unique)
5844 C d (1) C (group 4)
5845
5846 /^(?P<A>a)?(?(A)a|b)/I
5847 Capturing subpattern count = 1
5848 Max back reference = 1
5849 Named capturing subpatterns:
5850 A 1
5851 Compile options: <none>
5852 Overall options: anchored
5853 Subject length lower bound = 1
5854 aabc
5855 0: aa
5856 1: a
5857 bc
5858 0: b
5859 \= Expect no match
5860 abc
5861 No match
5862
5863 /(?:(?(ZZ)a|b)(?P<ZZ>X))+/I
5864 Capturing subpattern count = 1
5865 Max back reference = 1
5866 Named capturing subpatterns:
5867 ZZ 1
5868 Last code unit = 'X'
5869 Subject length lower bound = 2
5870 bXaX
5871 0: bXaX
5872 1: X
5873
5874 /(?:(?(2y)a|b)(X))+/I
5875 Failed: error 124 at offset 7: missing closing parenthesis for condition
5876
5877 /(?:(?(ZA)a|b)(?P<ZZ>X))+/I
5878 Failed: error 115 at offset 6: reference to non-existent subpattern
5879
5880 /(?:(?(ZZ)a|b)(?(ZZ)a|b)(?P<ZZ>X))+/I
5881 Capturing subpattern count = 1
5882 Max back reference = 1
5883 Named capturing subpatterns:
5884 ZZ 1
5885 Last code unit = 'X'
5886 Subject length lower bound = 3
5887 bbXaaX
5888 0: bbXaaX
5889 1: X
5890
5891 /(?:(?(ZZ)a|\(b\))\\(?P<ZZ>X))+/I
5892 Capturing subpattern count = 1
5893 Max back reference = 1
5894 Named capturing subpatterns:
5895 ZZ 1
5896 Last code unit = 'X'
5897 Subject length lower bound = 3
5898 (b)\\Xa\\X
5899 0: (b)\Xa\X
5900 1: X
5901
5902 /(?P<ABC/I
5903 Failed: error 142 at offset 7: syntax error in subpattern name (missing terminator)
5904
5905 /(?:(?(A)(?P=A)a|b)(?P<A>X|Y))+/I
5906 Capturing subpattern count = 1
5907 Max back reference = 1
5908 Named capturing subpatterns:
5909 A 1
5910 Subject length lower bound = 2
5911 bXXaYYaY
5912 0: bXXaYYaY
5913 1: Y
5914 bXYaXXaX
5915 0: bX
5916 1: X
5917
5918 /()()()()()()()()()(?:(?(A)(?P=A)a|b)(?P<A>X|Y))+/I
5919 Capturing subpattern count = 10
5920 Max back reference = 10
5921 Named capturing subpatterns:
5922 A 10
5923 Subject length lower bound = 2
5924 bXXaYYaY
5925 0: bXXaYYaY
5926 1:
5927 2:
5928 3:
5929 4:
5930 5:
5931 6:
5932 7:
5933 8:
5934 9:
5935 10: Y
5936
5937 /\s*,\s*/I
5938 Capturing subpattern count = 0
5939 Starting code units: \x09 \x0a \x0b \x0c \x0d \x20 ,
5940 Last code unit = ','
5941 Subject length lower bound = 1
5942 \x0b,\x0b
5943 0: \x0b,\x0b
5944 \x0c,\x0d
5945 0: \x0c,\x0d
5946
5947 /^abc/Im,newline=lf
5948 Capturing subpattern count = 0
5949 Options: multiline
5950 Forced newline is LF
5951 First code unit at start or follows newline
5952 Last code unit = 'c'
5953 Subject length lower bound = 3
5954 xyz\nabc
5955 0: abc
5956 xyz\r\nabc
5957 0: abc
5958 \= Expect no match
5959 xyz\rabc
5960 No match
5961 xyzabc\r
5962 No match
5963 xyzabc\rpqr
5964 No match
5965 xyzabc\r\n
5966 No match
5967 xyzabc\r\npqr
5968 No match
5969
5970 /^abc/Im,newline=crlf
5971 Capturing subpattern count = 0
5972 Options: multiline
5973 Forced newline is CRLF
5974 First code unit at start or follows newline
5975 Last code unit = 'c'
5976 Subject length lower bound = 3
5977 xyz\r\nabclf>
5978 0: abc
5979 \= Expect no match
5980 xyz\nabclf
5981 No match
5982 xyz\rabclf
5983 No match
5984
5985 /^abc/Im,newline=cr
5986 Capturing subpattern count = 0
5987 Options: multiline
5988 Forced newline is CR
5989 First code unit at start or follows newline
5990 Last code unit = 'c'
5991 Subject length lower bound = 3
5992 xyz\rabc
5993 0: abc
5994 \= Expect no match
5995 xyz\nabc
5996 No match
5997 xyz\r\nabc
5998 No match
5999
6000 /^abc/Im,newline=bad
6001 ** Invalid value in 'newline=bad'
6002
6003 /.*/I,newline=lf
6004 Capturing subpattern count = 0
6005 May match empty string
6006 Forced newline is LF
6007 First code unit at start or follows newline
6008 Subject length lower bound = 0
6009 abc\ndef
6010 0: abc
6011 abc\rdef
6012 0: abc\x0ddef
6013 abc\r\ndef
6014 0: abc\x0d
6015
6016 /.*/I,newline=cr
6017 Capturing subpattern count = 0
6018 May match empty string
6019 Forced newline is CR
6020 First code unit at start or follows newline
6021 Subject length lower bound = 0
6022 abc\ndef
6023 0: abc\x0adef
6024 abc\rdef
6025 0: abc
6026 abc\r\ndef
6027 0: abc
6028
6029 /.*/I,newline=crlf
6030 Capturing subpattern count = 0
6031 May match empty string
6032 Forced newline is CRLF
6033 First code unit at start or follows newline
6034 Subject length lower bound = 0
6035 abc\ndef
6036 0: abc\x0adef
6037 abc\rdef
6038 0: abc\x0ddef
6039 abc\r\ndef
6040 0: abc
6041
6042 /\w+(.)(.)?def/Is
6043 Capturing subpattern count = 2
6044 Options: dotall
6045 Starting code units: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P
6046 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
6047 Last code unit = 'f'
6048 Subject length lower bound = 5
6049 abc\ndef
6050 0: abc\x0adef
6051 1: \x0a
6052 abc\rdef
6053 0: abc\x0ddef
6054 1: \x0d
6055 abc\r\ndef
6056 0: abc\x0d\x0adef
6057 1: \x0d
6058 2: \x0a
6059
6060 /(?P<B>25[0-5]|2[0-4]\d|[01]?\d?\d)(?:\.(?P>B)){3}/I
6061 Capturing subpattern count = 1
6062 Named capturing subpatterns:
6063 B 1
6064 Starting code units: 0 1 2 3 4 5 6 7 8 9
6065 Last code unit = '.'
6066 Subject length lower bound = 7
6067
6068 /()()()()()()()()()()()()()()()()()()()()
6069 ()()()()()()()()()()()()()()()()()()()()
6070 ()()()()()()()()()()()()()()()()()()()()
6071 ()()()()()()()()()()()()()()()()()()()()
6072 ()()()()()()()()()()()()()()()()()()()()
6073 (.(.))/Ix
6074 Capturing subpattern count = 102
6075 Options: extended
6076 Subject length lower bound = 2
6077 XY\=ovector=133
6078 0: XY
6079 1:
6080 2:
6081 3:
6082 4:
6083 5:
6084 6:
6085 7:
6086 8:
6087 9:
6088 10:
6089 11:
6090 12:
6091 13:
6092 14:
6093 15:
6094 16:
6095 17:
6096 18:
6097 19:
6098 20:
6099 21:
6100 22:
6101 23:
6102 24:
6103 25:
6104 26:
6105 27:
6106 28:
6107 29:
6108 30:
6109 31:
6110 32:
6111 33:
6112 34:
6113 35:
6114 36:
6115 37:
6116 38:
6117 39:
6118 40:
6119 41:
6120 42:
6121 43:
6122 44:
6123 45:
6124 46:
6125 47:
6126 48:
6127 49:
6128 50:
6129 51:
6130 52:
6131 53:
6132 54:
6133 55:
6134 56:
6135 57:
6136 58:
6137 59:
6138 60:
6139 61:
6140 62:
6141 63:
6142 64:
6143 65:
6144 66:
6145 67:
6146 68:
6147 69:
6148 70:
6149 71:
6150 72:
6151 73:
6152 74:
6153 75:
6154 76:
6155 77:
6156 78:
6157 79:
6158 80:
6159 81:
6160 82:
6161 83:
6162 84:
6163 85:
6164 86:
6165 87:
6166 88:
6167 89:
6168 90:
6169 91:
6170 92:
6171 93:
6172 94:
6173 95:
6174 96:
6175 97:
6176 98:
6177 99:
6178 100:
6179 101: XY
6180 102: Y
6181
6182 /(a*b|(?i:c*(?-i)d))/I
6183 Capturing subpattern count = 1
6184 Starting code units: C a b c d
6185 Subject length lower bound = 1
6186
6187 /()[ab]xyz/I
6188 Capturing subpattern count = 1
6189 Starting code units: a b
6190 Last code unit = 'z'
6191 Subject length lower bound = 4
6192
6193 /(|)[ab]xyz/I
6194 Capturing subpattern count = 1
6195 Starting code units: a b
6196 Last code unit = 'z'
6197 Subject length lower bound = 4
6198
6199 /(|c)[ab]xyz/I
6200 Capturing subpattern count = 1
6201 Starting code units: a b c
6202 Last code unit = 'z'
6203 Subject length lower bound = 4
6204
6205 /(|c?)[ab]xyz/I
6206 Capturing subpattern count = 1
6207 Starting code units: a b c
6208 Last code unit = 'z'
6209 Subject length lower bound = 4
6210
6211 /(d?|c?)[ab]xyz/I
6212 Capturing subpattern count = 1
6213 Starting code units: a b c d
6214 Last code unit = 'z'
6215 Subject length lower bound = 4
6216
6217 /(d?|c)[ab]xyz/I
6218 Capturing subpattern count = 1
6219 Starting code units: a b c d
6220 Last code unit = 'z'
6221 Subject length lower bound = 4
6222
6223 /^a*b\d/IB
6224 ------------------------------------------------------------------
6225 Bra
6226 ^
6227 a*+
6228 b
6229 \d
6230 Ket
6231 End
6232 ------------------------------------------------------------------
6233 Capturing subpattern count = 0
6234 Compile options: <none>
6235 Overall options: anchored
6236 Last code unit = 'b'
6237 Subject length lower bound = 2
6238
6239 /^a*+b\d/IB
6240 ------------------------------------------------------------------
6241 Bra
6242 ^
6243 a*+
6244 b
6245 \d
6246 Ket
6247 End
6248 ------------------------------------------------------------------
6249 Capturing subpattern count = 0
6250 Compile options: <none>
6251 Overall options: anchored
6252 Last code unit = 'b'
6253 Subject length lower bound = 2
6254
6255 /^a*?b\d/IB
6256 ------------------------------------------------------------------
6257 Bra
6258 ^
6259 a*+
6260 b
6261 \d
6262 Ket
6263 End
6264 ------------------------------------------------------------------
6265 Capturing subpattern count = 0
6266 Compile options: <none>
6267 Overall options: anchored
6268 Last code unit = 'b'
6269 Subject length lower bound = 2
6270
6271 /^a+A\d/IB
6272 ------------------------------------------------------------------
6273 Bra
6274 ^
6275 a++
6276 A
6277 \d
6278 Ket
6279 End
6280 ------------------------------------------------------------------
6281 Capturing subpattern count = 0
6282 Compile options: <none>
6283 Overall options: anchored
6284 Last code unit = 'A'
6285 Subject length lower bound = 3
6286 aaaA5
6287 0: aaaA5
6288 \= Expect no match
6289 aaaa5
6290 No match
6291
6292 /^a*A\d/IBi
6293 ------------------------------------------------------------------
6294 Bra
6295 ^
6296 /i a*
6297 /i A
6298 \d
6299 Ket
6300 End
6301 ------------------------------------------------------------------
6302 Capturing subpattern count = 0
6303 Compile options: caseless
6304 Overall options: anchored caseless
6305 Last code unit = 'A' (caseless)
6306 Subject length lower bound = 2
6307 aaaA5
6308 0: aaaA5
6309 aaaa5
6310 0: aaaa5
6311
6312 /(a*|b*)[cd]/I
6313 Capturing subpattern count = 1
6314 Starting code units: a b c d
6315 Subject length lower bound = 1
6316
6317 /(a+|b*)[cd]/I
6318 Capturing subpattern count = 1
6319 Starting code units: a b c d
6320 Subject length lower bound = 1
6321
6322 /(a*|b+)[cd]/I
6323 Capturing subpattern count = 1
6324 Starting code units: a b c d
6325 Subject length lower bound = 1
6326
6327 /(a+|b+)[cd]/I
6328 Capturing subpattern count = 1
6329 Starting code units: a b
6330 Subject length lower bound = 2
6331
6332 /((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
6333 ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
6334 (((
6335 a
6336 ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
6337 ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
6338 )))
6339 /Ix
6340 Capturing subpattern count = 203
6341 Options: extended
6342 First code unit = 'a'
6343 Subject length lower bound = 1
6344 large nest
6345 Matched, but too many substrings
6346 0: a
6347 1: a
6348 2: a
6349 3: a
6350 4: a
6351 5: a
6352 6: a
6353 7: a
6354 8: a
6355 9: a
6356 10: a
6357 11: a
6358 12: a
6359 13: a
6360 14: a
6361
6362 /a*\d/B
6363 ------------------------------------------------------------------
6364 Bra
6365 a*+
6366 \d
6367 Ket
6368 End
6369 ------------------------------------------------------------------
6370
6371 /a*\D/B
6372 ------------------------------------------------------------------
6373 Bra
6374 a*
6375 \D
6376 Ket
6377 End
6378 ------------------------------------------------------------------
6379
6380 /0*\d/B
6381 ------------------------------------------------------------------
6382 Bra
6383 0*
6384 \d
6385 Ket
6386 End
6387 ------------------------------------------------------------------
6388
6389 /0*\D/B
6390 ------------------------------------------------------------------
6391 Bra
6392 0*+
6393 \D
6394 Ket
6395 End
6396 ------------------------------------------------------------------
6397
6398 /a*\s/B
6399 ------------------------------------------------------------------
6400 Bra
6401 a*+
6402 \s
6403 Ket
6404 End
6405 ------------------------------------------------------------------
6406
6407 /a*\S/B
6408 ------------------------------------------------------------------
6409 Bra
6410 a*
6411 \S
6412 Ket
6413 End
6414 ------------------------------------------------------------------
6415
6416 / *\s/B
6417 ------------------------------------------------------------------
6418 Bra
6419 *
6420 \s
6421 Ket
6422 End
6423 ------------------------------------------------------------------
6424
6425 / *\S/B
6426 ------------------------------------------------------------------
6427 Bra
6428 *+
6429 \S
6430 Ket
6431 End
6432 ------------------------------------------------------------------
6433
6434 /a*\w/B
6435 ------------------------------------------------------------------
6436 Bra
6437 a*
6438 \w
6439 Ket
6440 End
6441 ------------------------------------------------------------------
6442
6443 /a*\W/B
6444 ------------------------------------------------------------------
6445 Bra
6446 a*+
6447 \W
6448 Ket
6449 End
6450 ------------------------------------------------------------------
6451
6452 /=*\w/B
6453 ------------------------------------------------------------------
6454 Bra
6455 =*+
6456 \w
6457 Ket
6458 End
6459 ------------------------------------------------------------------
6460
6461 /=*\W/B
6462 ------------------------------------------------------------------
6463 Bra
6464 =*
6465 \W
6466 Ket
6467 End
6468 ------------------------------------------------------------------
6469
6470 /\d*a/B
6471 ------------------------------------------------------------------
6472 Bra
6473 \d*+
6474 a
6475 Ket
6476 End
6477 ------------------------------------------------------------------
6478
6479 /\d*2/B
6480 ------------------------------------------------------------------
6481 Bra
6482 \d*
6483 2
6484 Ket
6485 End
6486 ------------------------------------------------------------------
6487
6488 /\d*\d/B
6489 ------------------------------------------------------------------
6490 Bra
6491 \d*
6492 \d
6493 Ket
6494 End
6495 ------------------------------------------------------------------
6496
6497 /\d*\D/B
6498 ------------------------------------------------------------------
6499 Bra
6500 \d*+
6501 \D
6502 Ket
6503 End
6504 ------------------------------------------------------------------
6505
6506 /\d*\s/B
6507 ------------------------------------------------------------------
6508 Bra
6509 \d*+
6510 \s
6511 Ket
6512 End
6513 ------------------------------------------------------------------
6514
6515 /\d*\S/B
6516 ------------------------------------------------------------------
6517 Bra
6518 \d*
6519 \S
6520 Ket
6521 End
6522 ------------------------------------------------------------------
6523
6524 /\d*\w/B
6525 ------------------------------------------------------------------
6526 Bra
6527 \d*
6528 \w
6529 Ket
6530 End
6531 ------------------------------------------------------------------
6532
6533 /\d*\W/B
6534 ------------------------------------------------------------------
6535 Bra
6536 \d*+
6537 \W
6538 Ket
6539 End
6540 ------------------------------------------------------------------
6541
6542 /\D*a/B
6543 ------------------------------------------------------------------
6544 Bra
6545 \D*
6546 a
6547 Ket
6548 End
6549 ------------------------------------------------------------------
6550
6551 /\D*2/B
6552 ------------------------------------------------------------------
6553 Bra
6554 \D*+
6555 2
6556 Ket
6557 End
6558 ------------------------------------------------------------------
6559
6560 /\D*\d/B
6561 ------------------------------------------------------------------
6562 Bra
6563 \D*+
6564 \d
6565 Ket
6566 End
6567 ------------------------------------------------------------------
6568
6569 /\D*\D/B
6570 ------------------------------------------------------------------
6571 Bra
6572 \D*
6573 \D
6574 Ket
6575 End
6576 ------------------------------------------------------------------
6577
6578 /\D*\s/B
6579 ------------------------------------------------------------------
6580 Bra
6581 \D*
6582 \s
6583 Ket
6584 End
6585 ------------------------------------------------------------------
6586
6587 /\D*\S/B
6588 ------------------------------------------------------------------
6589 Bra
6590 \D*
6591 \S
6592 Ket
6593 End
6594 ------------------------------------------------------------------
6595
6596 /\D*\w/B
6597 ------------------------------------------------------------------
6598 Bra
6599 \D*
6600 \w
6601 Ket
6602 End
6603 ------------------------------------------------------------------
6604
6605 /\D*\W/B
6606 ------------------------------------------------------------------
6607 Bra
6608 \D*
6609 \W
6610 Ket
6611 End
6612 ------------------------------------------------------------------
6613
6614 /\s*a/B
6615 ------------------------------------------------------------------
6616 Bra
6617 \s*+
6618 a
6619 Ket
6620 End
6621 ------------------------------------------------------------------
6622
6623 /\s*2/B
6624 ------------------------------------------------------------------
6625 Bra
6626 \s*+
6627 2
6628 Ket
6629 End
6630 ------------------------------------------------------------------
6631
6632 /\s*\d/B
6633 ------------------------------------------------------------------
6634 Bra
6635 \s*+
6636 \d
6637 Ket
6638 End
6639 ------------------------------------------------------------------
6640
6641 /\s*\D/B
6642 ------------------------------------------------------------------
6643 Bra
6644 \s*
6645 \D
6646 Ket
6647 End
6648 ------------------------------------------------------------------
6649
6650 /\s*\s/B
6651 ------------------------------------------------------------------
6652 Bra
6653 \s*
6654 \s
6655 Ket
6656 End
6657 ------------------------------------------------------------------
6658
6659 /\s*\S/B
6660 ------------------------------------------------------------------
6661 Bra
6662 \s*+
6663 \S
6664 Ket
6665 End
6666 ------------------------------------------------------------------
6667
6668 /\s*\w/B
6669 ------------------------------------------------------------------
6670 Bra
6671 \s*+
6672 \w
6673 Ket
6674 End
6675 ------------------------------------------------------------------
6676
6677 /\s*\W/B
6678 ------------------------------------------------------------------
6679 Bra
6680 \s*
6681 \W
6682 Ket
6683 End
6684 ------------------------------------------------------------------
6685
6686 /\S*a/B
6687 ------------------------------------------------------------------
6688 Bra
6689 \S*
6690 a
6691 Ket
6692 End
6693 ------------------------------------------------------------------
6694
6695 /\S*2/B
6696 ------------------------------------------------------------------
6697 Bra
6698 \S*
6699 2
6700 Ket
6701 End
6702 ------------------------------------------------------------------
6703
6704 /\S*\d/B
6705 ------------------------------------------------------------------
6706 Bra
6707 \S*
6708 \d
6709 Ket
6710 End
6711 ------------------------------------------------------------------
6712
6713 /\S*\D/B
6714 ------------------------------------------------------------------
6715 Bra
6716 \S*
6717 \D
6718 Ket
6719 End
6720 ------------------------------------------------------------------
6721
6722 /\S*\s/B
6723 ------------------------------------------------------------------
6724 Bra
6725 \S*+
6726 \s
6727 Ket
6728 End
6729 ------------------------------------------------------------------
6730
6731 /\S*\S/B
6732 ------------------------------------------------------------------
6733 Bra
6734 \S*
6735 \S
6736 Ket
6737 End
6738 ------------------------------------------------------------------
6739
6740 /\S*\w/B
6741 ------------------------------------------------------------------
6742 Bra
6743 \S*
6744 \w
6745 Ket
6746 End
6747 ------------------------------------------------------------------
6748
6749 /\S*\W/B
6750 ------------------------------------------------------------------
6751 Bra
6752 \S*
6753 \W
6754 Ket
6755 End
6756 ------------------------------------------------------------------
6757
6758 /\w*a/B
6759 ------------------------------------------------------------------
6760 Bra
6761 \w*
6762 a
6763 Ket
6764 End
6765 ------------------------------------------------------------------
6766
6767 /\w*2/B
6768 ------------------------------------------------------------------
6769 Bra
6770 \w*
6771 2
6772 Ket
6773 End
6774 ------------------------------------------------------------------
6775
6776 /\w*\d/B
6777 ------------------------------------------------------------------
6778 Bra
6779 \w*
6780 \d
6781 Ket
6782 End
6783 ------------------------------------------------------------------
6784
6785 /\w*\D/B
6786 ------------------------------------------------------------------
6787 Bra
6788 \w*
6789 \D
6790 Ket
6791 End
6792 ------------------------------------------------------------------
6793
6794 /\w*\s/B
6795 ------------------------------------------------------------------
6796 Bra
6797 \w*+
6798 \s
6799 Ket
6800 End
6801 ------------------------------------------------------------------
6802
6803 /\w*\S/B
6804 ------------------------------------------------------------------
6805 Bra
6806 \w*
6807 \S
6808 Ket
6809 End
6810 ------------------------------------------------------------------
6811
6812 /\w*\w/B
6813 ------------------------------------------------------------------
6814 Bra
6815 \w*
6816 \w
6817 Ket
6818 End
6819 ------------------------------------------------------------------
6820
6821 /\w*\W/B
6822 ------------------------------------------------------------------
6823 Bra
6824 \w*+
6825 \W
6826 Ket
6827 End
6828 ------------------------------------------------------------------
6829
6830 /\W*a/B
6831 ------------------------------------------------------------------
6832 Bra
6833 \W*+
6834 a
6835 Ket
6836 End
6837 ------------------------------------------------------------------
6838
6839 /\W*2/B
6840 ------------------------------------------------------------------
6841 Bra
6842 \W*+
6843 2
6844 Ket
6845 End
6846 ------------------------------------------------------------------
6847
6848 /\W*\d/B
6849 ------------------------------------------------------------------
6850 Bra
6851 \W*+
6852 \d
6853 Ket
6854 End
6855 ------------------------------------------------------------------
6856
6857 /\W*\D/B
6858 ------------------------------------------------------------------
6859 Bra
6860 \W*
6861 \D
6862 Ket
6863 End
6864 ------------------------------------------------------------------
6865
6866 /\W*\s/B
6867 ------------------------------------------------------------------
6868 Bra
6869 \W*
6870 \s
6871 Ket
6872 End
6873 ------------------------------------------------------------------
6874
6875 /\W*\S/B
6876 ------------------------------------------------------------------
6877 Bra
6878 \W*
6879 \S
6880 Ket
6881 End
6882 ------------------------------------------------------------------
6883
6884 /\W*\w/B
6885 ------------------------------------------------------------------
6886 Bra
6887 \W*+
6888 \w
6889 Ket
6890 End
6891 ------------------------------------------------------------------
6892
6893 /\W*\W/B
6894 ------------------------------------------------------------------
6895 Bra
6896 \W*
6897 \W
6898 Ket
6899 End
6900 ------------------------------------------------------------------
6901
6902 /[^a]+a/B
6903 ------------------------------------------------------------------
6904 Bra
6905 [^a]++
6906 a
6907 Ket
6908 End
6909 ------------------------------------------------------------------
6910
6911 /[^a]+a/Bi
6912 ------------------------------------------------------------------
6913 Bra
6914 /i [^a]++
6915 /i a
6916 Ket
6917 End
6918 ------------------------------------------------------------------
6919
6920 /[^a]+A/Bi
6921 ------------------------------------------------------------------
6922 Bra
6923 /i [^a]++
6924 /i A
6925 Ket
6926 End
6927 ------------------------------------------------------------------
6928
6929 /[^a]+b/B
6930 ------------------------------------------------------------------
6931 Bra
6932 [^a]+
6933 b
6934 Ket
6935 End
6936 ------------------------------------------------------------------
6937
6938 /[^a]+\d/B
6939 ------------------------------------------------------------------
6940 Bra
6941 [^a]+
6942 \d
6943 Ket
6944 End
6945 ------------------------------------------------------------------
6946
6947 /a*[^a]/B
6948 ------------------------------------------------------------------
6949 Bra
6950 a*+
6951 [^a]
6952 Ket
6953 End
6954 ------------------------------------------------------------------
6955
6956 /(?P<abc>x)(?P<xyz>y)/I
6957 Capturing subpattern count = 2
6958 Named capturing subpatterns:
6959 abc 1
6960 xyz 2
6961 First code unit = 'x'
6962 Last code unit = 'y'
6963 Subject length lower bound = 2
6964 xy\=copy=abc,copy=xyz
6965 0: xy
6966 1: x
6967 2: y
6968 C x (1) abc (group 1)
6969 C y (1) xyz (group 2)
6970
6971 /(?<abc>x)(?'xyz'y)/I
6972 Capturing subpattern count = 2
6973 Named capturing subpatterns:
6974 abc 1
6975 xyz 2
6976 First code unit = 'x'
6977 Last code unit = 'y'
6978 Subject length lower bound = 2
6979 xy\=copy=abc,copy=xyz
6980 0: xy
6981 1: x
6982 2: y
6983 C x (1) abc (group 1)
6984 C y (1) xyz (group 2)
6985
6986 /(?<abc'x)(?'xyz'y)/I
6987 Failed: error 142 at offset 6: syntax error in subpattern name (missing terminator)
6988
6989 /(?<abc>x)(?'xyz>y)/I
6990 Failed: error 142 at offset 15: syntax error in subpattern name (missing terminator)
6991
6992 /(?P'abc'x)(?P<xyz>y)/I
6993 Failed: error 141 at offset 3: unrecognized character after (?P
6994
6995 /^(?:(?(ZZ)a|b)(?<ZZ>X))+/
6996 bXaX
6997 0: bXaX
6998 1: X
6999 bXbX
7000 0: bX
7001 1: X
7002 \= Expect no match
7003 aXaX
7004 No match
7005 aXbX
7006 No match
7007
7008 /^(?P>abc)(?<abcd>xxx)/
7009 Failed: error 115 at offset 5: reference to non-existent subpattern
7010
7011 /^(?P>abc)(?<abc>x|y)/
7012 xx
7013 0: xx
7014 1: x
7015 xy
7016 0: xy
7017 1: y
7018 yy
7019 0: yy
7020 1: y
7021 yx
7022 0: yx
7023 1: x
7024
7025 /^(?P>abc)(?P<abc>x|y)/
7026 xx
7027 0: xx
7028 1: x
7029 xy
7030 0: xy
7031 1: y
7032 yy
7033 0: yy
7034 1: y
7035 yx
7036 0: yx
7037 1: x
7038
7039 /^((?(abc)a|b)(?<abc>x|y))+/
7040 bxay
7041 0: bxay
7042 1: ay
7043 2: y
7044 bxby
7045 0: bx
7046 1: bx
7047 2: x
7048 \= Expect no match
7049 axby
7050 No match
7051
7052 /^(((?P=abc)|X)(?<abc>x|y))+/
7053 XxXxxx
7054 0: XxXxxx
7055 1: xx
7056 2: x
7057 3: x
7058 XxXyyx
7059 0: XxXyyx
7060 1: yx
7061 2: y
7062 3: x
7063 XxXyxx
7064 0: XxXy
7065 1: Xy
7066 2: X
7067 3: y
7068 \= Expect no match
7069 x
7070 No match
7071
7072 /^(?1)(abc)/
7073 abcabc
7074 0: abcabc
7075 1: abc
7076
7077 /^(?:(?:\1|X)(a|b))+/
7078 Xaaa
7079 0: Xaaa
7080 1: a
7081 Xaba
7082 0: Xa
7083 1: a
7084
7085 /^[\E\Qa\E-\Qz\E]+/B
7086 ------------------------------------------------------------------
7087 Bra
7088 ^
7089 [a-z]++
7090 Ket
7091 End
7092 ------------------------------------------------------------------
7093
7094 /^[a\Q]bc\E]/B
7095 ------------------------------------------------------------------
7096 Bra
7097 ^
7098 [\]a-c]
7099 Ket
7100 End
7101 ------------------------------------------------------------------
7102
7103 /^[a-\Q\E]/B
7104 ------------------------------------------------------------------
7105 Bra
7106 ^
7107 [\-a]
7108 Ket
7109 End
7110 ------------------------------------------------------------------
7111
7112 /^(?P>abc)[()](?<abc>)/B
7113 ------------------------------------------------------------------
7114 Bra
7115 ^
7116 Recurse
7117 [()]
7118 CBra 1
7119 Ket
7120 Ket
7121 End
7122 ------------------------------------------------------------------
7123
7124 /^((?(abc)y)[()](?P<abc>x))+/B
7125 ------------------------------------------------------------------
7126 Bra
7127 ^
7128 CBra 1
7129 Cond
7130 2 Cond ref
7131 y
7132 Ket
7133 [()]
7134 CBra 2
7135 x
7136 Ket
7137 KetRmax
7138 Ket