/[pcre]/code/trunk/testdata/testinput2
ViewVC logotype

Contents of /code/trunk/testdata/testinput2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1380 - (show annotations)
Tue Oct 15 16:49:12 2013 UTC (8 years ago) by ph10
File size: 64700 byte(s)
Explicit possessive quantifiers now use the new opcodes. Fixed an infelicity 
with EXACT in caseless mode.
1 /-- This set of tests is not Perl-compatible. It checks on special features
2 of PCRE's API, error diagnostics, and the compiled code of some patterns.
3 It also checks the non-Perl syntax the PCRE supports (Python, .NET,
4 Oniguruma). Finally, there are some tests where PCRE and Perl differ,
5 either because PCRE can't be compatible, or there is a possible Perl
6 bug.
7
8 NOTE: This is a non-UTF set of tests. When UTF support is needed, use
9 test 5, and if Unicode Property Support is needed, use test 7. --/
10
11 /(a)b|/I
12
13 /abc/I
14 abc
15 defabc
16 \Aabc
17 *** Failers
18 \Adefabc
19 ABC
20
21 /^abc/I
22 abc
23 \Aabc
24 *** Failers
25 defabc
26 \Adefabc
27
28 /a+bc/I
29
30 /a*bc/I
31
32 /a{3}bc/I
33
34 /(abc|a+z)/I
35
36 /^abc$/I
37 abc
38 *** Failers
39 def\nabc
40
41 /ab\idef/X
42
43 /(?X)ab\idef/X
44
45 /x{5,4}/
46
47 /z{65536}/
48
49 /[abcd/
50
51 /(?X)[\B]/
52
53 /(?X)[\R]/
54
55 /(?X)[\X]/
56
57 /[\B]/BZ
58
59 /[\R]/BZ
60
61 /[\X]/BZ
62
63 /[z-a]/
64
65 /^*/
66
67 /(abc/
68
69 /(?# abc/
70
71 /(?z)abc/
72
73 /.*b/I
74
75 /.*?b/I
76
77 /cat|dog|elephant/I
78 this sentence eventually mentions a cat
79 this sentences rambles on and on for a while and then reaches elephant
80
81 /cat|dog|elephant/IS
82 this sentence eventually mentions a cat
83 this sentences rambles on and on for a while and then reaches elephant
84
85 /cat|dog|elephant/IiS
86 this sentence eventually mentions a CAT cat
87 this sentences rambles on and on for a while to elephant ElePhant
88
89 /a|[bcd]/IS
90
91 /(a|[^\dZ])/IS
92
93 /(a|b)*[\s]/IS
94
95 /(ab\2)/
96
97 /{4,5}abc/
98
99 /(a)(b)(c)\2/I
100 abcb
101 \O0abcb
102 \O3abcb
103 \O6abcb
104 \O9abcb
105 \O12abcb
106
107 /(a)bc|(a)(b)\2/I
108 abc
109 \O0abc
110 \O3abc
111 \O6abc
112 aba
113 \O0aba
114 \O3aba
115 \O6aba
116 \O9aba
117 \O12aba
118
119 /abc$/IE
120 abc
121 *** Failers
122 abc\n
123 abc\ndef
124
125 /(a)(b)(c)(d)(e)\6/
126
127 /the quick brown fox/I
128 the quick brown fox
129 this is a line with the quick brown fox
130
131 /the quick brown fox/IA
132 the quick brown fox
133 *** Failers
134 this is a line with the quick brown fox
135
136 /ab(?z)cd/
137
138 /^abc|def/I
139 abcdef
140 abcdef\B
141
142 /.*((abc)$|(def))/I
143 defabc
144 \Zdefabc
145
146 /)/
147
148 /a[]b/
149
150 /[^aeiou ]{3,}/I
151 co-processors, and for
152
153 /<.*>/I
154 abc<def>ghi<klm>nop
155
156 /<.*?>/I
157 abc<def>ghi<klm>nop
158
159 /<.*>/IU
160 abc<def>ghi<klm>nop
161
162 /(?U)<.*>/I
163 abc<def>ghi<klm>nop
164
165 /<.*?>/IU
166 abc<def>ghi<klm>nop
167
168 /={3,}/IU
169 abc========def
170
171 /(?U)={3,}?/I
172 abc========def
173
174 /(?<!bar|cattle)foo/I
175 foo
176 catfoo
177 *** Failers
178 the barfoo
179 and cattlefoo
180
181 /(?<=a+)b/
182
183 /(?<=aaa|b{0,3})b/
184
185 /(?<!(foo)a\1)bar/
186
187 /(?i)abc/I
188
189 /(a|(?m)a)/I
190
191 /(?i)^1234/I
192
193 /(^b|(?i)^d)/I
194
195 /(?s).*/I
196
197 /[abcd]/IS
198
199 /(?i)[abcd]/IS
200
201 /(?m)[xy]|(b|c)/IS
202
203 /(^a|^b)/Im
204
205 /(?i)(^a|^b)/Im
206
207 /(a)(?(1)a|b|c)/
208
209 /(?(?=a)a|b|c)/
210
211 /(?(1a)/
212
213 /(?(1a))/
214
215 /(?(?i))/
216
217 /(?(abc))/
218
219 /(?(?<ab))/
220
221 /((?s)blah)\s+\1/I
222
223 /((?i)blah)\s+\1/I
224
225 /((?i)b)/IDZS
226
227 /(a*b|(?i:c*(?-i)d))/IS
228
229 /a$/I
230 a
231 a\n
232 *** Failers
233 \Za
234 \Za\n
235
236 /a$/Im
237 a
238 a\n
239 \Za\n
240 *** Failers
241 \Za
242
243 /\Aabc/Im
244
245 /^abc/Im
246
247 /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/I
248 aaaaabbbbbcccccdef
249
250 /(?<=foo)[ab]/IS
251
252 /(?<!foo)(alpha|omega)/IS
253
254 /(?!alphabet)[ab]/IS
255
256 /(?<=foo\n)^bar/Im
257 foo\nbarbar
258 ***Failers
259 rhubarb
260 barbell
261 abc\nbarton
262
263 /^(?<=foo\n)bar/Im
264 foo\nbarbar
265 ***Failers
266 rhubarb
267 barbell
268 abc\nbarton
269
270 /(?>^abc)/Im
271 abc
272 def\nabc
273 *** Failers
274 defabc
275
276 /(?<=ab(c+)d)ef/
277
278 /(?<=ab(?<=c+)d)ef/
279
280 /(?<=ab(c|de)f)g/
281
282 /The next three are in testinput2 because they have variable length branches/
283
284 /(?<=bullock|donkey)-cart/I
285 the bullock-cart
286 a donkey-cart race
287 *** Failers
288 cart
289 horse-and-cart
290
291 /(?<=ab(?i)x|y|z)/I
292
293 /(?>.*)(?<=(abcd)|(xyz))/I
294 alphabetabcd
295 endingxyz
296
297 /(?<=ab(?i)x(?-i)y|(?i)z|b)ZZ/I
298 abxyZZ
299 abXyZZ
300 ZZZ
301 zZZ
302 bZZ
303 BZZ
304 *** Failers
305 ZZ
306 abXYZZ
307 zzz
308 bzz
309
310 /(?<!(foo)a)bar/I
311 bar
312 foobbar
313 *** Failers
314 fooabar
315
316 /This one is here because Perl behaves differently; see also the following/I
317
318 /^(a\1?){4}$/I
319 aaaa
320 aaaaaa
321
322 /Perl does not fail these two for the final subjects. Neither did PCRE until/
323 /release 8.01. The problem is in backtracking into a subpattern that contains/
324 /a recursive reference to itself. PCRE has now made these into atomic patterns./
325
326 /^(xa|=?\1a){2}$/
327 xa=xaa
328 ** Failers
329 xa=xaaa
330
331 /^(xa|=?\1a)+$/
332 xa=xaa
333 ** Failers
334 xa=xaaa
335
336 /These are syntax tests from Perl 5.005/I
337
338 /a[b-a]/
339
340 /a[]b/
341
342 /a[/
343
344 /*a/
345
346 /(*)b/
347
348 /abc)/
349
350 /(abc/
351
352 /a**/
353
354 /)(/
355
356 /\1/
357
358 /\2/
359
360 /(a)|\2/
361
362 /a[b-a]/Ii
363
364 /a[]b/Ii
365
366 /a[/Ii
367
368 /*a/Ii
369
370 /(*)b/Ii
371
372 /abc)/Ii
373
374 /(abc/Ii
375
376 /a**/Ii
377
378 /)(/Ii
379
380 /:(?:/
381
382 /(?<%)b/
383
384 /a(?{)b/
385
386 /a(?{{})b/
387
388 /a(?{}})b/
389
390 /a(?{"{"})b/
391
392 /a(?{"{"}})b/
393
394 /(?(1?)a|b)/
395
396 /[a[:xyz:/
397
398 /(?<=x+)y/
399
400 /a{37,17}/
401
402 /abc/\
403
404 /abc/\i
405
406 /(a)bc(d)/I
407 abcd
408 abcd\C2
409 abcd\C5
410
411 /(.{20})/I
412 abcdefghijklmnopqrstuvwxyz
413 abcdefghijklmnopqrstuvwxyz\C1
414 abcdefghijklmnopqrstuvwxyz\G1
415
416 /(.{15})/I
417 abcdefghijklmnopqrstuvwxyz
418 abcdefghijklmnopqrstuvwxyz\C1\G1
419
420 /(.{16})/I
421 abcdefghijklmnopqrstuvwxyz
422 abcdefghijklmnopqrstuvwxyz\C1\G1\L
423
424 /^(a|(bc))de(f)/I
425 adef\G1\G2\G3\G4\L
426 bcdef\G1\G2\G3\G4\L
427 adefghijk\C0
428
429 /^abc\00def/I
430 abc\00def\L\C0
431
432 /word ((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
433 )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
434 )?)?)?)?)?)?)?)?)?otherword/I
435
436 /.*X/IDZ
437
438 /.*X/IDZs
439
440 /(.*X|^B)/IDZ
441
442 /(.*X|^B)/IDZs
443
444 /(?s)(.*X|^B)/IDZ
445
446 /(?s:.*X|^B)/IDZ
447
448 /\Biss\B/I+
449 Mississippi
450
451 /iss/IG+
452 Mississippi
453
454 /\Biss\B/IG+
455 Mississippi
456
457 /\Biss\B/Ig+
458 Mississippi
459 *** Failers
460 Mississippi\A
461
462 /(?<=[Ms])iss/Ig+
463 Mississippi
464
465 /(?<=[Ms])iss/IG+
466 Mississippi
467
468 /^iss/Ig+
469 ississippi
470
471 /.*iss/Ig+
472 abciss\nxyzisspqr
473
474 /.i./I+g
475 Mississippi
476 Mississippi\A
477 Missouri river
478 Missouri river\A
479
480 /^.is/I+g
481 Mississippi
482
483 /^ab\n/Ig+
484 ab\nab\ncd
485
486 /^ab\n/Img+
487 ab\nab\ncd
488
489 /abc/I
490
491 /abc|bac/I
492
493 /(abc|bac)/I
494
495 /(abc|(c|dc))/I
496
497 /(abc|(d|de)c)/I
498
499 /a*/I
500
501 /a+/I
502
503 /(baa|a+)/I
504
505 /a{0,3}/I
506
507 /baa{3,}/I
508
509 /"([^\\"]+|\\.)*"/I
510
511 /(abc|ab[cd])/I
512
513 /(a|.)/I
514
515 /a|ba|\w/I
516
517 /abc(?=pqr)/I
518
519 /...(?<=abc)/I
520
521 /abc(?!pqr)/I
522
523 /ab./I
524
525 /ab[xyz]/I
526
527 /abc*/I
528
529 /ab.c*/I
530
531 /a.c*/I
532
533 /.c*/I
534
535 /ac*/I
536
537 /(a.c*|b.c*)/I
538
539 /a.c*|aba/I
540
541 /.+a/I
542
543 /(?=abcda)a.*/I
544
545 /(?=a)a.*/I
546
547 /a(b)*/I
548
549 /a\d*/I
550
551 /ab\d*/I
552
553 /a(\d)*/I
554
555 /abcde{0,0}/I
556
557 /ab\d+/I
558
559 /a(?(1)b)(.)/I
560
561 /a(?(1)bag|big)(.)/I
562
563 /a(?(1)bag|big)*(.)/I
564
565 /a(?(1)bag|big)+(.)/I
566
567 /a(?(1)b..|b..)(.)/I
568
569 /ab\d{0}e/I
570
571 /a?b?/I
572 a
573 b
574 ab
575 \
576 *** Failers
577 \N
578
579 /|-/I
580 abcd
581 -abc
582 \Nab-c
583 *** Failers
584 \Nabc
585
586 /^.?abcd/IS
587
588 /\( # ( at start
589 (?: # Non-capturing bracket
590 (?>[^()]+) # Either a sequence of non-brackets (no backtracking)
591 | # Or
592 (?R) # Recurse - i.e. nested bracketed string
593 )* # Zero or more contents
594 \) # Closing )
595 /Ix
596 (abcd)
597 (abcd)xyz
598 xyz(abcd)
599 (ab(xy)cd)pqr
600 (ab(xycd)pqr
601 () abc ()
602 12(abcde(fsh)xyz(foo(bar))lmno)89
603 *** Failers
604 abcd
605 abcd)
606 (abcd
607
608 /\( ( (?>[^()]+) | (?R) )* \) /Ixg
609 (ab(xy)cd)pqr
610 1(abcd)(x(y)z)pqr
611
612 /\( (?: (?>[^()]+) | (?R) ) \) /Ix
613 (abcd)
614 (ab(xy)cd)
615 (a(b(c)d)e)
616 ((ab))
617 *** Failers
618 ()
619
620 /\( (?: (?>[^()]+) | (?R) )? \) /Ix
621 ()
622 12(abcde(fsh)xyz(foo(bar))lmno)89
623
624 /\( ( (?>[^()]+) | (?R) )* \) /Ix
625 (ab(xy)cd)
626
627 /\( ( ( (?>[^()]+) | (?R) )* ) \) /Ix
628 (ab(xy)cd)
629
630 /\( (123)? ( ( (?>[^()]+) | (?R) )* ) \) /Ix
631 (ab(xy)cd)
632 (123ab(xy)cd)
633
634 /\( ( (123)? ( (?>[^()]+) | (?R) )* ) \) /Ix
635 (ab(xy)cd)
636 (123ab(xy)cd)
637
638 /\( (((((((((( ( (?>[^()]+) | (?R) )* )))))))))) \) /Ix
639 (ab(xy)cd)
640
641 /\( ( ( (?>[^()<>]+) | ((?>[^()]+)) | (?R) )* ) \) /Ix
642 (abcd(xyz<p>qrs)123)
643
644 /\( ( ( (?>[^()]+) | ((?R)) )* ) \) /Ix
645 (ab(cd)ef)
646 (ab(cd(ef)gh)ij)
647
648 /^[[:alnum:]]/DZ
649
650 /^[[:^alnum:]]/DZ
651
652 /^[[:alpha:]]/DZ
653
654 /^[[:^alpha:]]/DZ
655
656 /[_[:alpha:]]/IS
657
658 /^[[:ascii:]]/DZ
659
660 /^[[:^ascii:]]/DZ
661
662 /^[[:blank:]]/DZ
663
664 /^[[:^blank:]]/DZ
665
666 /[\n\x0b\x0c\x0d[:blank:]]/IS
667
668 /^[[:cntrl:]]/DZ
669
670 /^[[:digit:]]/DZ
671
672 /^[[:graph:]]/DZ
673
674 /^[[:lower:]]/DZ
675
676 /^[[:print:]]/DZ
677
678 /^[[:punct:]]/DZ
679
680 /^[[:space:]]/DZ
681
682 /^[[:upper:]]/DZ
683
684 /^[[:xdigit:]]/DZ
685
686 /^[[:word:]]/DZ
687
688 /^[[:^cntrl:]]/DZ
689
690 /^[12[:^digit:]]/DZ
691
692 /^[[:^blank:]]/DZ
693
694 /[01[:alpha:]%]/DZ
695
696 /[[.ch.]]/I
697
698 /[[=ch=]]/I
699
700 /[[:rhubarb:]]/I
701
702 /[[:upper:]]/Ii
703 A
704 a
705
706 /[[:lower:]]/Ii
707 A
708 a
709
710 /((?-i)[[:lower:]])[[:lower:]]/Ii
711 ab
712 aB
713 *** Failers
714 Ab
715 AB
716
717 /[\200-\110]/I
718
719 /^(?(0)f|b)oo/I
720
721 /This one's here because of the large output vector needed/I
722
723 /(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))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(\w+)\s+(\270)/I
724 \O900 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
725
726 /This one's here because Perl does this differently and PCRE can't at present/I
727
728 /(main(O)?)+/I
729 mainmain
730 mainOmain
731
732 /These are all cases where Perl does it differently (nested captures)/I
733
734 /^(a(b)?)+$/I
735 aba
736
737 /^(aa(bb)?)+$/I
738 aabbaa
739
740 /^(aa|aa(bb))+$/I
741 aabbaa
742
743 /^(aa(bb)??)+$/I
744 aabbaa
745
746 /^(?:aa(bb)?)+$/I
747 aabbaa
748
749 /^(aa(b(b))?)+$/I
750 aabbaa
751
752 /^(?:aa(b(b))?)+$/I
753 aabbaa
754
755 /^(?:aa(b(?:b))?)+$/I
756 aabbaa
757
758 /^(?:aa(bb(?:b))?)+$/I
759 aabbbaa
760
761 /^(?:aa(b(?:bb))?)+$/I
762 aabbbaa
763
764 /^(?:aa(?:b(b))?)+$/I
765 aabbaa
766
767 /^(?:aa(?:b(bb))?)+$/I
768 aabbbaa
769
770 /^(aa(b(bb))?)+$/I
771 aabbbaa
772
773 /^(aa(bb(bb))?)+$/I
774 aabbbbaa
775
776 /--------------------------------------------------------------------/I
777
778 /#/IxDZ
779
780 /a#/IxDZ
781
782 /[\s]/DZ
783
784 /[\S]/DZ
785
786 /a(?i)b/DZ
787 ab
788 aB
789 *** Failers
790 AB
791
792 /(a(?i)b)/DZ
793 ab
794 aB
795 *** Failers
796 AB
797
798 / (?i)abc/IxDZ
799
800 /#this is a comment
801 (?i)abc/IxDZ
802
803 /123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/DZ
804
805 /\Q123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/DZ
806
807 /\Q\E/DZ
808 \
809
810 /\Q\Ex/DZ
811
812 / \Q\E/DZ
813
814 /a\Q\E/DZ
815 abc
816 bca
817 bac
818
819 /a\Q\Eb/DZ
820 abc
821
822 /\Q\Eabc/DZ
823
824 /x*+\w/DZ
825 *** Failers
826 xxxxx
827
828 /x?+/DZ
829
830 /x++/DZ
831
832 /x{1,3}+/BZO
833
834 /x{1,3}+/BZOi
835
836 /[^x]{1,3}+/BZO
837
838 /[^x]{1,3}+/BZOi
839
840 /(x)*+/DZ
841
842 /^(\w++|\s++)*$/I
843 now is the time for all good men to come to the aid of the party
844 *** Failers
845 this is not a line with only words and spaces!
846
847 /(\d++)(\w)/I
848 12345a
849 *** Failers
850 12345+
851
852 /a++b/I
853 aaab
854
855 /(a++b)/I
856 aaab
857
858 /(a++)b/I
859 aaab
860
861 /([^()]++|\([^()]*\))+/I
862 ((abc(ade)ufh()()x
863
864 /\(([^()]++|\([^()]+\))+\)/I
865 (abc)
866 (abc(def)xyz)
867 *** Failers
868 ((()aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
869
870 /(abc){1,3}+/DZ
871
872 /a+?+/I
873
874 /a{2,3}?+b/I
875
876 /(?U)a+?+/I
877
878 /a{2,3}?+b/IU
879
880 /x(?U)a++b/DZ
881 xaaaab
882
883 /(?U)xa++b/DZ
884 xaaaab
885
886 /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/DZ
887
888 /^x(?U)a+b/DZ
889
890 /^x(?U)(a+)b/DZ
891
892 /[.x.]/I
893
894 /[=x=]/I
895
896 /[:x:]/I
897
898 /\l/I
899
900 /\L/I
901
902 /\N{name}/I
903
904 /\u/I
905
906 /\U/I
907
908 /[/I
909
910 /[a-/I
911
912 /[[:space:]/I
913
914 /[\s]/IDZ
915
916 /[[:space:]]/IDZ
917
918 /[[:space:]abcde]/IDZ
919
920 /< (?: (?(R) \d++ | [^<>]*+) | (?R)) * >/Ix
921 <>
922 <abcd>
923 <abc <123> hij>
924 <abc <def> hij>
925 <abc<>def>
926 <abc<>
927 *** Failers
928 <abc
929
930 |8J\$WE\<\.rX\+ix\[d1b\!H\#\?vV0vrK\:ZH1\=2M\>iV\;\?aPhFB\<\*vW\@QW\@sO9\}cfZA\-i\'w\%hKd6gt1UJP\,15_\#QY\$M\^Mss_U\/\]\&LK9\[5vQub\^w\[KDD\<EjmhUZ\?\.akp2dF\>qmj\;2\}YWFdYx\.Ap\]hjCPTP\(n28k\+3\;o\&WXqs\/gOXdr\$\:r\'do0\;b4c\(f_Gr\=\"\\4\)\[01T7ajQJvL\$W\~mL_sS\/4h\:x\*\[ZN\=KLs\&L5zX\/\/\>it\,o\:aU\(\;Z\>pW\&T7oP\'2K\^E\:x9\'c\[\%z\-\,64JQ5AeH_G\#KijUKghQw\^\\vea3a\?kka_G\$8\#\`\*kynsxzBLru\'\]k_\[7FrVx\}\^\=\$blx\>s\-N\%j\;D\*aZDnsw\:YKZ\%Q\.Kne9\#hP\?\+b3\(SOvL\,\^\;\&u5\@\?5C5Bhb\=m\-vEh_L15Jl\]U\)0RP6\{q\%L\^_z5E\'Dw6X\b|IDZ
931
932 |\$\<\.X\+ix\[d1b\!H\#\?vV0vrK\:ZH1\=2M\>iV\;\?aPhFB\<\*vW\@QW\@sO9\}cfZA\-i\'w\%hKd6gt1UJP\,15_\#QY\$M\^Mss_U\/\]\&LK9\[5vQub\^w\[KDD\<EjmhUZ\?\.akp2dF\>qmj\;2\}YWFdYx\.Ap\]hjCPTP\(n28k\+3\;o\&WXqs\/gOXdr\$\:r\'do0\;b4c\(f_Gr\=\"\\4\)\[01T7ajQJvL\$W\~mL_sS\/4h\:x\*\[ZN\=KLs\&L5zX\/\/\>it\,o\:aU\(\;Z\>pW\&T7oP\'2K\^E\:x9\'c\[\%z\-\,64JQ5AeH_G\#KijUKghQw\^\\vea3a\?kka_G\$8\#\`\*kynsxzBLru\'\]k_\[7FrVx\}\^\=\$blx\>s\-N\%j\;D\*aZDnsw\:YKZ\%Q\.Kne9\#hP\?\+b3\(SOvL\,\^\;\&u5\@\?5C5Bhb\=m\-vEh_L15Jl\]U\)0RP6\{q\%L\^_z5E\'Dw6X\b|IDZ
933
934 /(.*)\d+\1/I
935
936 /(.*)\d+/I
937
938 /(.*)\d+\1/Is
939
940 /(.*)\d+/Is
941
942 /(.*(xyz))\d+\2/I
943
944 /((.*))\d+\1/I
945 abc123bc
946
947 /a[b]/I
948
949 /(?=a).*/I
950
951 /(?=abc).xyz/IiI
952
953 /(?=abc)(?i).xyz/I
954
955 /(?=a)(?=b)/I
956
957 /(?=.)a/I
958
959 /((?=abcda)a)/I
960
961 /((?=abcda)ab)/I
962
963 /()a/I
964
965 /(?(1)ab|ac)(.)/I
966
967 /(?(1)abz|acz)(.)/I
968
969 /(?(1)abz)(.)/I
970
971 /(?(1)abz)(1)23/I
972
973 /(a)+/I
974
975 /(a){2,3}/I
976
977 /(a)*/I
978
979 /[a]/I
980
981 /[ab]/I
982
983 /[ab]/IS
984
985 /[^a]/I
986
987 /\d456/I
988
989 /\d456/IS
990
991 /a^b/I
992
993 /^a/Im
994 abcde
995 xy\nabc
996 *** Failers
997 xyabc
998
999 /c|abc/I
1000
1001 /(?i)[ab]/IS
1002
1003 /[ab](?i)cd/IS
1004
1005 /abc(?C)def/I
1006 abcdef
1007 1234abcdef
1008 *** Failers
1009 abcxyz
1010 abcxyzf
1011
1012 /abc(?C)de(?C1)f/I
1013 123abcdef
1014
1015 /(?C1)\dabc(?C2)def/IS
1016 1234abcdef
1017 *** Failers
1018 abcdef
1019
1020 /(?C1)\dabc(?C2)def/ISS
1021 1234abcdef
1022 *** Failers
1023 abcdef
1024
1025 /(?C255)ab/I
1026
1027 /(?C256)ab/I
1028
1029 /(?Cab)xx/I
1030
1031 /(?C12vr)x/I
1032
1033 /abc(?C)def/I
1034 *** Failers
1035 \x83\x0\x61bcdef
1036
1037 /(abc)(?C)de(?C1)f/I
1038 123abcdef
1039 123abcdef\C+
1040 123abcdef\C-
1041 *** Failers
1042 123abcdef\C!1
1043
1044 /(?C0)(abc(?C1))*/I
1045 abcabcabc
1046 abcabc\C!1!3
1047 *** Failers
1048 abcabcabc\C!1!3
1049
1050 /(\d{3}(?C))*/I
1051 123\C+
1052 123456\C+
1053 123456789\C+
1054
1055 /((xyz)(?C)p|(?C1)xyzabc)/I
1056 xyzabc\C+
1057
1058 /(X)((xyz)(?C)p|(?C1)xyzabc)/I
1059 Xxyzabc\C+
1060
1061 /(?=(abc))(?C)abcdef/I
1062 abcdef\C+
1063
1064 /(?!(abc)(?C1)d)(?C2)abcxyz/I
1065 abcxyz\C+
1066
1067 /(?<=(abc)(?C))xyz/I
1068 abcxyz\C+
1069
1070 /a(b+)(c*)(?C1)/I
1071 abbbbbccc\C*1
1072
1073 /a(b+?)(c*?)(?C1)/I
1074 abbbbbccc\C*1
1075
1076 /(?C)abc/I
1077
1078 /(?C)^abc/I
1079
1080 /(?C)a|b/IS
1081
1082 /(?R)/I
1083
1084 /(a|(?R))/I
1085
1086 /(ab|(bc|(de|(?R))))/I
1087
1088 /x(ab|(bc|(de|(?R))))/I
1089 xab
1090 xbc
1091 xde
1092 xxab
1093 xxxab
1094 *** Failers
1095 xyab
1096
1097 /(ab|(bc|(de|(?1))))/I
1098
1099 /x(ab|(bc|(de|(?1)x)x)x)/I
1100
1101 /^([^()]|\((?1)*\))*$/I
1102 abc
1103 a(b)c
1104 a(b(c))d
1105 *** Failers)
1106 a(b(c)d
1107
1108 /^>abc>([^()]|\((?1)*\))*<xyz<$/I
1109 >abc>123<xyz<
1110 >abc>1(2)3<xyz<
1111 >abc>(1(2)3)<xyz<
1112
1113 /(a(?1)b)/DZ
1114
1115 /(a(?1)+b)/DZ
1116
1117 /^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/I
1118 12
1119 (((2+2)*-3)-7)
1120 -12
1121 *** Failers
1122 ((2+2)*-3)-7)
1123
1124 /^(x(y|(?1){2})z)/I
1125 xyz
1126 xxyzxyzz
1127 *** Failers
1128 xxyzz
1129 xxyzxyzxyzz
1130
1131 /((< (?: (?(R) \d++ | [^<>]*+) | (?2)) * >))/Ix
1132 <>
1133 <abcd>
1134 <abc <123> hij>
1135 <abc <def> hij>
1136 <abc<>def>
1137 <abc<>
1138 *** Failers
1139 <abc
1140
1141 /(?1)/I
1142
1143 /((?2)(abc)/I
1144
1145 /^(abc)def(?1)/I
1146 abcdefabc
1147
1148 /^(a|b|c)=(?1)+/I
1149 a=a
1150 a=b
1151 a=bc
1152
1153 /^(a|b|c)=((?1))+/I
1154 a=a
1155 a=b
1156 a=bc
1157
1158 /a(?P<name1>b|c)d(?P<longername2>e)/DZ
1159 abde
1160 acde
1161
1162 /(?:a(?P<c>c(?P<d>d)))(?P<a>a)/DZ
1163
1164 /(?P<a>a)...(?P=a)bbb(?P>a)d/DZ
1165
1166 /^\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
1167 1221
1168 Satan, oscillate my metallic sonatas!
1169 A man, a plan, a canal: Panama!
1170 Able was I ere I saw Elba.
1171 *** Failers
1172 The quick brown fox
1173
1174 /((?(R)a|b))\1(?1)?/I
1175 bb
1176 bbaa
1177
1178 /(.*)a/Is
1179
1180 /(.*)a\1/Is
1181
1182 /(.*)a(b)\2/Is
1183
1184 /((.*)a|(.*)b)z/Is
1185
1186 /((.*)a|(.*)b)z\1/Is
1187
1188 /((.*)a|(.*)b)z\2/Is
1189
1190 /((.*)a|(.*)b)z\3/Is
1191
1192 /((.*)a|^(.*)b)z\3/Is
1193
1194 /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a/Is
1195
1196 /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\31/Is
1197
1198 /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\32/Is
1199
1200 /(a)(bc)/INDZ
1201 abc
1202
1203 /(?P<one>a)(bc)/INDZ
1204 abc
1205
1206 /(a)(?P<named>bc)/INDZ
1207
1208 /(a+)*zz/I
1209 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazzbbbbbb\M
1210 aaaaaaaaaaaaaz\M
1211
1212 /(aaa(?C1)bbb|ab)/I
1213 aaabbb
1214 aaabbb\C*0
1215 aaabbb\C*1
1216 aaabbb\C*-1
1217
1218 /ab(?P<one>cd)ef(?P<two>gh)/I
1219 abcdefgh
1220 abcdefgh\C1\Gtwo
1221 abcdefgh\Cone\Ctwo
1222 abcdefgh\Cthree
1223
1224 /(?P<Tes>)(?P<Test>)/DZ
1225
1226 /(?P<Test>)(?P<Tes>)/DZ
1227
1228 /(?P<Z>zz)(?P<A>aa)/I
1229 zzaa\CZ
1230 zzaa\CA
1231
1232 /(?P<x>eks)(?P<x>eccs)/I
1233
1234 /(?P<abc>abc(?P<def>def)(?P<abc>xyz))/I
1235
1236 "\[((?P<elem>\d+)(,(?P>elem))*)\]"I
1237 [10,20,30,5,5,4,4,2,43,23,4234]
1238 *** Failers
1239 []
1240
1241 "\[((?P<elem>\d+)(,(?P>elem))*)?\]"I
1242 [10,20,30,5,5,4,4,2,43,23,4234]
1243 []
1244
1245 /(a(b(?2)c))?/DZ
1246
1247 /(a(b(?2)c))*/DZ
1248
1249 /(a(b(?2)c)){0,2}/DZ
1250
1251 /[ab]{1}+/DZ
1252
1253 /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/Ii
1254 Baby Bjorn Active Carrier - With free SHIPPING!!
1255
1256 /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/IiS
1257 Baby Bjorn Active Carrier - With free SHIPPING!!
1258
1259 /a*.*b/ISDZ
1260
1261 /(a|b)*.?c/ISDZ
1262
1263 /abc(?C255)de(?C)f/DZ
1264
1265 /abcde/ICDZ
1266 abcde
1267 abcdfe
1268
1269 /a*b/ICDZS
1270 ab
1271 aaaab
1272 aaaacb
1273
1274 /a*b/ICDZSS
1275 ab
1276 aaaab
1277 aaaacb
1278
1279 /a+b/ICDZ
1280 ab
1281 aaaab
1282 aaaacb
1283
1284 /(abc|def)x/ICDZS
1285 abcx
1286 defx
1287 ** Failers
1288 abcdefzx
1289
1290 /(abc|def)x/ICDZSS
1291 abcx
1292 defx
1293 ** Failers
1294 abcdefzx
1295
1296 /(ab|cd){3,4}/IC
1297 ababab
1298 abcdabcd
1299 abcdcdcdcdcd
1300
1301 /([ab]{,4}c|xy)/ICDZS
1302 Note: that { does NOT introduce a quantifier
1303
1304 /([ab]{,4}c|xy)/ICDZSS
1305 Note: that { does NOT introduce a quantifier
1306
1307 /([ab]{1,4}c|xy){4,5}?123/ICDZ
1308 aacaacaacaacaac123
1309
1310 /\b.*/I
1311 ab cd\>1
1312
1313 /\b.*/Is
1314 ab cd\>1
1315
1316 /(?!.bcd).*/I
1317 Xbcd12345
1318
1319 /abcde/I
1320 ab\P
1321 abc\P
1322 abcd\P
1323 abcde\P
1324 the quick brown abc\P
1325 ** Failers\P
1326 the quick brown abxyz fox\P
1327
1328 "^(0?[1-9]|[12][0-9]|3[01])/(0?[1-9]|1[012])/(20)?\d\d$"I
1329 13/05/04\P
1330 13/5/2004\P
1331 02/05/09\P
1332 1\P
1333 1/2\P
1334 1/2/0\P
1335 1/2/04\P
1336 0\P
1337 02/\P
1338 02/0\P
1339 02/1\P
1340 ** Failers\P
1341 \P
1342 123\P
1343 33/4/04\P
1344 3/13/04\P
1345 0/1/2003\P
1346 0/\P
1347 02/0/\P
1348 02/13\P
1349
1350 /0{0,2}ABC/I
1351
1352 /\d{3,}ABC/I
1353
1354 /\d*ABC/I
1355
1356 /[abc]+DE/I
1357
1358 /[abc]?123/I
1359 123\P
1360 a\P
1361 b\P
1362 c\P
1363 c12\P
1364 c123\P
1365
1366 /^(?:\d){3,5}X/I
1367 1\P
1368 123\P
1369 123X
1370 1234\P
1371 1234X
1372 12345\P
1373 12345X
1374 *** Failers
1375 1X
1376 123456\P
1377
1378 /abc/IS>testsavedregex
1379 <testsavedregex
1380 abc
1381 ** Failers
1382 bca
1383
1384 /abc/ISS>testsavedregex
1385 <testsavedregex
1386 abc
1387 ** Failers
1388 bca
1389
1390 /abc/IFS>testsavedregex
1391 <testsavedregex
1392 abc
1393 ** Failers
1394 bca
1395
1396 /abc/IFSS>testsavedregex
1397 <testsavedregex
1398 abc
1399 ** Failers
1400 bca
1401
1402 /(a|b)/IS>testsavedregex
1403 <testsavedregex
1404 abc
1405 ** Failers
1406 def
1407
1408 /(a|b)/ISS>testsavedregex
1409 <testsavedregex
1410 abc
1411 ** Failers
1412 def
1413
1414 /(a|b)/ISF>testsavedregex
1415 <testsavedregex
1416 abc
1417 ** Failers
1418 def
1419
1420 /(a|b)/ISSF>testsavedregex
1421 <testsavedregex
1422 abc
1423 ** Failers
1424 def
1425
1426 ~<(\w+)/?>(.)*</(\1)>~smgI
1427 \J1024<!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>
1428
1429 /^a/IF
1430
1431 /line\nbreak/I
1432 this is a line\nbreak
1433 line one\nthis is a line\nbreak in the second line
1434
1435 /line\nbreak/If
1436 this is a line\nbreak
1437 ** Failers
1438 line one\nthis is a line\nbreak in the second line
1439
1440 /line\nbreak/Imf
1441 this is a line\nbreak
1442 ** Failers
1443 line one\nthis is a line\nbreak in the second line
1444
1445 /(?i)(?-i)AbCd/I
1446 AbCd
1447 ** Failers
1448 abcd
1449
1450 /a{11111111111111111111}/I
1451
1452 /(){64294967295}/I
1453
1454 /(){2,4294967295}/I
1455
1456 "(?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
1457 abcdefghijklAkB
1458
1459 "(?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
1460 abcdefghijklAkB
1461
1462 "(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)A\11B"I
1463 abcdefghijklAkB
1464
1465 "(?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
1466 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1467
1468 "(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
1469 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1470
1471 /[^()]*(?:\((?R)\)[^()]*)*/I
1472 (this(and)that
1473 (this(and)that)
1474 (this(and)that)stuff
1475
1476 /[^()]*(?:\((?>(?R))\)[^()]*)*/I
1477 (this(and)that
1478 (this(and)that)
1479
1480 /[^()]*(?:\((?R)\))*[^()]*/I
1481 (this(and)that
1482 (this(and)that)
1483
1484 /(?:\((?R)\))*[^()]*/I
1485 (this(and)that
1486 (this(and)that)
1487 ((this))
1488
1489 /(?:\((?R)\))|[^()]*/I
1490 (this(and)that
1491 (this(and)that)
1492 (this)
1493 ((this))
1494
1495 /\x{0000ff}/I
1496
1497 /^((?P<A>a1)|(?P<A>a2)b)/I
1498
1499 /^((?P<A>a1)|(?P<A>a2)b)/IJ
1500 a1b\CA
1501 a2b\CA
1502 ** Failers
1503 a1b\CZ\CA
1504
1505 /(?|(?<a>)(?<b>)(?<a>)|(?<a>)(?<b>)(?<a>))/IJ
1506
1507 /^(?P<A>a)(?P<A>b)/IJ
1508 ab\CA
1509
1510 /^(?P<A>a)(?P<A>b)|cd/IJ
1511 ab\CA
1512 cd\CA
1513
1514 /^(?P<A>a)(?P<A>b)|cd(?P<A>ef)(?P<A>gh)/IJ
1515 cdefgh\CA
1516
1517 /^((?P<A>a1)|(?P<A>a2)b)/IJ
1518 a1b\GA
1519 a2b\GA
1520 ** Failers
1521 a1b\GZ\GA
1522
1523 /^(?P<A>a)(?P<A>b)/IJ
1524 ab\GA
1525
1526 /^(?P<A>a)(?P<A>b)|cd/IJ
1527 ab\GA
1528 cd\GA
1529
1530 /^(?P<A>a)(?P<A>b)|cd(?P<A>ef)(?P<A>gh)/IJ
1531 cdefgh\GA
1532
1533 /(?J)^((?P<A>a1)|(?P<A>a2)b)/I
1534 a1b\CA
1535 a2b\CA
1536
1537 /^(?P<A>a) (?J:(?P<B>b)(?P<B>c)) (?P<A>d)/I
1538
1539 / In this next test, J is not set at the outer level; consequently it isn't
1540 set in the pattern's options; consequently pcre_get_named_substring() produces
1541 a random value. /Ix
1542
1543 /^(?P<A>a) (?J:(?P<B>b)(?P<B>c)) (?P<C>d)/I
1544 a bc d\CA\CB\CC
1545
1546 /^(?P<A>a)?(?(A)a|b)/I
1547 aabc
1548 bc
1549 ** Failers
1550 abc
1551
1552 /(?:(?(ZZ)a|b)(?P<ZZ>X))+/I
1553 bXaX
1554
1555 /(?:(?(2y)a|b)(X))+/I
1556
1557 /(?:(?(ZA)a|b)(?P<ZZ>X))+/I
1558
1559 /(?:(?(ZZ)a|b)(?(ZZ)a|b)(?P<ZZ>X))+/I
1560 bbXaaX
1561
1562 /(?:(?(ZZ)a|\(b\))\\(?P<ZZ>X))+/I
1563 (b)\\Xa\\X
1564
1565 /(?P<ABC/I
1566
1567 /(?:(?(A)(?P=A)a|b)(?P<A>X|Y))+/I
1568 bXXaYYaY
1569 bXYaXXaX
1570
1571 /()()()()()()()()()(?:(?(A)(?P=A)a|b)(?P<A>X|Y))+/I
1572 bXXaYYaY
1573
1574 /\s*,\s*/IS
1575 \x0b,\x0b
1576 \x0c,\x0d
1577
1578 /^abc/Im
1579 xyz\nabc
1580 xyz\nabc\<lf>
1581 xyz\r\nabc\<lf>
1582 xyz\rabc\<cr>
1583 xyz\r\nabc\<crlf>
1584 ** Failers
1585 xyz\nabc\<cr>
1586 xyz\r\nabc\<cr>
1587 xyz\nabc\<crlf>
1588 xyz\rabc\<crlf>
1589 xyz\rabc\<lf>
1590
1591 /abc$/Im<lf>
1592 xyzabc
1593 xyzabc\n
1594 xyzabc\npqr
1595 xyzabc\r\<cr>
1596 xyzabc\rpqr\<cr>
1597 xyzabc\r\n\<crlf>
1598 xyzabc\r\npqr\<crlf>
1599 ** Failers
1600 xyzabc\r
1601 xyzabc\rpqr
1602 xyzabc\r\n
1603 xyzabc\r\npqr
1604
1605 /^abc/Im<cr>
1606 xyz\rabcdef
1607 xyz\nabcdef\<lf>
1608 ** Failers
1609 xyz\nabcdef
1610
1611 /^abc/Im<lf>
1612 xyz\nabcdef
1613 xyz\rabcdef\<cr>
1614 ** Failers
1615 xyz\rabcdef
1616
1617 /^abc/Im<crlf>
1618 xyz\r\nabcdef
1619 xyz\rabcdef\<cr>
1620 ** Failers
1621 xyz\rabcdef
1622
1623 /^abc/Im<bad>
1624
1625 /abc/I
1626 xyz\rabc\<bad>
1627 abc
1628
1629 /.*/I<lf>
1630 abc\ndef
1631 abc\rdef
1632 abc\r\ndef
1633 \<cr>abc\ndef
1634 \<cr>abc\rdef
1635 \<cr>abc\r\ndef
1636 \<crlf>abc\ndef
1637 \<crlf>abc\rdef
1638 \<crlf>abc\r\ndef
1639
1640 /\w+(.)(.)?def/Is
1641 abc\ndef
1642 abc\rdef
1643 abc\r\ndef
1644
1645 +((?:\s|//.*\\n|/[*](?:\\n|.)*?[*]/)*)+I
1646 /* this is a C style comment */\M
1647
1648 /(?P<B>25[0-5]|2[0-4]\d|[01]?\d?\d)(?:\.(?P>B)){3}/I
1649
1650 /()()()()()()()()()()()()()()()()()()()()
1651 ()()()()()()()()()()()()()()()()()()()()
1652 ()()()()()()()()()()()()()()()()()()()()
1653 ()()()()()()()()()()()()()()()()()()()()
1654 ()()()()()()()()()()()()()()()()()()()()
1655 (.(.))/Ix
1656 XY\O400
1657
1658 /(a*b|(?i:c*(?-i)d))/IS
1659
1660 /()[ab]xyz/IS
1661
1662 /(|)[ab]xyz/IS
1663
1664 /(|c)[ab]xyz/IS
1665
1666 /(|c?)[ab]xyz/IS
1667
1668 /(d?|c?)[ab]xyz/IS
1669
1670 /(d?|c)[ab]xyz/IS
1671
1672 /^a*b\d/DZ
1673
1674 /^a*+b\d/DZ
1675
1676 /^a*?b\d/DZ
1677
1678 /^a+A\d/DZ
1679 aaaA5
1680 ** Failers
1681 aaaa5
1682
1683 /^a*A\d/IiDZ
1684 aaaA5
1685 aaaa5
1686
1687 /(a*|b*)[cd]/IS
1688
1689 /(a+|b*)[cd]/IS
1690
1691 /(a*|b+)[cd]/IS
1692
1693 /(a+|b+)[cd]/IS
1694
1695 /((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
1696 ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
1697 (((
1698 a
1699 ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
1700 ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
1701 )))
1702 /Ix
1703 large nest
1704
1705 /a*\d/BZ
1706
1707 /a*\D/BZ
1708
1709 /0*\d/BZ
1710
1711 /0*\D/BZ
1712
1713 /a*\s/BZ
1714
1715 /a*\S/BZ
1716
1717 / *\s/BZ
1718
1719 / *\S/BZ
1720
1721 /a*\w/BZ
1722
1723 /a*\W/BZ
1724
1725 /=*\w/BZ
1726
1727 /=*\W/BZ
1728
1729 /\d*a/BZ
1730
1731 /\d*2/BZ
1732
1733 /\d*\d/BZ
1734
1735 /\d*\D/BZ
1736
1737 /\d*\s/BZ
1738
1739 /\d*\S/BZ
1740
1741 /\d*\w/BZ
1742
1743 /\d*\W/BZ
1744
1745 /\D*a/BZ
1746
1747 /\D*2/BZ
1748
1749 /\D*\d/BZ
1750
1751 /\D*\D/BZ
1752
1753 /\D*\s/BZ
1754
1755 /\D*\S/BZ
1756
1757 /\D*\w/BZ
1758
1759 /\D*\W/BZ
1760
1761 /\s*a/BZ
1762
1763 /\s*2/BZ
1764
1765 /\s*\d/BZ
1766
1767 /\s*\D/BZ
1768
1769 /\s*\s/BZ
1770
1771 /\s*\S/BZ
1772
1773 /\s*\w/BZ
1774
1775 /\s*\W/BZ
1776
1777 /\S*a/BZ
1778
1779 /\S*2/BZ
1780
1781 /\S*\d/BZ
1782
1783 /\S*\D/BZ
1784
1785 /\S*\s/BZ
1786
1787 /\S*\S/BZ
1788
1789 /\S*\w/BZ
1790
1791 /\S*\W/BZ
1792
1793 /\w*a/BZ
1794
1795 /\w*2/BZ
1796
1797 /\w*\d/BZ
1798
1799 /\w*\D/BZ
1800
1801 /\w*\s/BZ
1802
1803 /\w*\S/BZ
1804
1805 /\w*\w/BZ
1806
1807 /\w*\W/BZ
1808
1809 /\W*a/BZ
1810
1811 /\W*2/BZ
1812
1813 /\W*\d/BZ
1814
1815 /\W*\D/BZ
1816
1817 /\W*\s/BZ
1818
1819 /\W*\S/BZ
1820
1821 /\W*\w/BZ
1822
1823 /\W*\W/BZ
1824
1825 /[^a]+a/BZ
1826
1827 /[^a]+a/BZi
1828
1829 /[^a]+A/BZi
1830
1831 /[^a]+b/BZ
1832
1833 /[^a]+\d/BZ
1834
1835 /a*[^a]/BZ
1836
1837 /(?P<abc>x)(?P<xyz>y)/I
1838 xy\Cabc\Cxyz
1839
1840 /(?<abc>x)(?'xyz'y)/I
1841 xy\Cabc\Cxyz
1842
1843 /(?<abc'x)(?'xyz'y)/I
1844
1845 /(?<abc>x)(?'xyz>y)/I
1846
1847 /(?P'abc'x)(?P<xyz>y)/I
1848
1849 /^(?:(?(ZZ)a|b)(?<ZZ>X))+/
1850 bXaX
1851 bXbX
1852 ** Failers
1853 aXaX
1854 aXbX
1855
1856 /^(?P>abc)(?<abcd>xxx)/
1857
1858 /^(?P>abc)(?<abc>x|y)/
1859 xx
1860 xy
1861 yy
1862 yx
1863
1864 /^(?P>abc)(?P<abc>x|y)/
1865 xx
1866 xy
1867 yy
1868 yx
1869
1870 /^((?(abc)a|b)(?<abc>x|y))+/
1871 bxay
1872 bxby
1873 ** Failers
1874 axby
1875
1876 /^(((?P=abc)|X)(?<abc>x|y))+/
1877 XxXxxx
1878 XxXyyx
1879 XxXyxx
1880 ** Failers
1881 x
1882
1883 /^(?1)(abc)/
1884 abcabc
1885
1886 /^(?:(?:\1|X)(a|b))+/
1887 Xaaa
1888 Xaba
1889
1890 /^[\E\Qa\E-\Qz\E]+/BZ
1891
1892 /^[a\Q]bc\E]/BZ
1893
1894 /^[a-\Q\E]/BZ
1895
1896 /^(?P>abc)[()](?<abc>)/BZ
1897
1898 /^((?(abc)y)[()](?P<abc>x))+/BZ
1899 (xy)x
1900
1901 /^(?P>abc)\Q()\E(?<abc>)/BZ
1902
1903 /^(?P>abc)[a\Q(]\E(](?<abc>)/BZ
1904
1905 /^(?P>abc) # this is (a comment)
1906 (?<abc>)/BZx
1907
1908 /^\W*(?:(?<one>(?<two>.)\W*(?&one)\W*\k<two>|)|(?<three>(?<four>.)\W*(?&three)\W*\k'four'|\W*.\W*))\W*$/Ii
1909 1221
1910 Satan, oscillate my metallic sonatas!
1911 A man, a plan, a canal: Panama!
1912 Able was I ere I saw Elba.
1913 *** Failers
1914 The quick brown fox
1915
1916 /(?=(\w+))\1:/I
1917 abcd:
1918
1919 /(?=(?'abc'\w+))\k<abc>:/I
1920 abcd:
1921
1922 /(?'abc'a|b)(?<abc>d|e)\k<abc>{2}/J
1923 adaa
1924 ** Failers
1925 addd
1926 adbb
1927
1928 /(?'abc'a|b)(?<abc>d|e)(?&abc){2}/J
1929 bdaa
1930 bdab
1931 ** Failers
1932 bddd
1933
1934 /(?(<bc))/
1935
1936 /(?(''))/
1937
1938 /(?('R')stuff)/
1939
1940 /((abc (?(R) (?(R1)1) (?(R2)2) X | (?1) (?2) (?R) ))) /x
1941 abcabc1Xabc2XabcXabcabc
1942
1943 /(?<A> (?'B' abc (?(R) (?(R&A)1) (?(R&B)2) X | (?1) (?2) (?R) ))) /x
1944 abcabc1Xabc2XabcXabcabc
1945
1946 /(?<A> (?'B' abc (?(R) (?(R&1)1) (?(R&B)2) X | (?1) (?2) (?R) ))) /x
1947
1948 /(?<1> (?'B' abc (?(R) (?(R&1)1) (?(R&B)2) X | (?1) (?2) (?R) ))) /x
1949 abcabc1Xabc2XabcXabcabc
1950
1951 /^(?(DEFINE) abc | xyz ) /x
1952
1953 /(?(DEFINE) abc) xyz/xI
1954
1955 /(a|)*\d/
1956 \O0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1957 \O0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa4
1958
1959 /^a.b/<lf>
1960 a\rb
1961 a\nb\<cr>
1962 a\x85b\<anycrlf>
1963 ** Failers
1964 a\nb
1965 a\nb\<any>
1966 a\rb\<cr>
1967 a\rb\<any>
1968 a\x85b\<any>
1969 a\rb\<anycrlf>
1970
1971 /^abc./mgx<any>
1972 abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x85abc7 JUNK
1973
1974 /abc.$/mgx<any>
1975 abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x85 abc7 abc9
1976
1977 /a/<cr><any>
1978
1979 /a/<any><crlf>
1980
1981 /^a\Rb/<bsr_unicode>
1982 a\nb
1983 a\rb
1984 a\r\nb
1985 a\x0bb
1986 a\x0cb
1987 a\x85b
1988 ** Failers
1989 a\n\rb
1990
1991 /^a\R*b/<bsr_unicode>
1992 ab
1993 a\nb
1994 a\rb
1995 a\r\nb
1996 a\x0bb
1997 a\x0cb
1998 a\x85b
1999 a\n\rb
2000 a\n\r\x85\x0cb
2001
2002 /^a\R+b/<bsr_unicode>
2003 a\nb
2004 a\rb
2005 a\r\nb
2006 a\x0bb
2007 a\x0cb
2008 a\x85b
2009 a\n\rb
2010 a\n\r\x85\x0cb
2011 ** Failers
2012 ab
2013
2014 /^a\R{1,3}b/<bsr_unicode>
2015 a\nb
2016 a\n\rb
2017 a\n\r\x85b
2018 a\r\n\r\nb
2019 a\r\n\r\n\r\nb
2020 a\n\r\n\rb
2021 a\n\n\r\nb
2022 ** Failers
2023 a\n\n\n\rb
2024 a\r
2025
2026 /^a[\R]b/<bsr_unicode>
2027 aRb
2028 ** Failers
2029 a\nb
2030
2031 /(?&abc)X(?<abc>P)/I
2032 abcPXP123
2033
2034 /(?1)X(?<abc>P)/I
2035 abcPXP123
2036
2037 /(?:a(?&abc)b)*(?<abc>x)/
2038 123axbaxbaxbx456
2039 123axbaxbaxb456
2040
2041 /(?:a(?&abc)b){1,5}(?<abc>x)/
2042 123axbaxbaxbx456
2043
2044 /(?:a(?&abc)b){2,5}(?<abc>x)/
2045 123axbaxbaxbx456
2046
2047 /(?:a(?&abc)b){2,}(?<abc>x)/
2048 123axbaxbaxbx456
2049
2050 /(abc)(?i:(?1))/
2051 defabcabcxyz
2052 DEFabcABCXYZ
2053
2054 /(abc)(?:(?i)(?1))/
2055 defabcabcxyz
2056 DEFabcABCXYZ
2057
2058 /^(a)\g-2/
2059
2060 /^(a)\g/
2061
2062 /^(a)\g{0}/
2063
2064 /^(a)\g{3/
2065
2066 /^(a)\g{4a}/
2067
2068 /^a.b/<lf>
2069 a\rb
2070 *** Failers
2071 a\nb
2072
2073 /.+foo/
2074 afoo
2075 ** Failers
2076 \r\nfoo
2077 \nfoo
2078
2079 /.+foo/<crlf>
2080 afoo
2081 \nfoo
2082 ** Failers
2083 \r\nfoo
2084
2085 /.+foo/<any>
2086 afoo
2087 ** Failers
2088 \nfoo
2089 \r\nfoo
2090
2091 /.+foo/s
2092 afoo
2093 \r\nfoo
2094 \nfoo
2095
2096 /^$/mg<any>
2097 abc\r\rxyz
2098 abc\n\rxyz
2099 ** Failers
2100 abc\r\nxyz
2101
2102 /(?m)^$/<any>g+
2103 abc\r\n\r\n
2104
2105 /(?m)^$|^\r\n/<any>g+
2106 abc\r\n\r\n
2107
2108 /(?m)$/<any>g+
2109 abc\r\n\r\n
2110
2111 /abc.$/mgx<anycrlf>
2112 abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x85 abc9
2113
2114 /^X/m
2115 XABC
2116 ** Failers
2117 XABC\B
2118
2119 /(ab|c)(?-1)/BZ
2120 abc
2121
2122 /xy(?+1)(abc)/BZ
2123 xyabcabc
2124 ** Failers
2125 xyabc
2126
2127 /x(?-0)y/
2128
2129 /x(?-1)y/
2130
2131 /x(?+0)y/
2132
2133 /x(?+1)y/
2134
2135 /^(abc)?(?(-1)X|Y)/BZ
2136 abcX
2137 Y
2138 ** Failers
2139 abcY
2140
2141 /^((?(+1)X|Y)(abc))+/BZ
2142 YabcXabc
2143 YabcXabcXabc
2144 ** Failers
2145 XabcXabc
2146
2147 /(?(-1)a)/BZ
2148
2149 /((?(-1)a))/BZ
2150
2151 /((?(-2)a))/BZ
2152
2153 /^(?(+1)X|Y)(.)/BZ
2154 Y!
2155
2156 /(?<A>tom|bon)-\k{A}/
2157 tom-tom
2158 bon-bon
2159 ** Failers
2160 tom-bon
2161
2162 /\g{A/
2163
2164 /(?|(abc)|(xyz))/BZ
2165 >abc<
2166 >xyz<
2167
2168 /(x)(?|(abc)|(xyz))(x)/BZ
2169 xabcx
2170 xxyzx
2171
2172 /(x)(?|(abc)(pqr)|(xyz))(x)/BZ
2173 xabcpqrx
2174 xxyzx
2175
2176 /\H++X/BZ
2177 ** Failers
2178 XXXX
2179
2180 /\H+\hY/BZ
2181 XXXX Y
2182
2183 /\H+ Y/BZ
2184
2185 /\h+A/BZ
2186
2187 /\v*B/BZ
2188
2189 /\V+\x0a/BZ
2190
2191 /A+\h/BZ
2192
2193 / *\H/BZ
2194
2195 /A*\v/BZ
2196
2197 /\x0b*\V/BZ
2198
2199 /\d+\h/BZ
2200
2201 /\d*\v/BZ
2202
2203 /S+\h\S+\v/BZ
2204
2205 /\w{3,}\h\w+\v/BZ
2206
2207 /\h+\d\h+\w\h+\S\h+\H/BZ
2208
2209 /\v+\d\v+\w\v+\S\v+\V/BZ
2210
2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AA/
2219
2220 /[\Q\E]AAA/
2221
2222 /[^\E]AAA/
2223
2224 /[^\Q\E]AAA/
2225
2226 /[\E^]AAA/
2227
2228 /[\Q\E^]AAA/
2229
2230 /A(*PRUNE)B(*SKIP)C(*THEN)D(*COMMIT)E(*F)F(*FAIL)G(?!)H(*ACCEPT)I/BZ
2231
2232 /^a+(*FAIL)/C
2233 aaaaaa
2234
2235 /a+b?c+(*FAIL)/C
2236 aaabccc
2237
2238 /a+b?(*PRUNE)c+(*FAIL)/C
2239 aaabccc
2240
2241 /a+b?(*COMMIT)c+(*FAIL)/C
2242 aaabccc
2243
2244 /a+b?(*SKIP)c+(*FAIL)/C
2245 aaabcccaaabccc
2246
2247 /a+b?(*THEN)c+(*FAIL)/C
2248 aaabccc
2249
2250 /a(*MARK)b/
2251
2252 /(?i:A{1,}\6666666666)/
2253
2254 /\g6666666666/
2255
2256 /[\g6666666666]/BZ
2257
2258 /(?1)\c[/
2259
2260 /.+A/<crlf>
2261 \r\nA
2262
2263 /\nA/<crlf>
2264 \r\nA
2265
2266 /[\r\n]A/<crlf>
2267 \r\nA
2268
2269 /(\r|\n)A/<crlf>
2270 \r\nA
2271
2272 /a(*CR)b/
2273
2274 /(*CR)a.b/
2275 a\nb
2276 ** Failers
2277 a\rb
2278
2279 /(*CR)a.b/<lf>
2280 a\nb
2281 ** Failers
2282 a\rb
2283
2284 /(*LF)a.b/<CRLF>
2285 a\rb
2286 ** Failers
2287 a\nb
2288
2289 /(*CRLF)a.b/
2290 a\rb
2291 a\nb
2292 ** Failers
2293 a\r\nb
2294
2295 /(*ANYCRLF)a.b/<CR>
2296 ** Failers
2297 a\rb
2298 a\nb
2299 a\r\nb
2300
2301 /(*ANY)a.b/<cr>
2302 ** Failers
2303 a\rb
2304 a\nb
2305 a\r\nb
2306 a\x85b
2307
2308 /(*ANY).*/g
2309 abc\r\ndef
2310
2311 /(*ANYCRLF).*/g
2312 abc\r\ndef
2313
2314 /(*CRLF).*/g
2315 abc\r\ndef
2316
2317 /a\Rb/I<bsr_anycrlf>
2318 a\rb
2319 a\nb
2320 a\r\nb
2321 ** Failers
2322 a\x85b
2323 a\x0bb
2324
2325 /a\Rb/I<bsr_unicode>
2326 a\rb
2327 a\nb
2328 a\r\nb
2329 a\x85b
2330 a\x0bb
2331 ** Failers
2332 a\x85b\<bsr_anycrlf>
2333 a\x0bb\<bsr_anycrlf>
2334
2335 /a\R?b/I<bsr_anycrlf>
2336 a\rb
2337 a\nb
2338 a\r\nb
2339 ** Failers
2340 a\x85b
2341 a\x0bb
2342
2343 /a\R?b/I<bsr_unicode>
2344 a\rb
2345 a\nb
2346 a\r\nb
2347 a\x85b
2348 a\x0bb
2349 ** Failers
2350 a\x85b\<bsr_anycrlf>
2351 a\x0bb\<bsr_anycrlf>
2352
2353 /a\R{2,4}b/I<bsr_anycrlf>
2354 a\r\n\nb
2355 a\n\r\rb
2356 a\r\n\r\n\r\n\r\nb
2357 ** Failers
2358 a\x85\85b
2359 a\x0b\0bb
2360
2361 /a\R{2,4}b/I<bsr_unicode>
2362 a\r\rb
2363 a\n\n\nb
2364 a\r\n\n\r\rb
2365 a\x85\85b
2366 a\x0b\0bb
2367 ** Failers
2368 a\r\r\r\r\rb
2369 a\x85\85b\<bsr_anycrlf>
2370 a\x0b\0bb\<bsr_anycrlf>
2371
2372 /(*BSR_ANYCRLF)a\Rb/I
2373 a\nb
2374 a\rb
2375
2376 /(*BSR_UNICODE)a\Rb/I
2377 a\x85b
2378
2379 /(*BSR_ANYCRLF)(*CRLF)a\Rb/I
2380 a\nb
2381 a\rb
2382
2383 /(*CRLF)(*BSR_UNICODE)a\Rb/I
2384 a\x85b
2385
2386 /(*CRLF)(*BSR_ANYCRLF)(*CR)ab/I
2387
2388 /(?<a>)(?&)/
2389
2390 /(?<abc>)(?&a)/
2391
2392 /(?<a>)(?&aaaaaaaaaaaaaaaaaaaaaaa)/
2393
2394 /(?+-a)/
2395
2396 /(?-+a)/
2397
2398 /(?(-1))/
2399
2400 /(?(+10))/
2401
2402 /(?(10))/
2403
2404 /(?(+2))()()/
2405
2406 /(?(2))()()/
2407
2408 /\k''/
2409
2410 /\k<>/
2411
2412 /\k{}/
2413
2414 /\k/
2415
2416 /\kabc/
2417
2418 /(?P=)/
2419
2420 /(?P>)/
2421
2422 /(?!\w)(?R)/
2423
2424 /(?=\w)(?R)/
2425
2426 /(?<!\w)(?R)/
2427
2428 /(?<=\w)(?R)/
2429
2430 /[[:foo:]]/
2431
2432 /[[:1234:]]/
2433
2434 /[[:f\oo:]]/
2435
2436 /[[: :]]/
2437
2438 /[[:...:]]/
2439
2440 /[[:l\ower:]]/
2441
2442 /[[:abc\:]]/
2443
2444 /[abc[:x\]pqr:]]/
2445
2446 /[[:a\dz:]]/
2447
2448 /(^(a|b\g<-1'c))/
2449
2450 /^(?+1)(?<a>x|y){0}z/
2451 xzxx
2452 yzyy
2453 ** Failers
2454 xxz
2455
2456 /(\3)(\1)(a)/
2457 cat
2458
2459 /(\3)(\1)(a)/<JS>
2460 cat
2461
2462 /TA]/
2463 The ACTA] comes
2464
2465 /TA]/<JS>
2466 The ACTA] comes
2467
2468 /(?2)[]a()b](abc)/
2469 abcbabc
2470
2471 /(?2)[^]a()b](abc)/
2472 abcbabc
2473
2474 /(?1)[]a()b](abc)/
2475 abcbabc
2476 ** Failers
2477 abcXabc
2478
2479 /(?1)[^]a()b](abc)/
2480 abcXabc
2481 ** Failers
2482 abcbabc
2483
2484 /(?2)[]a()b](abc)(xyz)/
2485 xyzbabcxyz
2486
2487 /(?&N)[]a(?<N>)](?<M>abc)/
2488 abc<abc
2489
2490 /(?&N)[]a(?<N>)](abc)/
2491 abc<abc
2492
2493 /a[]b/
2494
2495 /a[^]b/
2496
2497 /a[]b/<JS>
2498 ** Failers
2499 ab
2500
2501 /a[]+b/<JS>
2502 ** Failers
2503 ab
2504
2505 /a[]*+b/<JS>
2506 ** Failers
2507 ab
2508
2509 /a[^]b/<JS>
2510 aXb
2511 a\nb
2512 ** Failers
2513 ab
2514
2515 /a[^]+b/<JS>
2516 aXb
2517 a\nX\nXb
2518 ** Failers
2519 ab
2520
2521 /a(?!)+b/
2522
2523 /a(*FAIL)+b/
2524
2525 /(abc|pqr|123){0}[xyz]/SI
2526
2527 /(?(?=.*b)b|^)/CI
2528 adc
2529 abc
2530
2531 /(?(?=b).*b|^d)/I
2532
2533 /(?(?=.*b).*b|^d)/I
2534
2535 /xyz/C
2536 xyz
2537 abcxyz
2538 abcxyz\Y
2539 ** Failers
2540 abc
2541 abc\Y
2542 abcxypqr
2543 abcxypqr\Y
2544
2545 /(*NO_START_OPT)xyz/C
2546 abcxyz
2547
2548 /xyz/CY
2549 abcxyz
2550
2551 /^"((?(?=[a])[^"])|b)*"$/C
2552 "ab"
2553
2554 /^"((?(?=[a])[^"])|b)*"$/
2555 "ab"
2556
2557 /^X(?5)(a)(?|(b)|(q))(c)(d)Y/
2558 XYabcdY
2559
2560 /^X(?&N)(a)(?|(b)|(q))(c)(d)(?<N>Y)/
2561 XYabcdY
2562
2563 /Xa{2,4}b/
2564 X\P
2565 Xa\P
2566 Xaa\P
2567 Xaaa\P
2568 Xaaaa\P
2569
2570 /Xa{2,4}?b/
2571 X\P
2572 Xa\P
2573 Xaa\P
2574 Xaaa\P
2575 Xaaaa\P
2576
2577 /Xa{2,4}+b/
2578 X\P
2579 Xa\P
2580 Xaa\P
2581 Xaaa\P
2582 Xaaaa\P
2583
2584 /X\d{2,4}b/
2585 X\P
2586 X3\P
2587 X33\P
2588 X333\P
2589 X3333\P
2590
2591 /X\d{2,4}?b/
2592 X\P
2593 X3\P
2594 X33\P
2595 X333\P
2596 X3333\P
2597
2598 /X\d{2,4}+b/
2599 X\P
2600 X3\P
2601 X33\P
2602 X333\P
2603 X3333\P
2604
2605 /X\D{2,4}b/
2606 X\P
2607 Xa\P
2608 Xaa\P
2609 Xaaa\P
2610 Xaaaa\P
2611
2612 /X\D{2,4}?b/
2613 X\P
2614 Xa\P
2615 Xaa\P
2616 Xaaa\P
2617 Xaaaa\P
2618
2619 /X\D{2,4}+b/
2620 X\P
2621 Xa\P
2622 Xaa\P
2623 Xaaa\P
2624 Xaaaa\P
2625
2626 /X[abc]{2,4}b/
2627 X\P
2628 Xa\P
2629 Xaa\P
2630 Xaaa\P
2631 Xaaaa\P
2632
2633 /X[abc]{2,4}?b/
2634 X\P
2635 Xa\P
2636 Xaa\P
2637 Xaaa\P
2638 Xaaaa\P
2639
2640 /X[abc]{2,4}+b/
2641 X\P
2642 Xa\P
2643 Xaa\P
2644 Xaaa\P
2645 Xaaaa\P
2646
2647 /X[^a]{2,4}b/
2648 X\P
2649 Xz\P
2650 Xzz\P
2651 Xzzz\P
2652 Xzzzz\P
2653
2654 /X[^a]{2,4}?b/
2655 X\P
2656 Xz\P
2657 Xzz\P
2658 Xzzz\P
2659 Xzzzz\P
2660
2661 /X[^a]{2,4}+b/
2662 X\P
2663 Xz\P
2664 Xzz\P
2665 Xzzz\P
2666 Xzzzz\P
2667
2668 /(Y)X\1{2,4}b/
2669 YX\P
2670 YXY\P
2671 YXYY\P
2672 YXYYY\P
2673 YXYYYY\P
2674
2675 /(Y)X\1{2,4}?b/
2676 YX\P
2677 YXY\P
2678 YXYY\P
2679 YXYYY\P
2680 YXYYYY\P
2681
2682 /(Y)X\1{2,4}+b/
2683 YX\P
2684 YXY\P
2685 YXYY\P
2686 YXYYY\P
2687 YXYYYY\P
2688
2689 /\++\KZ|\d+X|9+Y/
2690 ++++123999\P
2691 ++++123999Y\P
2692 ++++Z1234\P
2693
2694 /Z(*F)/
2695 Z\P
2696 ZA\P
2697
2698 /Z(?!)/
2699 Z\P
2700 ZA\P
2701
2702 /dog(sbody)?/
2703 dogs\P
2704 dogs\P\P
2705
2706 /dog(sbody)??/
2707 dogs\P
2708 dogs\P\P
2709
2710 /dog|dogsbody/
2711 dogs\P
2712 dogs\P\P
2713
2714 /dogsbody|dog/
2715 dogs\P
2716 dogs\P\P
2717
2718 /\bthe cat\b/
2719 the cat\P
2720 the cat\P\P
2721
2722 /abc/
2723 abc\P
2724 abc\P\P
2725
2726 /abc\K123/
2727 xyzabc123pqr
2728 xyzabc12\P
2729 xyzabc12\P\P
2730
2731 /(?<=abc)123/
2732 xyzabc123pqr
2733 xyzabc12\P
2734 xyzabc12\P\P
2735
2736 /\babc\b/
2737 +++abc+++
2738 +++ab\P
2739 +++ab\P\P
2740
2741 /(?&word)(?&element)(?(DEFINE)(?<element><[^m][^>]>[^<])(?<word>\w*+))/BZ
2742
2743 /(?&word)(?&element)(?(DEFINE)(?<element><[^\d][^>]>[^<])(?<word>\w*+))/BZ
2744
2745 /(ab)(x(y)z(cd(*ACCEPT)))pq/BZ
2746
2747 /abc\K/+
2748 abcdef
2749 abcdef\N\N
2750 xyzabcdef\N\N
2751 ** Failers
2752 abcdef\N
2753 xyzabcdef\N
2754
2755 /^(?:(?=abc)|abc\K)/+
2756 abcdef
2757 abcdef\N\N
2758 ** Failers
2759 abcdef\N
2760
2761 /a?b?/+
2762 xyz
2763 xyzabc
2764 xyzabc\N
2765 xyzabc\N\N
2766 xyz\N\N
2767 ** Failers
2768 xyz\N
2769
2770 /^a?b?/+
2771 xyz
2772 xyzabc
2773 ** Failers
2774 xyzabc\N
2775 xyzabc\N\N
2776 xyz\N\N
2777 xyz\N
2778
2779 /^(?<name>a|b\g<name>c)/
2780 aaaa
2781 bacxxx
2782 bbaccxxx
2783 bbbacccxx
2784
2785 /^(?<name>a|b\g'name'c)/
2786 aaaa
2787 bacxxx
2788 bbaccxxx
2789 bbbacccxx
2790
2791 /^(a|b\g<1>c)/
2792 aaaa
2793 bacxxx
2794 bbaccxxx
2795 bbbacccxx
2796
2797 /^(a|b\g'1'c)/
2798 aaaa
2799 bacxxx
2800 bbaccxxx
2801 bbbacccxx
2802
2803 /^(a|b\g'-1'c)/
2804 aaaa
2805 bacxxx
2806 bbaccxxx
2807 bbbacccxx
2808
2809 /(^(a|b\g<-1>c))/
2810 aaaa
2811 bacxxx
2812 bbaccxxx
2813 bbbacccxx
2814
2815 /(?-i:\g<name>)(?i:(?<name>a))/
2816 XaaX
2817 XAAX
2818
2819 /(?i:\g<name>)(?-i:(?<name>a))/
2820 XaaX
2821 ** Failers
2822 XAAX
2823
2824 /(?-i:\g<+1>)(?i:(a))/
2825 XaaX
2826 XAAX
2827
2828 /(?=(?<regex>(?#simplesyntax)\$(?<name>[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)(?:\[(?<index>[a-zA-Z0-9_\x{7f}-\x{ff}]+|\$\g<name>)\]|->\g<name>(\(.*?\))?)?|(?#simple syntax withbraces)\$\{(?:\g<name>(?<indices>\[(?:\g<index>|'(?:\\.|[^'\\])*'|"(?:\g<regex>|\\.|[^"\\])*")\])?|\g<complex>|\$\{\g<complex>\})\}|(?#complexsyntax)\{(?<complex>\$(?<segment>\g<name>(\g<indices>*|\(.*?\))?)(?:->\g<segment>)*|\$\g<complex>|\$\{\g<complex>\})\}))\{/
2829
2830 /(?<n>a|b|c)\g<n>*/
2831 abc
2832 accccbbb
2833
2834 /^X(?7)(a)(?|(b)|(q)(r)(s))(c)(d)(Y)/
2835 XYabcdY
2836
2837 /(?<=b(?1)|zzz)(a)/
2838 xbaax
2839 xzzzax
2840
2841 /(a)(?<=b\1)/
2842
2843 /(a)(?<=b+(?1))/
2844
2845 /(a+)(?<=b(?1))/
2846
2847 /(a(?<=b(?1)))/
2848
2849 /(?<=b(?1))xyz/
2850
2851 /(?<=b(?1))xyz(b+)pqrstuvew/
2852
2853 /(a|bc)\1/SI
2854
2855 /(a|bc)\1{2,3}/SI
2856
2857 /(a|bc)(?1)/SI
2858
2859 /(a|b\1)(a|b\1)/SI
2860
2861 /(a|b\1){2}/SI
2862
2863 /(a|bbbb\1)(a|bbbb\1)/SI
2864
2865 /(a|bbbb\1){2}/SI
2866
2867 /^From +([^ ]+) +[a-zA-Z][a-zA-Z][a-zA-Z] +[a-zA-Z][a-zA-Z][a-zA-Z] +[0-9]?[0-9] +[0-9][0-9]:[0-9][0-9]/SI
2868
2869 /<tr([\w\W\s\d][^<>]{0,})><TD([\w\W\s\d][^<>]{0,})>([\d]{0,}\.)(.*)((<BR>([\w\W\s\d][^<>]{0,})|[\s]{0,}))<\/a><\/TD><TD([\w\W\s\d][^<>]{0,})>([\w\W\s\d][^<>]{0,})<\/TD><TD([\w\W\s\d][^<>]{0,})>([\w\W\s\d][^<>]{0,})<\/TD><\/TR>/isIS
2870
2871 "(?>.*/)foo"SI
2872
2873 /(?(?=[^a-z]+[a-z]) \d{2}-[a-z]{3}-\d{2} | \d{2}-\d{2}-\d{2} ) /xSI
2874
2875 /(?:(?:(?:(?:(?:(?:(?:(?:(?:(a|b|c))))))))))/iSI
2876
2877 /(?:c|d)(?:)(?:aaaaaaaa(?:)(?:bbbbbbbb)(?:bbbbbbbb(?:))(?:bbbbbbbb(?:)(?:bbbbbbbb)))/SI
2878
2879 /<a[\s]+href[\s]*=[\s]* # find <a href=
2880 ([\"\'])? # find single or double quote
2881 (?(1) (.*?)\1 | ([^\s]+)) # if quote found, match up to next matching
2882 # quote, otherwise match up to next space
2883 /isxSI
2884
2885 /^(?!:) # colon disallowed at start
2886 (?: # start of item
2887 (?: [0-9a-f]{1,4} | # 1-4 hex digits or
2888 (?(1)0 | () ) ) # if null previously matched, fail; else null
2889 : # followed by colon
2890 ){1,7} # end item; 1-7 of them required
2891 [0-9a-f]{1,4} $ # final hex number at end of string
2892 (?(1)|.) # check that there was an empty component
2893 /xiIS
2894
2895 /(?|(?<a>A)|(?<a>B))/I
2896 AB\Ca
2897 BA\Ca
2898
2899 /(?|(?<a>A)|(?<b>B))/
2900
2901 /(?:a(?<quote> (?<apostrophe>')|(?<realquote>")) |
2902 b(?<quote> (?<apostrophe>')|(?<realquote>")) )
2903 (?('quote')[a-z]+|[0-9]+)/JIx
2904 a"aaaaa
2905 b"aaaaa
2906 ** Failers
2907 b"11111
2908 a"11111
2909
2910 /^(?|(a)(b)(c)(?<D>d)|(?<D>e)) (?('D')X|Y)/JDZx
2911 abcdX
2912 eX
2913 ** Failers
2914 abcdY
2915 ey
2916
2917 /(?<A>a) (b)(c) (?<A>d (?(R&A)$ | (?4)) )/JDZx
2918 abcdd
2919 ** Failers
2920 abcdde
2921
2922 /abcd*/
2923 xxxxabcd\P
2924 xxxxabcd\P\P
2925
2926 /abcd*/i
2927 xxxxabcd\P
2928 xxxxabcd\P\P
2929 XXXXABCD\P
2930 XXXXABCD\P\P
2931
2932 /abc\d*/
2933 xxxxabc1\P
2934 xxxxabc1\P\P
2935
2936 /(a)bc\1*/
2937 xxxxabca\P
2938 xxxxabca\P\P
2939
2940 /abc[de]*/
2941 xxxxabcde\P
2942 xxxxabcde\P\P
2943
2944 /-- This is not in the Perl-compatible test because Perl seems currently to be
2945 broken and not behaving as specified in that it *does* bumpalong after
2946 hitting (*COMMIT). --/
2947
2948 /(?1)(A(*COMMIT)|B)D/
2949 ABD
2950 XABD
2951 BAD
2952 ABXABD
2953 ** Failers
2954 ABX
2955 BAXBAD
2956
2957 /(\3)(\1)(a)/<JS>
2958 cat
2959
2960 /(\3)(\1)(a)/SI<JS>
2961 cat
2962
2963 /(\3)(\1)(a)/SI
2964 cat
2965
2966 /i(?(DEFINE)(?<s>a))/SI
2967 i
2968
2969 /()i(?(1)a)/SI
2970 ia
2971
2972 /(?i)a(?-i)b|c/BZ
2973 XabX
2974 XAbX
2975 CcC
2976 ** Failers
2977 XABX
2978
2979 /(?i)a(?s)b|c/BZ
2980
2981 /(?i)a(?s-i)b|c/BZ
2982
2983 /^(ab(c\1)d|x){2}$/BZ
2984 xabcxd
2985
2986 /^(?&t)*+(?(DEFINE)(?<t>.))$/BZ
2987
2988 /^(?&t)*(?(DEFINE)(?<t>.))$/BZ
2989
2990 / -- This one is here because Perl gives the match as "b" rather than "ab". I
2991 believe this to be a Perl bug. --/
2992
2993 /(?>a\Kb)z|(ab)/
2994 ab
2995
2996 /(?P<L1>(?P<L2>0|)|(?P>L2)(?P>L1))/
2997
2998 /abc(*MARK:)pqr/
2999
3000 /abc(*:)pqr/
3001
3002 /abc(*FAIL:123)xyz/
3003
3004 /--- This should, and does, fail. In Perl, it does not, which I think is a
3005 bug because replacing the B in the pattern by (B|D) does make it fail. ---/
3006
3007 /A(*COMMIT)B/+K
3008 ACABX
3009
3010 /--- These should be different, but in Perl they are not, which I think
3011 is a bug in Perl. ---/
3012
3013 /A(*THEN)B|A(*THEN)C/K
3014 AC
3015
3016 /A(*PRUNE)B|A(*PRUNE)C/K
3017 AC
3018
3019 /--- Mark names can be duplicated. Perl doesn't give a mark for this one,
3020 though PCRE does. ---/
3021
3022 /^A(*:A)B|^X(*:A)Y/K
3023 ** Failers
3024 XAQQ
3025
3026 /--- COMMIT at the start of a pattern should be the same as an anchor. Perl
3027 optimizations defeat this. So does the PCRE optimization unless we disable it
3028 with \Y. ---/
3029
3030 /(*COMMIT)ABC/
3031 ABCDEFG
3032 ** Failers
3033 DEFGABC\Y
3034
3035 /^(ab (c+(*THEN)cd) | xyz)/x
3036 abcccd
3037
3038 /^(ab (c+(*PRUNE)cd) | xyz)/x
3039 abcccd
3040
3041 /^(ab (c+(*FAIL)cd) | xyz)/x
3042 abcccd
3043
3044 /--- Perl gets some of these wrong ---/
3045
3046 /(?>.(*ACCEPT))*?5/
3047 abcde
3048
3049 /(.(*ACCEPT))*?5/
3050 abcde
3051
3052 /(.(*ACCEPT))5/
3053 abcde
3054
3055 /(.(*ACCEPT))*5/
3056 abcde
3057
3058 /A\NB./BZ
3059 ACBD
3060 *** Failers
3061 A\nB
3062 ACB\n
3063
3064 /A\NB./sBZ
3065 ACBD
3066 ACB\n
3067 *** Failers
3068 A\nB
3069
3070 /A\NB/<crlf>
3071 A\nB
3072 A\rB
3073 ** Failers
3074 A\r\nB
3075
3076 /\R+b/BZ
3077
3078 /\R+\n/BZ
3079
3080 /\R+\d/BZ
3081
3082 /\d*\R/BZ
3083
3084 /\s*\R/BZ
3085 \x20\x0a
3086 \x20\x0d
3087 \x20\x0d\x0a
3088
3089 /\S*\R/BZ
3090 a\x0a
3091
3092 /X\h*\R/BZ
3093 X\x20\x0a
3094
3095 /X\H*\R/BZ
3096 X\x0d\x0a
3097
3098 /X\H+\R/BZ
3099 X\x0d\x0a
3100
3101 /X\H++\R/BZ
3102 X\x0d\x0a
3103
3104 /(?<=abc)def/
3105 abc\P\P
3106
3107 /abc$/
3108 abc
3109 abc\P
3110 abc\P\P
3111
3112 /abc$/m
3113 abc
3114 abc\n
3115 abc\P\P
3116 abc\n\P\P
3117 abc\P
3118 abc\n\P
3119
3120 /abc\z/
3121 abc
3122 abc\P
3123 abc\P\P
3124
3125 /abc\Z/
3126 abc
3127 abc\P
3128 abc\P\P
3129
3130 /abc\b/
3131 abc
3132 abc\P
3133 abc\P\P
3134
3135 /abc\B/
3136 abc
3137 abc\P
3138 abc\P\P
3139
3140 /.+/
3141 abc\>0
3142 abc\>1
3143 abc\>2
3144 abc\>3
3145 abc\>4
3146 abc\>-4
3147
3148 /^\cģ/
3149
3150 /(?P<abn>(?P=abn)xxx)/BZ
3151
3152 /(a\1z)/BZ
3153
3154 /(?P<abn>(?P=abn)(?<badstufxxx)/BZ
3155
3156 /(?P<abn>(?P=axn)xxx)/BZ
3157
3158 /(?P<abn>(?P=axn)xxx)(?<axn>yy)/BZ
3159
3160 /-- These tests are here because Perl gets the first one wrong. --/
3161
3162 /(\R*)(.)/s
3163 \r\n
3164 \r\r\n\n\r
3165 \r\r\n\n\r\n
3166
3167 /(\R)*(.)/s
3168 \r\n
3169 \r\r\n\n\r
3170 \r\r\n\n\r\n
3171
3172 /((?>\r\n|\n|\x0b|\f|\r|\x85)*)(.)/s
3173 \r\n
3174 \r\r\n\n\r
3175 \r\r\n\n\r\n
3176
3177 /-- --/
3178
3179 /^abc$/BZ
3180
3181 /^abc$/BZm
3182
3183 /^(a)*+(\w)/S
3184 aaaaX
3185 ** Failers
3186 aaaa
3187
3188 /^(?:a)*+(\w)/S
3189 aaaaX
3190 ** Failers
3191 aaaa
3192
3193 /(a)++1234/SDZ
3194
3195 /([abc])++1234/SI
3196
3197 /(?<=(abc)+)X/
3198
3199 /(^ab)/I
3200
3201 /(^ab)++/I
3202
3203 /(^ab|^)+/I
3204
3205 /(^ab|^)++/I
3206
3207 /(?:^ab)/I
3208
3209 /(?:^ab)++/I
3210
3211 /(?:^ab|^)+/I
3212
3213 /(?:^ab|^)++/I
3214
3215 /(.*ab)/I
3216
3217 /(.*ab)++/I
3218
3219 /(.*ab|.*)+/I
3220
3221 /(.*ab|.*)++/I
3222
3223 /(?:.*ab)/I
3224
3225 /(?:.*ab)++/I
3226
3227 /(?:.*ab|.*)+/I
3228
3229 /(?:.*ab|.*)++/I
3230
3231 /(?=a)[bcd]/I
3232
3233 /((?=a))[bcd]/I
3234
3235 /((?=a))+[bcd]/I
3236
3237 /((?=a))++[bcd]/I
3238
3239 /(?=a+)[bcd]/iI
3240
3241 /(?=a+?)[bcd]/iI
3242
3243 /(?=a++)[bcd]/iI
3244
3245 /(?=a{3})[bcd]/iI
3246
3247 /(abc)\1+/S
3248
3249 /-- Perl doesn't get these right IMO (the 3rd is PCRE-specific) --/
3250
3251 /(?1)(?:(b(*ACCEPT))){0}/
3252 b
3253
3254 /(?1)(?:(b(*ACCEPT))){0}c/
3255 bc
3256 ** Failers
3257 b
3258
3259 /(?1)(?:((*ACCEPT))){0}c/
3260 c
3261 c\N
3262
3263 /^.*?(?(?=a)a|b(*THEN)c)/
3264 ba
3265
3266 /^.*?(?(?=a)a|bc)/
3267 ba
3268
3269 /^.*?(?(?=a)a(*THEN)b|c)/
3270 ac
3271
3272 /^.*?(?(?=a)a(*THEN)b)c/
3273 ac
3274
3275 /^.*?(a(*THEN)b)c/
3276 aabc
3277
3278 /^.*? (?1) c (?(DEFINE)(a(*THEN)b))/x
3279 aabc
3280
3281 /^.*?(a(*THEN)b|z)c/
3282 aabc
3283
3284 /^.*?(z|a(*THEN)b)c/
3285 aabc
3286
3287 /-- --/
3288
3289 /-- These studied versions are here because they are not Perl-compatible; the
3290 studying means the mark is not seen. --/
3291
3292 /(*MARK:A)(*SKIP:B)(C|X)/KS
3293 C
3294 D
3295
3296 /(*:A)A+(*SKIP:A)(B|Z)/KS
3297 AAAC
3298
3299 /-- --/
3300
3301 "(?=a*(*ACCEPT)b)c"
3302 c
3303 c\N
3304
3305 /(?1)c(?(DEFINE)((*ACCEPT)b))/
3306 c
3307 c\N
3308
3309 /(?>(*ACCEPT)b)c/
3310 c
3311 c\N
3312
3313 /(?:(?>(a)))+a%/++
3314 %aa%
3315
3316 /(a)b|ac/++SS
3317 ac\O3
3318
3319 /(a)(b)x|abc/++
3320 abc\O6
3321
3322 /(a)bc|(a)(b)\2/
3323 \O3abc
3324 \O4abc
3325
3326 /(?(DEFINE)(a(?2)|b)(b(?1)|a))(?:(?1)|(?2))/SI
3327
3328 /(a(?2)|b)(b(?1)|a)(?:(?1)|(?2))/SI
3329
3330 /(a(?2)|b)(b(?1)|a)(?1)(?2)/SI
3331
3332 /(abc)(?1)/SI
3333
3334 /^(?>a)++/
3335 aa\M
3336 aaaaaaaaa\M
3337
3338 /(a)(?1)++/
3339 aa\M
3340 aaaaaaaaa\M
3341
3342 /(?:(foo)|(bar)|(baz))X/SS=
3343 bazfooX
3344 foobazbarX
3345 barfooX
3346 bazX
3347 foobarbazX
3348 bazfooX\O0
3349 bazfooX\O2
3350 bazfooX\O4
3351 bazfooX\O6
3352 bazfooX\O8
3353 bazfooX\O10
3354
3355 /(?=abc){3}abc/BZ
3356
3357 /(?=abc)+abc/BZ
3358
3359 /(?=abc)++abc/BZ
3360
3361 /(?=abc){0}xyz/BZ
3362
3363 /(?=(a))?./BZ
3364
3365 /(?=(a))??./BZ
3366
3367 /^(?=(a)){0}b(?1)/BZ
3368
3369 /(?(DEFINE)(a))?b(?1)/BZ
3370
3371 /^(?=(?1))?[az]([abc])d/BZ
3372
3373 /^(?!a){0}\w+/BZ
3374
3375 /(?<=(abc))?xyz/BZ
3376
3377 /[:a[:abc]b:]/BZ
3378
3379 /((?2))((?1))/SS
3380 abc
3381
3382 /((?(R2)a+|(?1)b))/SS
3383 aaaabcde
3384
3385 /(?(R)a*(?1)|((?R))b)/SS
3386 aaaabcde
3387
3388 /(a+|(?R)b)/
3389
3390 /^(a(*:A)(d|e(*:B))z|aeq)/C
3391 adz
3392 aez
3393 aeqwerty
3394
3395 /.(*F)/
3396 \P\Pabc
3397
3398 /\btype\b\W*?\btext\b\W*?\bjavascript\b/IS
3399
3400 /\btype\b\W*?\btext\b\W*?\bjavascript\b|\burl\b\W*?\bshell:|<input\b.*?\btype\b\W*?\bimage\b|\bonkeyup\b\W*?\=/IS
3401
3402 /a(*SKIP)c|b(*ACCEPT)|/+S!I
3403 a
3404
3405 /a(*SKIP)c|b(*ACCEPT)cd(*ACCEPT)|x/SI
3406 ax
3407
3408 'a*(*ACCEPT)b'+
3409 \N\N
3410 abc\N\N
3411 bbb\N\N
3412
3413 /(*ACCEPT)a/+I
3414 bax
3415
3416 /z(*ACCEPT)a/+I
3417 baxzbx
3418
3419 /a(?:.)*?a/ims
3420 \Mabbbbbbbbbbbbbbbbbbbbba
3421
3422 /a(?:.(*THEN))*?a/ims
3423 \Mabbbbbbbbbbbbbbbbbbbbba
3424
3425 /a(?:.(*THEN:ABC))*?a/ims
3426 \Mabbbbbbbbbbbbbbbbbbbbba
3427
3428 /^(?>a+)(?>(z+))\w/BZ
3429 aaaazzzzb
3430 ** Failers
3431 aazz
3432
3433 /(.)(\1|a(?2))/
3434 bab
3435
3436 /\1|(.)(?R)\1/
3437 cbbbc
3438
3439 /(.)((?(1)c|a)|a(?2))/
3440 baa
3441
3442 /(?P<abn>(?P=abn)xxx)/BZ
3443
3444 /(a\1z)/BZ
3445
3446 /^(?>a+)(?>b+)(?>c+)(?>d+)(?>e+)/
3447 \Maabbccddee
3448
3449 /^(?>(a+))(?>(b+))(?>(c+))(?>(d+))(?>(e+))/
3450 \Maabbccddee
3451
3452 /^(?>(a+))(?>b+)(?>(c+))(?>d+)(?>(e+))/
3453 \Maabbccddee
3454
3455 /^a\x41z/<JS>
3456 aAz
3457 *** Failers
3458 ax41z
3459
3460 /^a[m\x41]z/<JS>
3461 aAz
3462
3463 /^a\x1z/<JS>
3464 ax1z
3465
3466 /^a\u0041z/<JS>
3467 aAz
3468 *** Failers
3469 au0041z
3470
3471 /^a[m\u0041]z/<JS>
3472 aAz
3473
3474 /^a\u041z/<JS>
3475 au041z
3476 *** Failers
3477 aAz
3478
3479 /^a\U0041z/<JS>
3480 aU0041z
3481 *** Failers
3482 aAz
3483
3484 /(?(?=c)c|d)++Y/BZ
3485
3486 /(?(?=c)c|d)*+Y/BZ
3487
3488 /a[\NB]c/
3489 aNc
3490
3491 /a[B-\Nc]/
3492
3493 /(a)(?2){0,1999}?(b)/
3494
3495 /(a)(?(DEFINE)(b))(?2){0,1999}?(?2)/
3496
3497 /--- This test, with something more complicated than individual letters, causes
3498 different behaviour in Perl. Perhaps it disables some optimization; no tag is
3499 passed back for the failures, whereas in PCRE there is a tag. ---/
3500
3501 /(A|P)(*:A)(B|P) | (X|P)(X|P)(*:B)(Y|P)/xK
3502 AABC
3503 XXYZ
3504 ** Failers
3505 XAQQ
3506 XAQQXZZ
3507 AXQQQ
3508 AXXQQQ
3509
3510 /-- Perl doesn't give marks for these, though it does if the alternatives are
3511 replaced by single letters. --/
3512
3513 /(b|q)(*:m)f|a(*:n)w/K
3514 aw
3515 ** Failers
3516 abc
3517
3518 /(q|b)(*:m)f|a(*:n)w/K
3519 aw
3520 ** Failers
3521 abc
3522
3523 /-- After a partial match, the behaviour is as for a failure. --/
3524
3525 /^a(*:X)bcde/K
3526 abc\P
3527
3528 /-- These are here because Perl doesn't return a mark, except for the first --/
3529
3530 /(?=(*:x))(q|)/K+
3531 abc
3532
3533 /(?=(*:x))((*:y)q|)/K+
3534 abc
3535
3536 /(?=(*:x))(?:(*:y)q|)/K+
3537 abc
3538
3539 /(?=(*:x))(?>(*:y)q|)/K+
3540 abc
3541
3542 /(?=a(*:x))(?!a(*:y)c)/K+
3543 ab
3544
3545 /(?=a(*:x))(?=a(*:y)c|)/K+
3546 ab
3547
3548 /(..)\1/
3549 ab\P
3550 aba\P
3551 abab\P
3552
3553 /(..)\1/i
3554 ab\P
3555 abA\P
3556 aBAb\P
3557
3558 /(..)\1{2,}/
3559 ab\P
3560 aba\P
3561 abab\P
3562 ababa\P
3563 ababab\P
3564 ababab\P\P
3565 abababa\P
3566 abababa\P\P
3567
3568 /(..)\1{2,}/i
3569 ab\P
3570 aBa\P
3571 aBAb\P
3572 AbaBA\P
3573 abABAb\P
3574 aBAbaB\P\P
3575 abABabA\P
3576 abaBABa\P\P
3577
3578 /(..)\1{2,}?x/i
3579 ab\P
3580 abA\P
3581 aBAb\P
3582 abaBA\P
3583 abAbaB\P
3584 abaBabA\P
3585 abAbABaBx\P
3586
3587 /^(..)\1/
3588 aba\P
3589
3590 /^(..)\1{2,3}x/
3591 aba\P
3592 ababa\P
3593 ababa\P\P
3594 abababx
3595 ababababx
3596
3597 /^(..)\1{2,3}?x/
3598 aba\P
3599 ababa\P
3600 ababa\P\P
3601 abababx
3602 ababababx
3603
3604 /^(..)(\1{2,3})ab/
3605 abababab
3606
3607 /^\R/
3608 \r\P
3609 \r\P\P
3610
3611 /^\R{2,3}x/
3612 \r\P
3613 \r\P\P
3614 \r\r\P
3615 \r\r\P\P
3616 \r\r\r\P
3617 \r\r\r\P\P
3618 \r\rx
3619 \r\r\rx
3620
3621 /^\R{2,3}?x/
3622 \r\P
3623 \r\P\P
3624 \r\r\P
3625 \r\r\P\P
3626 \r\r\r\P
3627 \r\r\r\P\P
3628 \r\rx
3629 \r\r\rx
3630
3631 /^\R?x/
3632 \r\P
3633 \r\P\P
3634 x
3635 \rx
3636
3637 /^\R+x/
3638 \r\P
3639 \r\P\P
3640 \r\n\P
3641 \r\n\P\P
3642 \rx
3643
3644 /^a$/<CRLF>
3645 a\r\P
3646 a\r\P\P
3647
3648 /^a$/m<CRLF>
3649 a\r\P
3650 a\r\P\P
3651
3652 /^(a$|a\r)/<CRLF>
3653 a\r\P
3654 a\r\P\P
3655
3656 /^(a$|a\r)/m<CRLF>
3657 a\r\P
3658 a\r\P\P
3659
3660 /./<CRLF>
3661 \r\P
3662 \r\P\P
3663
3664 /.{2,3}/<CRLF>
3665 \r\P
3666 \r\P\P
3667 \r\r\P
3668 \r\r\P\P
3669 \r\r\r\P
3670 \r\r\r\P\P
3671
3672 /.{2,3}?/<CRLF>
3673 \r\P
3674 \r\P\P
3675 \r\r\P
3676 \r\r\P\P
3677 \r\r\r\P
3678 \r\r\r\P\P
3679
3680 "AB(C(D))(E(F))?(?(?=\2)(?=\4))"
3681 ABCDGHI\O03
3682
3683 /-- These are all run as real matches in test 1; here we are just checking the
3684 settings of the anchored and startline bits. --/
3685
3686 /(?>.*?a)(?<=ba)/I
3687
3688 /(?:.*?a)(?<=ba)/I
3689
3690 /.*?a(*PRUNE)b/I
3691
3692 /.*?a(*PRUNE)b/sI
3693
3694 /^a(*PRUNE)b/sI
3695
3696 /.*?a(*SKIP)b/I
3697
3698 /(?>.*?a)b/sI
3699
3700 /(?>.*?a)b/I
3701
3702 /(?>^a)b/sI
3703
3704 /(?>.*?)(?<=(abcd)|(wxyz))/I
3705
3706 /(?>.*)(?<=(abcd)|(wxyz))/I
3707
3708 "(?>.*)foo"I
3709
3710 "(?>.*?)foo"I
3711
3712 /(?>^abc)/mI
3713
3714 /(?>.*abc)/mI
3715
3716 /(?:.*abc)/mI
3717
3718 /-- Check PCRE_STUDY_EXTRA_NEEDED --/
3719
3720 /.?/S-I
3721
3722 /.?/S!I
3723
3724 /(?:(a)+(?C1)bb|aa(?C2)b)/
3725 aab\C+
3726
3727 /(?:(a)++(?C1)bb|aa(?C2)b)/
3728 aab\C+
3729
3730 /(?:(?>(a))(?C1)bb|aa(?C2)b)/
3731 aab\C+
3732
3733 /(?:(?1)(?C1)x|ab(?C2))((a)){0}/
3734 aab\C+
3735
3736 /(?1)(?C1)((a)(?C2)){0}/
3737 aab\C+
3738
3739 /(?:(a)+(?C1)bb|aa(?C2)b)++/
3740 aab\C+
3741 aab\C+\O2
3742
3743 /(ab)x|ab/
3744 ab\O3
3745 ab\O2
3746
3747 /(ab)/
3748 ab\O3
3749 ab\O2
3750
3751 /(?<=123)(*MARK:xx)abc/K
3752 xxxx123a\P\P
3753 xxxx123a\P
3754
3755 /123\Kabc/
3756 xxxx123a\P\P
3757 xxxx123a\P
3758
3759 /^(?(?=a)aa|bb)/C
3760 bb
3761
3762 /(?C1)^(?C2)(?(?C99)(?=(?C3)a(?C4))(?C5)a(?C6)a(?C7)|(?C8)b(?C9)b(?C10))(?C11)/
3763 bb
3764
3765 /-- Perl seems to have a bug with this one --/
3766
3767 /aaaaa(*COMMIT)(*PRUNE)b|a+c/
3768 aaaaaac
3769
3770 /-- Here are some that Perl treats differently because of the way it handles
3771 backtracking verbs. --/
3772
3773 /(?!a(*COMMIT)b)ac|ad/
3774 ac
3775 ad
3776
3777 /^(?!a(*THEN)b|ac)../
3778 ac
3779 ad
3780
3781 /^(?=a(*THEN)b|ac)/
3782 ac
3783
3784 /\A.*?(?:a|b(*THEN)c)/
3785 ba
3786
3787 /\A.*?(?:a|b(*THEN)c)++/
3788 ba
3789
3790 /\A.*?(?:a|b(*THEN)c|d)/
3791 ba
3792
3793 /(?:(a(*MARK:X)a+(*SKIP:X)b)){0}(?:(?1)|aac)/
3794 aac
3795
3796 /\A.*?(a|b(*THEN)c)/
3797 ba
3798
3799 /^(A(*THEN)B|A(*THEN)D)/
3800 AD
3801
3802 /(?!b(*THEN)a)bn|bnn/
3803 bnn
3804
3805 /(?(?=b(*SKIP)a)bn|bnn)/
3806 bnn
3807
3808 /(?=b(*THEN)a|)bn|bnn/
3809 bnn
3810
3811 /-------------------------/
3812
3813 /(*LIMIT_MATCH=12bc)abc/
3814
3815 /(*LIMIT_MATCH=4294967290)abc/
3816
3817 /(*LIMIT_RECURSION=4294967280)abc/I
3818
3819 /(a+)*zz/
3820 aaaaaaaaaaaaaz
3821 aaaaaaaaaaaaaz\q3000
3822
3823 /(a+)*zz/S-
3824 aaaaaaaaaaaaaz\Q10
3825
3826 /(*LIMIT_MATCH=3000)(a+)*zz/I
3827 aaaaaaaaaaaaaz
3828 aaaaaaaaaaaaaz\q60000
3829
3830 /(*LIMIT_MATCH=60000)(*LIMIT_MATCH=3000)(a+)*zz/I
3831 aaaaaaaaaaaaaz
3832
3833 /(*LIMIT_MATCH=60000)(a+)*zz/I
3834 aaaaaaaaaaaaaz
3835 aaaaaaaaaaaaaz\q3000
3836
3837 /(*LIMIT_RECURSION=10)(a+)*zz/IS-
3838 aaaaaaaaaaaaaz
3839 aaaaaaaaaaaaaz\Q1000
3840
3841 /(*LIMIT_RECURSION=10)(*LIMIT_RECURSION=1000)(a+)*zz/IS-
3842 aaaaaaaaaaaaaz
3843
3844 /(*LIMIT_RECURSION=1000)(a+)*zz/IS-
3845 aaaaaaaaaaaaaz
3846 aaaaaaaaaaaaaz\Q10
3847
3848 /-- This test causes a segfault with Perl 5.18.0 --/
3849
3850 /^(?=(a)){0}b(?1)/
3851 backgammon
3852
3853 /(?|(?<n>f)|(?<n>b))/JI
3854
3855 /(?<a>abc)(?<a>z)\k<a>()/JDZS
3856
3857 /a*[bcd]/BZ
3858
3859 /[bcd]*a/BZ
3860
3861 /-- A complete set of tests for auto-possessification of character types --/
3862
3863 /\D+\D \D+\d \D+\S \D+\s \D+\W \D+\w \D+. \D+\C \D+\R \D+\H \D+\h \D+\V \D+\v \D+\X \D+\Z \D+\z \D+$/BZx
3864
3865 /\d+\D \d+\d \d+\S \d+\s \d+\W \d+\w \d+. \d+\C \d+\R \d+\H \d+\h \d+\V \d+\v \d+\X \d+\Z \d+\z \d+$/BZx
3866
3867 /\S+\D \S+\d \S+\S \S+\s \S+\W \S+\w \S+. \S+\C \S+\R \S+\H \S+\h \S+\V \S+\v \S+\X \S+\Z \S+\z \S+$/BZx
3868
3869 /\s+\D \s+\d \s+\S \s+\s \s+\W \s+\w \s+. \s+\C \s+\R \s+\H \s+\h \s+\V \s+\v \s+\X \s+\Z \s+\z \s+$/BZx
3870
3871 /\W+\D \W+\d \W+\S \W+\s \W+\W \W+\w \W+. \W+\C \W+\R \W+\H \W+\h \W+\V \W+\v \W+\X \W+\Z \W+\z \W+$/BZx
3872
3873 /\w+\D \w+\d \w+\S \w+\s \w+\W \w+\w \w+. \w+\C \w+\R \w+\H \w+\h \w+\V \w+\v \w+\X \w+\Z \w+\z \w+$/BZx
3874
3875 /\C+\D \C+\d \C+\S \C+\s \C+\W \C+\w \C+. \C+\C \C+\R \C+\H \C+\h \C+\V \C+\v \C+\X \C+\Z \C+\z \C+$/BZx
3876
3877 /\R+\D \R+\d \R+\S \R+\s \R+\W \R+\w \R+. \R+\C \R+\R \R+\H \R+\h \R+\V \R+\v \R+\X \R+\Z \R+\z \R+$/BZx
3878
3879 /\H+\D \H+\d \H+\S \H+\s \H+\W \H+\w \H+. \H+\C \H+\R \H+\H \H+\h \H+\V \H+\v \H+\X \H+\Z \H+\z \H+$/BZx
3880
3881 /\h+\D \h+\d \h+\S \h+\s \h+\W \h+\w \h+. \h+\C \h+\R \h+\H \h+\h \h+\V \h+\v \h+\X \h+\Z \h+\z \h+$/BZx
3882
3883 /\V+\D \V+\d \V+\S \V+\s \V+\W \V+\w \V+. \V+\C \V+\R \V+\H \V+\h \V+\V \V+\v \V+\X \V+\Z \V+\z \V+$/BZx
3884
3885 /\v+\D \v+\d \v+\S \v+\s \v+\W \v+\w \v+. \v+\C \v+\R \v+\H \v+\h \v+\V \v+\v \v+\X \v+\Z \v+\z \v+$/BZx
3886
3887 /\X+\D \X+\d \X+\S \X+\s \X+\W \X+\w \X+. \X+\C \X+\R \X+\H \X+\h \X+\V \X+\v \X+\X \X+\Z \X+\z \X+$/BZx
3888
3889 / a+\D a+\d a+\S a+\s a+\W a+\w a+. a+\C a+\R a+\H a+\h a+\V a+\v a+\X a+\Z a+\z a+$/BZx
3890
3891 /\n+\D \n+\d \n+\S \n+\s \n+\W \n+\w \n+. \n+\C \n+\R \n+\H \n+\h \n+\V \n+\v \n+\X \n+\Z \n+\z \n+$/BZx
3892
3893 / .+\D .+\d .+\S .+\s .+\W .+\w .+. .+\C .+\R .+\H .+\h .+\V .+\v .+\X .+\Z .+\z .+$/BZx
3894
3895 / .+\D .+\d .+\S .+\s .+\W .+\w .+. .+\C .+\R .+\H .+\h .+\V .+\v .+\X .+\Z .+\z .+$/BZxs
3896
3897 /\D+$ \d+$ \S+$ \s+$ \W+$ \w+$ \C+$ \R+$ \H+$ \h+$ \V+$ \v+$ \X+$ a+$ \n+$ .+$ .+$/BZxm
3898
3899 /(?=a+)a(a+)++a/BZ
3900
3901 /a+(bb|cc)a+(?:bb|cc)a+(?>bb|cc)a+(?:bb|cc)+a+(aa)a+(?:bb|aa)/BZ
3902
3903 /a+(bb|cc)?#a+(?:bb|cc)??#a+(?:bb|cc)?+#a+(?:bb|cc)*#a+(bb|cc)?a#a+(?:aa)?/BZ
3904
3905 /a+(?:bb)?a#a+(?:|||)#a+(?:|b)a#a+(?:|||)?a/BZ
3906
3907 /[ab]*/BZ
3908 aaaa
3909
3910 /[ab]*?/BZ
3911 aaaa
3912
3913 /[ab]?/BZ
3914 aaaa
3915
3916 /[ab]??/BZ
3917 aaaa
3918
3919 /[ab]+/BZ
3920 aaaa
3921
3922 /[ab]+?/BZ
3923 aaaa
3924
3925 /[ab]{2,3}/BZ
3926 aaaa
3927
3928 /[ab]{2,3}?/BZ
3929 aaaa
3930
3931 /[ab]{2,}/BZ
3932 aaaa
3933
3934 /[ab]{2,}?/BZ
3935 aaaa
3936
3937 /-- End of special auto-possessive tests --/
3938
3939 /^A\o{1239}B/
3940 A\123B
3941
3942 /^A\oB/
3943
3944 /^A\x{zz}B/
3945
3946 /^A\x{12Z/
3947
3948 /^A\x{/
3949
3950 /[ab]++/BZO
3951
3952 /[^ab]*+/BZO
3953
3954 /a{4}+/BZO
3955
3956 /a{4}+/BZOi
3957
3958 /-- End of testinput2 --/

Properties

Name Value
svn:keywords "Author Date Id Revision Url"

  ViewVC Help
Powered by ViewVC 1.1.5