/[pcre]/code/branches/pcre16/testdata/testinput2
ViewVC logotype

Contents of /code/branches/pcre16/testdata/testinput2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 818 - (show annotations)
Thu Dec 22 20:11:31 2011 UTC (8 years, 5 months ago) by ph10
File size: 59413 byte(s)
More 16-bit fixes, and removal of pcre_info().
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 5.005_02 doesn't fail it/I
317
318 /^(a)?(?(1)a|b)+$/I
319 *** Failers
320 a
321
322 /This one is here because Perl behaves differently; see also the following/I
323
324 /^(a\1?){4}$/I
325 aaaa
326 aaaaaa
327
328 /Perl does not fail these two for the final subjects. Neither did PCRE until/
329 /release 8.01. The problem is in backtracking into a subpattern that contains/
330 /a recursive reference to itself. PCRE has now made these into atomic patterns./
331
332 /^(xa|=?\1a){2}$/
333 xa=xaa
334 ** Failers
335 xa=xaaa
336
337 /^(xa|=?\1a)+$/
338 xa=xaa
339 ** Failers
340 xa=xaaa
341
342 /These are syntax tests from Perl 5.005/I
343
344 /a[b-a]/
345
346 /a[]b/
347
348 /a[/
349
350 /*a/
351
352 /(*)b/
353
354 /abc)/
355
356 /(abc/
357
358 /a**/
359
360 /)(/
361
362 /\1/
363
364 /\2/
365
366 /(a)|\2/
367
368 /a[b-a]/Ii
369
370 /a[]b/Ii
371
372 /a[/Ii
373
374 /*a/Ii
375
376 /(*)b/Ii
377
378 /abc)/Ii
379
380 /(abc/Ii
381
382 /a**/Ii
383
384 /)(/Ii
385
386 /:(?:/
387
388 /(?<%)b/
389
390 /a(?{)b/
391
392 /a(?{{})b/
393
394 /a(?{}})b/
395
396 /a(?{"{"})b/
397
398 /a(?{"{"}})b/
399
400 /(?(1?)a|b)/
401
402 /[a[:xyz:/
403
404 /(?<=x+)y/
405
406 /a{37,17}/
407
408 /abc/\
409
410 /abc/\P
411
412 /abc/\i
413
414 /(a)bc(d)/I
415 abcd
416 abcd\C2
417 abcd\C5
418
419 /(.{20})/I
420 abcdefghijklmnopqrstuvwxyz
421 abcdefghijklmnopqrstuvwxyz\C1
422 abcdefghijklmnopqrstuvwxyz\G1
423
424 /(.{15})/I
425 abcdefghijklmnopqrstuvwxyz
426 abcdefghijklmnopqrstuvwxyz\C1\G1
427
428 /(.{16})/I
429 abcdefghijklmnopqrstuvwxyz
430 abcdefghijklmnopqrstuvwxyz\C1\G1\L
431
432 /^(a|(bc))de(f)/I
433 adef\G1\G2\G3\G4\L
434 bcdef\G1\G2\G3\G4\L
435 adefghijk\C0
436
437 /^abc\00def/I
438 abc\00def\L\C0
439
440 /word ((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
441 )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
442 )?)?)?)?)?)?)?)?)?otherword/I
443
444 /.*X/IDZ
445
446 /.*X/IDZs
447
448 /(.*X|^B)/IDZ
449
450 /(.*X|^B)/IDZs
451
452 /(?s)(.*X|^B)/IDZ
453
454 /(?s:.*X|^B)/IDZ
455
456 /\Biss\B/I+
457 Mississippi
458
459 /iss/IG+
460 Mississippi
461
462 /\Biss\B/IG+
463 Mississippi
464
465 /\Biss\B/Ig+
466 Mississippi
467 *** Failers
468 Mississippi\A
469
470 /(?<=[Ms])iss/Ig+
471 Mississippi
472
473 /(?<=[Ms])iss/IG+
474 Mississippi
475
476 /^iss/Ig+
477 ississippi
478
479 /.*iss/Ig+
480 abciss\nxyzisspqr
481
482 /.i./I+g
483 Mississippi
484 Mississippi\A
485 Missouri river
486 Missouri river\A
487
488 /^.is/I+g
489 Mississippi
490
491 /^ab\n/Ig+
492 ab\nab\ncd
493
494 /^ab\n/Img+
495 ab\nab\ncd
496
497 /abc/I
498
499 /abc|bac/I
500
501 /(abc|bac)/I
502
503 /(abc|(c|dc))/I
504
505 /(abc|(d|de)c)/I
506
507 /a*/I
508
509 /a+/I
510
511 /(baa|a+)/I
512
513 /a{0,3}/I
514
515 /baa{3,}/I
516
517 /"([^\\"]+|\\.)*"/I
518
519 /(abc|ab[cd])/I
520
521 /(a|.)/I
522
523 /a|ba|\w/I
524
525 /abc(?=pqr)/I
526
527 /...(?<=abc)/I
528
529 /abc(?!pqr)/I
530
531 /ab./I
532
533 /ab[xyz]/I
534
535 /abc*/I
536
537 /ab.c*/I
538
539 /a.c*/I
540
541 /.c*/I
542
543 /ac*/I
544
545 /(a.c*|b.c*)/I
546
547 /a.c*|aba/I
548
549 /.+a/I
550
551 /(?=abcda)a.*/I
552
553 /(?=a)a.*/I
554
555 /a(b)*/I
556
557 /a\d*/I
558
559 /ab\d*/I
560
561 /a(\d)*/I
562
563 /abcde{0,0}/I
564
565 /ab\d+/I
566
567 /a(?(1)b)(.)/I
568
569 /a(?(1)bag|big)(.)/I
570
571 /a(?(1)bag|big)*(.)/I
572
573 /a(?(1)bag|big)+(.)/I
574
575 /a(?(1)b..|b..)(.)/I
576
577 /ab\d{0}e/I
578
579 /a?b?/I
580 a
581 b
582 ab
583 \
584 *** Failers
585 \N
586
587 /|-/I
588 abcd
589 -abc
590 \Nab-c
591 *** Failers
592 \Nabc
593
594 /^.?abcd/IS
595
596 /\( # ( at start
597 (?: # Non-capturing bracket
598 (?>[^()]+) # Either a sequence of non-brackets (no backtracking)
599 | # Or
600 (?R) # Recurse - i.e. nested bracketed string
601 )* # Zero or more contents
602 \) # Closing )
603 /Ix
604 (abcd)
605 (abcd)xyz
606 xyz(abcd)
607 (ab(xy)cd)pqr
608 (ab(xycd)pqr
609 () abc ()
610 12(abcde(fsh)xyz(foo(bar))lmno)89
611 *** Failers
612 abcd
613 abcd)
614 (abcd
615
616 /\( ( (?>[^()]+) | (?R) )* \) /Ixg
617 (ab(xy)cd)pqr
618 1(abcd)(x(y)z)pqr
619
620 /\( (?: (?>[^()]+) | (?R) ) \) /Ix
621 (abcd)
622 (ab(xy)cd)
623 (a(b(c)d)e)
624 ((ab))
625 *** Failers
626 ()
627
628 /\( (?: (?>[^()]+) | (?R) )? \) /Ix
629 ()
630 12(abcde(fsh)xyz(foo(bar))lmno)89
631
632 /\( ( (?>[^()]+) | (?R) )* \) /Ix
633 (ab(xy)cd)
634
635 /\( ( ( (?>[^()]+) | (?R) )* ) \) /Ix
636 (ab(xy)cd)
637
638 /\( (123)? ( ( (?>[^()]+) | (?R) )* ) \) /Ix
639 (ab(xy)cd)
640 (123ab(xy)cd)
641
642 /\( ( (123)? ( (?>[^()]+) | (?R) )* ) \) /Ix
643 (ab(xy)cd)
644 (123ab(xy)cd)
645
646 /\( (((((((((( ( (?>[^()]+) | (?R) )* )))))))))) \) /Ix
647 (ab(xy)cd)
648
649 /\( ( ( (?>[^()<>]+) | ((?>[^()]+)) | (?R) )* ) \) /Ix
650 (abcd(xyz<p>qrs)123)
651
652 /\( ( ( (?>[^()]+) | ((?R)) )* ) \) /Ix
653 (ab(cd)ef)
654 (ab(cd(ef)gh)ij)
655
656 /^[[:alnum:]]/DZ
657
658 /^[[:^alnum:]]/DZ
659
660 /^[[:alpha:]]/DZ
661
662 /^[[:^alpha:]]/DZ
663
664 /[_[:alpha:]]/IS
665
666 /^[[:ascii:]]/DZ
667
668 /^[[:^ascii:]]/DZ
669
670 /^[[:blank:]]/DZ
671
672 /^[[:^blank:]]/DZ
673
674 /[\n\x0b\x0c\x0d[:blank:]]/IS
675
676 /^[[:cntrl:]]/DZ
677
678 /^[[:digit:]]/DZ
679
680 /^[[:graph:]]/DZ
681
682 /^[[:lower:]]/DZ
683
684 /^[[:print:]]/DZ
685
686 /^[[:punct:]]/DZ
687
688 /^[[:space:]]/DZ
689
690 /^[[:upper:]]/DZ
691
692 /^[[:xdigit:]]/DZ
693
694 /^[[:word:]]/DZ
695
696 /^[[:^cntrl:]]/DZ
697
698 /^[12[:^digit:]]/DZ
699
700 /^[[:^blank:]]/DZ
701
702 /[01[:alpha:]%]/DZ
703
704 /[[.ch.]]/I
705
706 /[[=ch=]]/I
707
708 /[[:rhubarb:]]/I
709
710 /[[:upper:]]/Ii
711 A
712 a
713
714 /[[:lower:]]/Ii
715 A
716 a
717
718 /((?-i)[[:lower:]])[[:lower:]]/Ii
719 ab
720 aB
721 *** Failers
722 Ab
723 AB
724
725 /[\200-\110]/I
726
727 /^(?(0)f|b)oo/I
728
729 /This one's here because of the large output vector needed/I
730
731 /(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?: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\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\w+)\s+(\270)/I
732 \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
733
734 /This one's here because Perl does this differently and PCRE can't at present/I
735
736 /(main(O)?)+/I
737 mainmain
738 mainOmain
739
740 /These are all cases where Perl does it differently (nested captures)/I
741
742 /^(a(b)?)+$/I
743 aba
744
745 /^(aa(bb)?)+$/I
746 aabbaa
747
748 /^(aa|aa(bb))+$/I
749 aabbaa
750
751 /^(aa(bb)??)+$/I
752 aabbaa
753
754 /^(?:aa(bb)?)+$/I
755 aabbaa
756
757 /^(aa(b(b))?)+$/I
758 aabbaa
759
760 /^(?:aa(b(b))?)+$/I
761 aabbaa
762
763 /^(?:aa(b(?:b))?)+$/I
764 aabbaa
765
766 /^(?:aa(bb(?:b))?)+$/I
767 aabbbaa
768
769 /^(?:aa(b(?:bb))?)+$/I
770 aabbbaa
771
772 /^(?:aa(?:b(b))?)+$/I
773 aabbaa
774
775 /^(?:aa(?:b(bb))?)+$/I
776 aabbbaa
777
778 /^(aa(b(bb))?)+$/I
779 aabbbaa
780
781 /^(aa(bb(bb))?)+$/I
782 aabbbbaa
783
784 /--------------------------------------------------------------------/I
785
786 /#/IxDZ
787
788 /a#/IxDZ
789
790 /[\s]/DZ
791
792 /[\S]/DZ
793
794 /a(?i)b/DZ
795 ab
796 aB
797 *** Failers
798 AB
799
800 /(a(?i)b)/DZ
801 ab
802 aB
803 *** Failers
804 AB
805
806 / (?i)abc/IxDZ
807
808 /#this is a comment
809 (?i)abc/IxDZ
810
811 /123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/DZ
812
813 /\Q123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/DZ
814
815 /\Q\E/DZ
816 \
817
818 /\Q\Ex/DZ
819
820 / \Q\E/DZ
821
822 /a\Q\E/DZ
823 abc
824 bca
825 bac
826
827 /a\Q\Eb/DZ
828 abc
829
830 /\Q\Eabc/DZ
831
832 /x*+\w/DZ
833 *** Failers
834 xxxxx
835
836 /x?+/DZ
837
838 /x++/DZ
839
840 /x{1,3}+/DZ
841
842 /(x)*+/DZ
843
844 /^(\w++|\s++)*$/I
845 now is the time for all good men to come to the aid of the party
846 *** Failers
847 this is not a line with only words and spaces!
848
849 /(\d++)(\w)/I
850 12345a
851 *** Failers
852 12345+
853
854 /a++b/I
855 aaab
856
857 /(a++b)/I
858 aaab
859
860 /(a++)b/I
861 aaab
862
863 /([^()]++|\([^()]*\))+/I
864 ((abc(ade)ufh()()x
865
866 /\(([^()]++|\([^()]+\))+\)/I
867 (abc)
868 (abc(def)xyz)
869 *** Failers
870 ((()aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
871
872 /(abc){1,3}+/DZ
873
874 /a+?+/I
875
876 /a{2,3}?+b/I
877
878 /(?U)a+?+/I
879
880 /a{2,3}?+b/IU
881
882 /x(?U)a++b/DZ
883 xaaaab
884
885 /(?U)xa++b/DZ
886 xaaaab
887
888 /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/DZ
889
890 /^x(?U)a+b/DZ
891
892 /^x(?U)(a+)b/DZ
893
894 /[.x.]/I
895
896 /[=x=]/I
897
898 /[:x:]/I
899
900 /\l/I
901
902 /\L/I
903
904 /\N{name}/I
905
906 /\u/I
907
908 /\U/I
909
910 /[/I
911
912 /[a-/I
913
914 /[[:space:]/I
915
916 /[\s]/IDZ
917
918 /[[:space:]]/IDZ
919
920 /[[:space:]abcde]/IDZ
921
922 /< (?: (?(R) \d++ | [^<>]*+) | (?R)) * >/Ix
923 <>
924 <abcd>
925 <abc <123> hij>
926 <abc <def> hij>
927 <abc<>def>
928 <abc<>
929 *** Failers
930 <abc
931
932 |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
933
934 |\$\<\.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
935
936 /(.*)\d+\1/I
937
938 /(.*)\d+/I
939
940 /(.*)\d+\1/Is
941
942 /(.*)\d+/Is
943
944 /(.*(xyz))\d+\2/I
945
946 /((.*))\d+\1/I
947 abc123bc
948
949 /a[b]/I
950
951 /(?=a).*/I
952
953 /(?=abc).xyz/IiI
954
955 /(?=abc)(?i).xyz/I
956
957 /(?=a)(?=b)/I
958
959 /(?=.)a/I
960
961 /((?=abcda)a)/I
962
963 /((?=abcda)ab)/I
964
965 /()a/I
966
967 /(?(1)ab|ac)(.)/I
968
969 /(?(1)abz|acz)(.)/I
970
971 /(?(1)abz)(.)/I
972
973 /(?(1)abz)(1)23/I
974
975 /(a)+/I
976
977 /(a){2,3}/I
978
979 /(a)*/I
980
981 /[a]/I
982
983 /[ab]/I
984
985 /[ab]/IS
986
987 /[^a]/I
988
989 /\d456/I
990
991 /\d456/IS
992
993 /a^b/I
994
995 /^a/Im
996 abcde
997 xy\nabc
998 *** Failers
999 xyabc
1000
1001 /c|abc/I
1002
1003 /(?i)[ab]/IS
1004
1005 /[ab](?i)cd/IS
1006
1007 /abc(?C)def/I
1008 abcdef
1009 1234abcdef
1010 *** Failers
1011 abcxyz
1012 abcxyzf
1013
1014 /abc(?C)de(?C1)f/I
1015 123abcdef
1016
1017 /(?C1)\dabc(?C2)def/IS
1018 1234abcdef
1019 *** Failers
1020 abcdef
1021
1022 /(?C1)\dabc(?C2)def/ISS
1023 1234abcdef
1024 *** Failers
1025 abcdef
1026
1027 /(?C255)ab/I
1028
1029 /(?C256)ab/I
1030
1031 /(?Cab)xx/I
1032
1033 /(?C12vr)x/I
1034
1035 /abc(?C)def/I
1036 *** Failers
1037 \x83\x0\x61bcdef
1038
1039 /(abc)(?C)de(?C1)f/I
1040 123abcdef
1041 123abcdef\C+
1042 123abcdef\C-
1043 *** Failers
1044 123abcdef\C!1
1045
1046 /(?C0)(abc(?C1))*/I
1047 abcabcabc
1048 abcabc\C!1!3
1049 *** Failers
1050 abcabcabc\C!1!3
1051
1052 /(\d{3}(?C))*/I
1053 123\C+
1054 123456\C+
1055 123456789\C+
1056
1057 /((xyz)(?C)p|(?C1)xyzabc)/I
1058 xyzabc\C+
1059
1060 /(X)((xyz)(?C)p|(?C1)xyzabc)/I
1061 Xxyzabc\C+
1062
1063 /(?=(abc))(?C)abcdef/I
1064 abcdef\C+
1065
1066 /(?!(abc)(?C1)d)(?C2)abcxyz/I
1067 abcxyz\C+
1068
1069 /(?<=(abc)(?C))xyz/I
1070 abcxyz\C+
1071
1072 /a(b+)(c*)(?C1)/I
1073 abbbbbccc\C*1
1074
1075 /a(b+?)(c*?)(?C1)/I
1076 abbbbbccc\C*1
1077
1078 /(?C)abc/I
1079
1080 /(?C)^abc/I
1081
1082 /(?C)a|b/IS
1083
1084 /(?R)/I
1085
1086 /(a|(?R))/I
1087
1088 /(ab|(bc|(de|(?R))))/I
1089
1090 /x(ab|(bc|(de|(?R))))/I
1091 xab
1092 xbc
1093 xde
1094 xxab
1095 xxxab
1096 *** Failers
1097 xyab
1098
1099 /(ab|(bc|(de|(?1))))/I
1100
1101 /x(ab|(bc|(de|(?1)x)x)x)/I
1102
1103 /^([^()]|\((?1)*\))*$/I
1104 abc
1105 a(b)c
1106 a(b(c))d
1107 *** Failers)
1108 a(b(c)d
1109
1110 /^>abc>([^()]|\((?1)*\))*<xyz<$/I
1111 >abc>123<xyz<
1112 >abc>1(2)3<xyz<
1113 >abc>(1(2)3)<xyz<
1114
1115 /(a(?1)b)/DZ
1116
1117 /(a(?1)+b)/DZ
1118
1119 /^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/I
1120 12
1121 (((2+2)*-3)-7)
1122 -12
1123 *** Failers
1124 ((2+2)*-3)-7)
1125
1126 /^(x(y|(?1){2})z)/I
1127 xyz
1128 xxyzxyzz
1129 *** Failers
1130 xxyzz
1131 xxyzxyzxyzz
1132
1133 /((< (?: (?(R) \d++ | [^<>]*+) | (?2)) * >))/Ix
1134 <>
1135 <abcd>
1136 <abc <123> hij>
1137 <abc <def> hij>
1138 <abc<>def>
1139 <abc<>
1140 *** Failers
1141 <abc
1142
1143 /(?1)/I
1144
1145 /((?2)(abc)/I
1146
1147 /^(abc)def(?1)/I
1148 abcdefabc
1149
1150 /^(a|b|c)=(?1)+/I
1151 a=a
1152 a=b
1153 a=bc
1154
1155 /^(a|b|c)=((?1))+/I
1156 a=a
1157 a=b
1158 a=bc
1159
1160 /a(?P<name1>b|c)d(?P<longername2>e)/DZ
1161 abde
1162 acde
1163
1164 /(?:a(?P<c>c(?P<d>d)))(?P<a>a)/DZ
1165
1166 /(?P<a>a)...(?P=a)bbb(?P>a)d/DZ
1167
1168 /^\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
1169 1221
1170 Satan, oscillate my metallic sonatas!
1171 A man, a plan, a canal: Panama!
1172 Able was I ere I saw Elba.
1173 *** Failers
1174 The quick brown fox
1175
1176 /((?(R)a|b))\1(?1)?/I
1177 bb
1178 bbaa
1179
1180 /(.*)a/Is
1181
1182 /(.*)a\1/Is
1183
1184 /(.*)a(b)\2/Is
1185
1186 /((.*)a|(.*)b)z/Is
1187
1188 /((.*)a|(.*)b)z\1/Is
1189
1190 /((.*)a|(.*)b)z\2/Is
1191
1192 /((.*)a|(.*)b)z\3/Is
1193
1194 /((.*)a|^(.*)b)z\3/Is
1195
1196 /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a/Is
1197
1198 /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\31/Is
1199
1200 /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\32/Is
1201
1202 /(a)(bc)/INDZ
1203 abc
1204
1205 /(?P<one>a)(bc)/INDZ
1206 abc
1207
1208 /(a)(?P<named>bc)/INDZ
1209
1210 /(a+)*zz/I
1211 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazzbbbbbb\M
1212 aaaaaaaaaaaaaz\M
1213
1214 /(aaa(?C1)bbb|ab)/I
1215 aaabbb
1216 aaabbb\C*0
1217 aaabbb\C*1
1218 aaabbb\C*-1
1219
1220 /ab(?P<one>cd)ef(?P<two>gh)/I
1221 abcdefgh
1222 abcdefgh\C1\Gtwo
1223 abcdefgh\Cone\Ctwo
1224 abcdefgh\Cthree
1225
1226 /(?P<Tes>)(?P<Test>)/DZ
1227
1228 /(?P<Test>)(?P<Tes>)/DZ
1229
1230 /(?P<Z>zz)(?P<A>aa)/I
1231 zzaa\CZ
1232 zzaa\CA
1233
1234 /(?P<x>eks)(?P<x>eccs)/I
1235
1236 /(?P<abc>abc(?P<def>def)(?P<abc>xyz))/I
1237
1238 "\[((?P<elem>\d+)(,(?P>elem))*)\]"I
1239 [10,20,30,5,5,4,4,2,43,23,4234]
1240 *** Failers
1241 []
1242
1243 "\[((?P<elem>\d+)(,(?P>elem))*)?\]"I
1244 [10,20,30,5,5,4,4,2,43,23,4234]
1245 []
1246
1247 /(a(b(?2)c))?/DZ
1248
1249 /(a(b(?2)c))*/DZ
1250
1251 /(a(b(?2)c)){0,2}/DZ
1252
1253 /[ab]{1}+/DZ
1254
1255 /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/Ii
1256 Baby Bjorn Active Carrier - With free SHIPPING!!
1257
1258 /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/IiS
1259 Baby Bjorn Active Carrier - With free SHIPPING!!
1260
1261 /a*.*b/ISDZ
1262
1263 /(a|b)*.?c/ISDZ
1264
1265 /abc(?C255)de(?C)f/DZ
1266
1267 /abcde/ICDZ
1268 abcde
1269 abcdfe
1270
1271 /a*b/ICDZS
1272 ab
1273 aaaab
1274 aaaacb
1275
1276 /a*b/ICDZSS
1277 ab
1278 aaaab
1279 aaaacb
1280
1281 /a+b/ICDZ
1282 ab
1283 aaaab
1284 aaaacb
1285
1286 /(abc|def)x/ICDZS
1287 abcx
1288 defx
1289 ** Failers
1290 abcdefzx
1291
1292 /(abc|def)x/ICDZSS
1293 abcx
1294 defx
1295 ** Failers
1296 abcdefzx
1297
1298 /(ab|cd){3,4}/IC
1299 ababab
1300 abcdabcd
1301 abcdcdcdcdcd
1302
1303 /([ab]{,4}c|xy)/ICDZS
1304 Note: that { does NOT introduce a quantifier
1305
1306 /([ab]{,4}c|xy)/ICDZSS
1307 Note: that { does NOT introduce a quantifier
1308
1309 /([ab]{1,4}c|xy){4,5}?123/ICDZ
1310 aacaacaacaacaac123
1311
1312 /\b.*/I
1313 ab cd\>1
1314
1315 /\b.*/Is
1316 ab cd\>1
1317
1318 /(?!.bcd).*/I
1319 Xbcd12345
1320
1321 /abcde/I
1322 ab\P
1323 abc\P
1324 abcd\P
1325 abcde\P
1326 the quick brown abc\P
1327 ** Failers\P
1328 the quick brown abxyz fox\P
1329
1330 "^(0?[1-9]|[12][0-9]|3[01])/(0?[1-9]|1[012])/(20)?\d\d$"I
1331 13/05/04\P
1332 13/5/2004\P
1333 02/05/09\P
1334 1\P
1335 1/2\P
1336 1/2/0\P
1337 1/2/04\P
1338 0\P
1339 02/\P
1340 02/0\P
1341 02/1\P
1342 ** Failers\P
1343 \P
1344 123\P
1345 33/4/04\P
1346 3/13/04\P
1347 0/1/2003\P
1348 0/\P
1349 02/0/\P
1350 02/13\P
1351
1352 /0{0,2}ABC/I
1353
1354 /\d{3,}ABC/I
1355
1356 /\d*ABC/I
1357
1358 /[abc]+DE/I
1359
1360 /[abc]?123/I
1361 123\P
1362 a\P
1363 b\P
1364 c\P
1365 c12\P
1366 c123\P
1367
1368 /^(?:\d){3,5}X/I
1369 1\P
1370 123\P
1371 123X
1372 1234\P
1373 1234X
1374 12345\P
1375 12345X
1376 *** Failers
1377 1X
1378 123456\P
1379
1380 /abc/IS>testsavedregex
1381 <testsavedregex
1382 abc
1383 ** Failers
1384 bca
1385
1386 /abc/ISS>testsavedregex
1387 <testsavedregex
1388 abc
1389 ** Failers
1390 bca
1391
1392 /abc/IFS>testsavedregex
1393 <testsavedregex
1394 abc
1395 ** Failers
1396 bca
1397
1398 /abc/IFSS>testsavedregex
1399 <testsavedregex
1400 abc
1401 ** Failers
1402 bca
1403
1404 /(a|b)/IS>testsavedregex
1405 <testsavedregex
1406 abc
1407 ** Failers
1408 def
1409
1410 /(a|b)/ISS>testsavedregex
1411 <testsavedregex
1412 abc
1413 ** Failers
1414 def
1415
1416 /(a|b)/ISF>testsavedregex
1417 <testsavedregex
1418 abc
1419 ** Failers
1420 def
1421
1422 /(a|b)/ISSF>testsavedregex
1423 <testsavedregex
1424 abc
1425 ** Failers
1426 def
1427
1428 ~<(\w+)/?>(.)*</(\1)>~smgI
1429 \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>
1430
1431 /^a/IF
1432
1433 /line\nbreak/I
1434 this is a line\nbreak
1435 line one\nthis is a line\nbreak in the second line
1436
1437 /line\nbreak/If
1438 this is a line\nbreak
1439 ** Failers
1440 line one\nthis is a line\nbreak in the second line
1441
1442 /line\nbreak/Imf
1443 this is a line\nbreak
1444 ** Failers
1445 line one\nthis is a line\nbreak in the second line
1446
1447 /(?i)(?-i)AbCd/I
1448 AbCd
1449 ** Failers
1450 abcd
1451
1452 /a{11111111111111111111}/I
1453
1454 /(){64294967295}/I
1455
1456 /(){2,4294967295}/I
1457
1458 "(?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
1459 abcdefghijklAkB
1460
1461 "(?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
1462 abcdefghijklAkB
1463
1464 "(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)A\11B"I
1465 abcdefghijklAkB
1466
1467 "(?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
1468 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1469
1470 "(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
1471 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1472
1473 /[^()]*(?:\((?R)\)[^()]*)*/I
1474 (this(and)that
1475 (this(and)that)
1476 (this(and)that)stuff
1477
1478 /[^()]*(?:\((?>(?R))\)[^()]*)*/I
1479 (this(and)that
1480 (this(and)that)
1481
1482 /[^()]*(?:\((?R)\))*[^()]*/I
1483 (this(and)that
1484 (this(and)that)
1485
1486 /(?:\((?R)\))*[^()]*/I
1487 (this(and)that
1488 (this(and)that)
1489 ((this))
1490
1491 /(?:\((?R)\))|[^()]*/I
1492 (this(and)that
1493 (this(and)that)
1494 (this)
1495 ((this))
1496
1497 /\x{0000ff}/I
1498
1499 /^((?P<A>a1)|(?P<A>a2)b)/I
1500
1501 /^((?P<A>a1)|(?P<A>a2)b)/IJ
1502 a1b\CA
1503 a2b\CA
1504 ** Failers
1505 a1b\CZ\CA
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 /\777/I
1575
1576 /\s*,\s*/IS
1577 \x0b,\x0b
1578 \x0c,\x0d
1579
1580 /^abc/Im
1581 xyz\nabc
1582 xyz\nabc\<lf>
1583 xyz\r\nabc\<lf>
1584 xyz\rabc\<cr>
1585 xyz\r\nabc\<crlf>
1586 ** Failers
1587 xyz\nabc\<cr>
1588 xyz\r\nabc\<cr>
1589 xyz\nabc\<crlf>
1590 xyz\rabc\<crlf>
1591 xyz\rabc\<lf>
1592
1593 /abc$/Im<lf>
1594 xyzabc
1595 xyzabc\n
1596 xyzabc\npqr
1597 xyzabc\r\<cr>
1598 xyzabc\rpqr\<cr>
1599 xyzabc\r\n\<crlf>
1600 xyzabc\r\npqr\<crlf>
1601 ** Failers
1602 xyzabc\r
1603 xyzabc\rpqr
1604 xyzabc\r\n
1605 xyzabc\r\npqr
1606
1607 /^abc/Im<cr>
1608 xyz\rabcdef
1609 xyz\nabcdef\<lf>
1610 ** Failers
1611 xyz\nabcdef
1612
1613 /^abc/Im<lf>
1614 xyz\nabcdef
1615 xyz\rabcdef\<cr>
1616 ** Failers
1617 xyz\rabcdef
1618
1619 /^abc/Im<crlf>
1620 xyz\r\nabcdef
1621 xyz\rabcdef\<cr>
1622 ** Failers
1623 xyz\rabcdef
1624
1625 /^abc/Im<bad>
1626
1627 /abc/I
1628 xyz\rabc\<bad>
1629 abc
1630
1631 /.*/I<lf>
1632 abc\ndef
1633 abc\rdef
1634 abc\r\ndef
1635 \<cr>abc\ndef
1636 \<cr>abc\rdef
1637 \<cr>abc\r\ndef
1638 \<crlf>abc\ndef
1639 \<crlf>abc\rdef
1640 \<crlf>abc\r\ndef
1641
1642 /\w+(.)(.)?def/Is
1643 abc\ndef
1644 abc\rdef
1645 abc\r\ndef
1646
1647 +((?:\s|//.*\\n|/[*](?:\\n|.)*?[*]/)*)+I
1648 /* this is a C style comment */\M
1649
1650 /(?P<B>25[0-5]|2[0-4]\d|[01]?\d?\d)(?:\.(?P>B)){3}/I
1651
1652 /()()()()()()()()()()()()()()()()()()()()
1653 ()()()()()()()()()()()()()()()()()()()()
1654 ()()()()()()()()()()()()()()()()()()()()
1655 ()()()()()()()()()()()()()()()()()()()()
1656 ()()()()()()()()()()()()()()()()()()()()
1657 (.(.))/Ix
1658 XY\O400
1659
1660 /(a*b|(?i:c*(?-i)d))/IS
1661
1662 /()[ab]xyz/IS
1663
1664 /(|)[ab]xyz/IS
1665
1666 /(|c)[ab]xyz/IS
1667
1668 /(|c?)[ab]xyz/IS
1669
1670 /(d?|c?)[ab]xyz/IS
1671
1672 /(d?|c)[ab]xyz/IS
1673
1674 /^a*b\d/DZ
1675
1676 /^a*+b\d/DZ
1677
1678 /^a*?b\d/DZ
1679
1680 /^a+A\d/DZ
1681 aaaA5
1682 ** Failers
1683 aaaa5
1684
1685 /^a*A\d/IiDZ
1686 aaaA5
1687 aaaa5
1688
1689 /(a*|b*)[cd]/IS
1690
1691 /(a+|b*)[cd]/IS
1692
1693 /(a*|b+)[cd]/IS
1694
1695 /(a+|b+)[cd]/IS
1696
1697 /((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
1698 ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
1699 (((
1700 a
1701 ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
1702 ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
1703 )))
1704 /Ix
1705 large nest
1706
1707 /a*\d/BZ
1708
1709 /a*\D/BZ
1710
1711 /0*\d/BZ
1712
1713 /0*\D/BZ
1714
1715 /a*\s/BZ
1716
1717 /a*\S/BZ
1718
1719 / *\s/BZ
1720
1721 / *\S/BZ
1722
1723 /a*\w/BZ
1724
1725 /a*\W/BZ
1726
1727 /=*\w/BZ
1728
1729 /=*\W/BZ
1730
1731 /\d*a/BZ
1732
1733 /\d*2/BZ
1734
1735 /\d*\d/BZ
1736
1737 /\d*\D/BZ
1738
1739 /\d*\s/BZ
1740
1741 /\d*\S/BZ
1742
1743 /\d*\w/BZ
1744
1745 /\d*\W/BZ
1746
1747 /\D*a/BZ
1748
1749 /\D*2/BZ
1750
1751 /\D*\d/BZ
1752
1753 /\D*\D/BZ
1754
1755 /\D*\s/BZ
1756
1757 /\D*\S/BZ
1758
1759 /\D*\w/BZ
1760
1761 /\D*\W/BZ
1762
1763 /\s*a/BZ
1764
1765 /\s*2/BZ
1766
1767 /\s*\d/BZ
1768
1769 /\s*\D/BZ
1770
1771 /\s*\s/BZ
1772
1773 /\s*\S/BZ
1774
1775 /\s*\w/BZ
1776
1777 /\s*\W/BZ
1778
1779 /\S*a/BZ
1780
1781 /\S*2/BZ
1782
1783 /\S*\d/BZ
1784
1785 /\S*\D/BZ
1786
1787 /\S*\s/BZ
1788
1789 /\S*\S/BZ
1790
1791 /\S*\w/BZ
1792
1793 /\S*\W/BZ
1794
1795 /\w*a/BZ
1796
1797 /\w*2/BZ
1798
1799 /\w*\d/BZ
1800
1801 /\w*\D/BZ
1802
1803 /\w*\s/BZ
1804
1805 /\w*\S/BZ
1806
1807 /\w*\w/BZ
1808
1809 /\w*\W/BZ
1810
1811 /\W*a/BZ
1812
1813 /\W*2/BZ
1814
1815 /\W*\d/BZ
1816
1817 /\W*\D/BZ
1818
1819 /\W*\s/BZ
1820
1821 /\W*\S/BZ
1822
1823 /\W*\w/BZ
1824
1825 /\W*\W/BZ
1826
1827 /[^a]+a/BZ
1828
1829 /[^a]+a/BZi
1830
1831 /[^a]+A/BZi
1832
1833 /[^a]+b/BZ
1834
1835 /[^a]+\d/BZ
1836
1837 /a*[^a]/BZ
1838
1839 /(?P<abc>x)(?P<xyz>y)/I
1840 xy\Cabc\Cxyz
1841
1842 /(?<abc>x)(?'xyz'y)/I
1843 xy\Cabc\Cxyz
1844
1845 /(?<abc'x)(?'xyz'y)/I
1846
1847 /(?<abc>x)(?'xyz>y)/I
1848
1849 /(?P'abc'x)(?P<xyz>y)/I
1850
1851 /^(?:(?(ZZ)a|b)(?<ZZ>X))+/
1852 bXaX
1853 bXbX
1854 ** Failers
1855 aXaX
1856 aXbX
1857
1858 /^(?P>abc)(?<abcd>xxx)/
1859
1860 /^(?P>abc)(?<abc>x|y)/
1861 xx
1862 xy
1863 yy
1864 yx
1865
1866 /^(?P>abc)(?P<abc>x|y)/
1867 xx
1868 xy
1869 yy
1870 yx
1871
1872 /^((?(abc)a|b)(?<abc>x|y))+/
1873 bxay
1874 bxby
1875 ** Failers
1876 axby
1877
1878 /^(((?P=abc)|X)(?<abc>x|y))+/
1879 XxXxxx
1880 XxXyyx
1881 XxXyxx
1882 ** Failers
1883 x
1884
1885 /^(?1)(abc)/
1886 abcabc
1887
1888 /^(?:(?:\1|X)(a|b))+/
1889 Xaaa
1890 Xaba
1891
1892 /^[\E\Qa\E-\Qz\E]+/BZ
1893
1894 /^[a\Q]bc\E]/BZ
1895
1896 /^[a-\Q\E]/BZ
1897
1898 /^(?P>abc)[()](?<abc>)/BZ
1899
1900 /^((?(abc)y)[()](?P<abc>x))+/BZ
1901 (xy)x
1902
1903 /^(?P>abc)\Q()\E(?<abc>)/BZ
1904
1905 /^(?P>abc)[a\Q(]\E(](?<abc>)/BZ
1906
1907 /^(?P>abc) # this is (a comment)
1908 (?<abc>)/BZx
1909
1910 /^\W*(?:(?<one>(?<two>.)\W*(?&one)\W*\k<two>|)|(?<three>(?<four>.)\W*(?&three)\W*\k'four'|\W*.\W*))\W*$/Ii
1911 1221
1912 Satan, oscillate my metallic sonatas!
1913 A man, a plan, a canal: Panama!
1914 Able was I ere I saw Elba.
1915 *** Failers
1916 The quick brown fox
1917
1918 /(?=(\w+))\1:/I
1919 abcd:
1920
1921 /(?=(?'abc'\w+))\k<abc>:/I
1922 abcd:
1923
1924 /(?'abc'a|b)(?<abc>d|e)\k<abc>{2}/J
1925 adaa
1926 ** Failers
1927 addd
1928 adbb
1929
1930 /(?'abc'a|b)(?<abc>d|e)(?&abc){2}/J
1931 bdaa
1932 bdab
1933 ** Failers
1934 bddd
1935
1936 /(?(<bc))/
1937
1938 /(?(''))/
1939
1940 /(?('R')stuff)/
1941
1942 /((abc (?(R) (?(R1)1) (?(R2)2) X | (?1) (?2) (?R) ))) /x
1943 abcabc1Xabc2XabcXabcabc
1944
1945 /(?<A> (?'B' abc (?(R) (?(R&A)1) (?(R&B)2) X | (?1) (?2) (?R) ))) /x
1946 abcabc1Xabc2XabcXabcabc
1947
1948 /(?<A> (?'B' abc (?(R) (?(R&1)1) (?(R&B)2) X | (?1) (?2) (?R) ))) /x
1949
1950 /(?<1> (?'B' abc (?(R) (?(R&1)1) (?(R&B)2) X | (?1) (?2) (?R) ))) /x
1951 abcabc1Xabc2XabcXabcabc
1952
1953 /^(?(DEFINE) abc | xyz ) /x
1954
1955 /(?(DEFINE) abc) xyz/xI
1956
1957 /(a|)*\d/
1958 \O0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1959 \O0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa4
1960
1961 /^a.b/<lf>
1962 a\rb
1963 a\nb\<cr>
1964 a\x85b\<anycrlf>
1965 ** Failers
1966 a\nb
1967 a\nb\<any>
1968 a\rb\<cr>
1969 a\rb\<any>
1970 a\x85b\<any>
1971 a\rb\<anycrlf>
1972
1973 /^abc./mgx<any>
1974 abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x85abc7 JUNK
1975
1976 /abc.$/mgx<any>
1977 abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x85 abc7 abc9
1978
1979 /a/<cr><any>
1980
1981 /a/<any><crlf>
1982
1983 /^a\Rb/<bsr_unicode>
1984 a\nb
1985 a\rb
1986 a\r\nb
1987 a\x0bb
1988 a\x0cb
1989 a\x85b
1990 ** Failers
1991 a\n\rb
1992
1993 /^a\R*b/<bsr_unicode>
1994 ab
1995 a\nb
1996 a\rb
1997 a\r\nb
1998 a\x0bb
1999 a\x0cb
2000 a\x85b
2001 a\n\rb
2002 a\n\r\x85\x0cb
2003
2004 /^a\R+b/<bsr_unicode>
2005 a\nb
2006 a\rb
2007 a\r\nb
2008 a\x0bb
2009 a\x0cb
2010 a\x85b
2011 a\n\rb
2012 a\n\r\x85\x0cb
2013 ** Failers
2014 ab
2015
2016 /^a\R{1,3}b/<bsr_unicode>
2017 a\nb
2018 a\n\rb
2019 a\n\r\x85b
2020 a\r\n\r\nb
2021 a\r\n\r\n\r\nb
2022 a\n\r\n\rb
2023 a\n\n\r\nb
2024 ** Failers
2025 a\n\n\n\rb
2026 a\r
2027
2028 /^a[\R]b/<bsr_unicode>
2029 aRb
2030 ** Failers
2031 a\nb
2032
2033 /(?&abc)X(?<abc>P)/I
2034 abcPXP123
2035
2036 /(?1)X(?<abc>P)/I
2037 abcPXP123
2038
2039 /(?:a(?&abc)b)*(?<abc>x)/
2040 123axbaxbaxbx456
2041 123axbaxbaxb456
2042
2043 /(?:a(?&abc)b){1,5}(?<abc>x)/
2044 123axbaxbaxbx456
2045
2046 /(?:a(?&abc)b){2,5}(?<abc>x)/
2047 123axbaxbaxbx456
2048
2049 /(?:a(?&abc)b){2,}(?<abc>x)/
2050 123axbaxbaxbx456
2051
2052 /(abc)(?i:(?1))/
2053 defabcabcxyz
2054 DEFabcABCXYZ
2055
2056 /(abc)(?:(?i)(?1))/
2057 defabcabcxyz
2058 DEFabcABCXYZ
2059
2060 /^(a)\g-2/
2061
2062 /^(a)\g/
2063
2064 /^(a)\g{0}/
2065
2066 /^(a)\g{3/
2067
2068 /^(a)\g{4a}/
2069
2070 /^a.b/<lf>
2071 a\rb
2072 *** Failers
2073 a\nb
2074
2075 /.+foo/
2076 afoo
2077 ** Failers
2078 \r\nfoo
2079 \nfoo
2080
2081 /.+foo/<crlf>
2082 afoo
2083 \nfoo
2084 ** Failers
2085 \r\nfoo
2086
2087 /.+foo/<any>
2088 afoo
2089 ** Failers
2090 \nfoo
2091 \r\nfoo
2092
2093 /.+foo/s
2094 afoo
2095 \r\nfoo
2096 \nfoo
2097
2098 /^$/mg<any>
2099 abc\r\rxyz
2100 abc\n\rxyz
2101 ** Failers
2102 abc\r\nxyz
2103
2104 /(?m)^$/<any>g+
2105 abc\r\n\r\n
2106
2107 /(?m)^$|^\r\n/<any>g+
2108 abc\r\n\r\n
2109
2110 /(?m)$/<any>g+
2111 abc\r\n\r\n
2112
2113 /abc.$/mgx<anycrlf>
2114 abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x85 abc9
2115
2116 /^X/m
2117 XABC
2118 ** Failers
2119 XABC\B
2120
2121 /(ab|c)(?-1)/BZ
2122 abc
2123
2124 /xy(?+1)(abc)/BZ
2125 xyabcabc
2126 ** Failers
2127 xyabc
2128
2129 /x(?-0)y/
2130
2131 /x(?-1)y/
2132
2133 /x(?+0)y/
2134
2135 /x(?+1)y/
2136
2137 /^(abc)?(?(-1)X|Y)/BZ
2138 abcX
2139 Y
2140 ** Failers
2141 abcY
2142
2143 /^((?(+1)X|Y)(abc))+/BZ
2144 YabcXabc
2145 YabcXabcXabc
2146 ** Failers
2147 XabcXabc
2148
2149 /(?(-1)a)/BZ
2150
2151 /((?(-1)a))/BZ
2152
2153 /((?(-2)a))/BZ
2154
2155 /^(?(+1)X|Y)(.)/BZ
2156 Y!
2157
2158 /(?<A>tom|bon)-\k{A}/
2159 tom-tom
2160 bon-bon
2161 ** Failers
2162 tom-bon
2163
2164 /\g{A/
2165
2166 /(?|(abc)|(xyz))/BZ
2167 >abc<
2168 >xyz<
2169
2170 /(x)(?|(abc)|(xyz))(x)/BZ
2171 xabcx
2172 xxyzx
2173
2174 /(x)(?|(abc)(pqr)|(xyz))(x)/BZ
2175 xabcpqrx
2176 xxyzx
2177
2178 /[\h]/BZ
2179 >\x09<
2180
2181 /[\h]+/BZ
2182 >\x09\x20\xa0<
2183
2184 /[\v]/BZ
2185
2186 /[\H]/BZ
2187
2188 /[^\h]/BZ
2189
2190 /[\V]/BZ
2191
2192 /[\x0a\V]/BZ
2193
2194 /\H++X/BZ
2195 ** Failers
2196 XXXX
2197
2198 /\H+\hY/BZ
2199 XXXX Y
2200
2201 /\H+ Y/BZ
2202
2203 /\h+A/BZ
2204
2205 /\v*B/BZ
2206
2207 /\V+\x0a/BZ
2208
2209 /A+\h/BZ
2210
2211 / *\H/BZ
2212
2213 /A*\v/BZ
2214
2215 /\x0b*\V/BZ
2216
2217 /\d+\h/BZ
2218
2219 /\d*\v/BZ
2220
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0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)
2235
2236 /[\E]AAA/
2237
2238 /[\Q\E]AAA/
2239
2240 /[^\E]AAA/
2241
2242 /[^\Q\E]AAA/
2243
2244 /[\E^]AAA/
2245
2246 /[\Q\E^]AAA/
2247
2248 /A(*PRUNE)B(*SKIP)C(*THEN)D(*COMMIT)E(*F)F(*FAIL)G(?!)H(*ACCEPT)I/BZ
2249
2250 /^a+(*FAIL)/C
2251 aaaaaa
2252
2253 /a+b?c+(*FAIL)/C
2254 aaabccc
2255
2256 /a+b?(*PRUNE)c+(*FAIL)/C
2257 aaabccc
2258
2259 /a+b?(*COMMIT)c+(*FAIL)/C
2260 aaabccc
2261
2262 /a+b?(*SKIP)c+(*FAIL)/C
2263 aaabcccaaabccc
2264
2265 /a+b?(*THEN)c+(*FAIL)/C
2266 aaabccc
2267
2268 /a(*MARK)b/
2269
2270 /(?i:A{1,}\6666666666)/
2271
2272 /\g6666666666/
2273
2274 /[\g6666666666]/BZ
2275
2276 /(?1)\c[/
2277
2278 /.+A/<crlf>
2279 \r\nA
2280
2281 /\nA/<crlf>
2282 \r\nA
2283
2284 /[\r\n]A/<crlf>
2285 \r\nA
2286
2287 /(\r|\n)A/<crlf>
2288 \r\nA
2289
2290 /a(*CR)b/
2291
2292 /(*CR)a.b/
2293 a\nb
2294 ** Failers
2295 a\rb
2296
2297 /(*CR)a.b/<lf>
2298 a\nb
2299 ** Failers
2300 a\rb
2301
2302 /(*LF)a.b/<CRLF>
2303 a\rb
2304 ** Failers
2305 a\nb
2306
2307 /(*CRLF)a.b/
2308 a\rb
2309 a\nb
2310 ** Failers
2311 a\r\nb
2312
2313 /(*ANYCRLF)a.b/<CR>
2314 ** Failers
2315 a\rb
2316 a\nb
2317 a\r\nb
2318
2319 /(*ANY)a.b/<cr>
2320 ** Failers
2321 a\rb
2322 a\nb
2323 a\r\nb
2324 a\x85b
2325
2326 /(*ANY).*/g
2327 abc\r\ndef
2328
2329 /(*ANYCRLF).*/g
2330 abc\r\ndef
2331
2332 /(*CRLF).*/g
2333 abc\r\ndef
2334
2335 /a\Rb/I<bsr_anycrlf>
2336 a\rb
2337 a\nb
2338 a\r\nb
2339 ** Failers
2340 a\x85b
2341 a\x0bb
2342
2343 /a\Rb/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?b/I<bsr_anycrlf>
2354 a\rb
2355 a\nb
2356 a\r\nb
2357 ** Failers
2358 a\x85b
2359 a\x0bb
2360
2361 /a\R?b/I<bsr_unicode>
2362 a\rb
2363 a\nb
2364 a\r\nb
2365 a\x85b
2366 a\x0bb
2367 ** Failers
2368 a\x85b\<bsr_anycrlf>
2369 a\x0bb\<bsr_anycrlf>
2370
2371 /a\R{2,4}b/I<bsr_anycrlf>
2372 a\r\n\nb
2373 a\n\r\rb
2374 a\r\n\r\n\r\n\r\nb
2375 ** Failers
2376 a\x85\85b
2377 a\x0b\0bb
2378
2379 /a\R{2,4}b/I<bsr_unicode>
2380 a\r\rb
2381 a\n\n\nb
2382 a\r\n\n\r\rb
2383 a\x85\85b
2384 a\x0b\0bb
2385 ** Failers
2386 a\r\r\r\r\rb
2387 a\x85\85b\<bsr_anycrlf>
2388 a\x0b\0bb\<bsr_anycrlf>
2389
2390 /(*BSR_ANYCRLF)a\Rb/I
2391 a\nb
2392 a\rb
2393
2394 /(*BSR_UNICODE)a\Rb/I
2395 a\x85b
2396
2397 /(*BSR_ANYCRLF)(*CRLF)a\Rb/I
2398 a\nb
2399 a\rb
2400
2401 /(*CRLF)(*BSR_UNICODE)a\Rb/I
2402 a\x85b
2403
2404 /(*CRLF)(*BSR_ANYCRLF)(*CR)ab/I
2405
2406 /(?<a>)(?&)/
2407
2408 /(?<abc>)(?&a)/
2409
2410 /(?<a>)(?&aaaaaaaaaaaaaaaaaaaaaaa)/
2411
2412 /(?+-a)/
2413
2414 /(?-+a)/
2415
2416 /(?(-1))/
2417
2418 /(?(+10))/
2419
2420 /(?(10))/
2421
2422 /(?(+2))()()/
2423
2424 /(?(2))()()/
2425
2426 /\k''/
2427
2428 /\k<>/
2429
2430 /\k{}/
2431
2432 /\k/
2433
2434 /\kabc/
2435
2436 /(?P=)/
2437
2438 /(?P>)/
2439
2440 /(?!\w)(?R)/
2441
2442 /(?=\w)(?R)/
2443
2444 /(?<!\w)(?R)/
2445
2446 /(?<=\w)(?R)/
2447
2448 /[[:foo:]]/
2449
2450 /[[:1234:]]/
2451
2452 /[[:f\oo:]]/
2453
2454 /[[: :]]/
2455
2456 /[[:...:]]/
2457
2458 /[[:l\ower:]]/
2459
2460 /[[:abc\:]]/
2461
2462 /[abc[:x\]pqr:]]/
2463
2464 /[[:a\dz:]]/
2465
2466 /(^(a|b\g<-1'c))/
2467
2468 /^(?+1)(?<a>x|y){0}z/
2469 xzxx
2470 yzyy
2471 ** Failers
2472 xxz
2473
2474 /(\3)(\1)(a)/
2475 cat
2476
2477 /(\3)(\1)(a)/<JS>
2478 cat
2479
2480 /TA]/
2481 The ACTA] comes
2482
2483 /TA]/<JS>
2484 The ACTA] comes
2485
2486 /(?2)[]a()b](abc)/
2487 abcbabc
2488
2489 /(?2)[^]a()b](abc)/
2490 abcbabc
2491
2492 /(?1)[]a()b](abc)/
2493 abcbabc
2494 ** Failers
2495 abcXabc
2496
2497 /(?1)[^]a()b](abc)/
2498 abcXabc
2499 ** Failers
2500 abcbabc
2501
2502 /(?2)[]a()b](abc)(xyz)/
2503 xyzbabcxyz
2504
2505 /(?&N)[]a(?<N>)](?<M>abc)/
2506 abc<abc
2507
2508 /(?&N)[]a(?<N>)](abc)/
2509 abc<abc
2510
2511 /a[]b/
2512
2513 /a[^]b/
2514
2515 /a[]b/<JS>
2516 ** Failers
2517 ab
2518
2519 /a[]+b/<JS>
2520 ** Failers
2521 ab
2522
2523 /a[]*+b/<JS>
2524 ** Failers
2525 ab
2526
2527 /a[^]b/<JS>
2528 aXb
2529 a\nb
2530 ** Failers
2531 ab
2532
2533 /a[^]+b/<JS>
2534 aXb
2535 a\nX\nXb
2536 ** Failers
2537 ab
2538
2539 /a(?!)+b/
2540
2541 /a(*FAIL)+b/
2542
2543 /(abc|pqr|123){0}[xyz]/SI
2544
2545 /(?(?=.*b)b|^)/CI
2546 adc
2547 abc
2548
2549 /(?(?=b).*b|^d)/I
2550
2551 /(?(?=.*b).*b|^d)/I
2552
2553 /xyz/C
2554 xyz
2555 abcxyz
2556 abcxyz\Y
2557 ** Failers
2558 abc
2559 abc\Y
2560 abcxypqr
2561 abcxypqr\Y
2562
2563 /(*NO_START_OPT)xyz/C
2564 abcxyz
2565
2566 /xyz/CY
2567 abcxyz
2568
2569 /^"((?(?=[a])[^"])|b)*"$/C
2570 "ab"
2571
2572 /^"((?(?=[a])[^"])|b)*"$/
2573 "ab"
2574
2575 /^X(?5)(a)(?|(b)|(q))(c)(d)Y/
2576 XYabcdY
2577
2578 /^X(?&N)(a)(?|(b)|(q))(c)(d)(?<N>Y)/
2579 XYabcdY
2580
2581 /Xa{2,4}b/
2582 X\P
2583 Xa\P
2584 Xaa\P
2585 Xaaa\P
2586 Xaaaa\P
2587
2588 /Xa{2,4}?b/
2589 X\P
2590 Xa\P
2591 Xaa\P
2592 Xaaa\P
2593 Xaaaa\P
2594
2595 /Xa{2,4}+b/
2596 X\P
2597 Xa\P
2598 Xaa\P
2599 Xaaa\P
2600 Xaaaa\P
2601
2602 /X\d{2,4}b/
2603 X\P
2604 X3\P
2605 X33\P
2606 X333\P
2607 X3333\P
2608
2609 /X\d{2,4}?b/
2610 X\P
2611 X3\P
2612 X33\P
2613 X333\P
2614 X3333\P
2615
2616 /X\d{2,4}+b/
2617 X\P
2618 X3\P
2619 X33\P
2620 X333\P
2621 X3333\P
2622
2623 /X\D{2,4}b/
2624 X\P
2625 Xa\P
2626 Xaa\P
2627 Xaaa\P
2628 Xaaaa\P
2629
2630 /X\D{2,4}?b/
2631 X\P
2632 Xa\P
2633 Xaa\P
2634 Xaaa\P
2635 Xaaaa\P
2636
2637 /X\D{2,4}+b/
2638 X\P
2639 Xa\P
2640 Xaa\P
2641 Xaaa\P
2642 Xaaaa\P
2643
2644 /X[abc]{2,4}b/
2645 X\P
2646 Xa\P
2647 Xaa\P
2648 Xaaa\P
2649 Xaaaa\P
2650
2651 /X[abc]{2,4}?b/
2652 X\P
2653 Xa\P
2654 Xaa\P
2655 Xaaa\P
2656 Xaaaa\P
2657
2658 /X[abc]{2,4}+b/
2659 X\P
2660 Xa\P
2661 Xaa\P
2662 Xaaa\P
2663 Xaaaa\P
2664
2665 /X[^a]{2,4}b/
2666 X\P
2667 Xz\P
2668 Xzz\P
2669 Xzzz\P
2670 Xzzzz\P
2671
2672 /X[^a]{2,4}?b/
2673 X\P
2674 Xz\P
2675 Xzz\P
2676 Xzzz\P
2677 Xzzzz\P
2678
2679 /X[^a]{2,4}+b/
2680 X\P
2681 Xz\P
2682 Xzz\P
2683 Xzzz\P
2684 Xzzzz\P
2685
2686 /(Y)X\1{2,4}b/
2687 YX\P
2688 YXY\P
2689 YXYY\P
2690 YXYYY\P
2691 YXYYYY\P
2692
2693 /(Y)X\1{2,4}?b/
2694 YX\P
2695 YXY\P
2696 YXYY\P
2697 YXYYY\P
2698 YXYYYY\P
2699
2700 /(Y)X\1{2,4}+b/
2701 YX\P
2702 YXY\P
2703 YXYY\P
2704 YXYYY\P
2705 YXYYYY\P
2706
2707 /\++\KZ|\d+X|9+Y/
2708 ++++123999\P
2709 ++++123999Y\P
2710 ++++Z1234\P
2711
2712 /Z(*F)/
2713 Z\P
2714 ZA\P
2715
2716 /Z(?!)/
2717 Z\P
2718 ZA\P
2719
2720 /dog(sbody)?/
2721 dogs\P
2722 dogs\P\P
2723
2724 /dog(sbody)??/
2725 dogs\P
2726 dogs\P\P
2727
2728 /dog|dogsbody/
2729 dogs\P
2730 dogs\P\P
2731
2732 /dogsbody|dog/
2733 dogs\P
2734 dogs\P\P
2735
2736 /\bthe cat\b/
2737 the cat\P
2738 the cat\P\P
2739
2740 /abc/
2741 abc\P
2742 abc\P\P
2743
2744 /abc\K123/
2745 xyzabc123pqr
2746 xyzabc12\P
2747 xyzabc12\P\P
2748
2749 /(?<=abc)123/
2750 xyzabc123pqr
2751 xyzabc12\P
2752 xyzabc12\P\P
2753
2754 /\babc\b/
2755 +++abc+++
2756 +++ab\P
2757 +++ab\P\P
2758
2759 /(?&word)(?&element)(?(DEFINE)(?<element><[^m][^>]>[^<])(?<word>\w*+))/BZ
2760
2761 /(?&word)(?&element)(?(DEFINE)(?<element><[^\d][^>]>[^<])(?<word>\w*+))/BZ
2762
2763 /(ab)(x(y)z(cd(*ACCEPT)))pq/BZ
2764
2765 /abc\K/+
2766 abcdef
2767 abcdef\N\N
2768 xyzabcdef\N\N
2769 ** Failers
2770 abcdef\N
2771 xyzabcdef\N
2772
2773 /^(?:(?=abc)|abc\K)/+
2774 abcdef
2775 abcdef\N\N
2776 ** Failers
2777 abcdef\N
2778
2779 /a?b?/+
2780 xyz
2781 xyzabc
2782 xyzabc\N
2783 xyzabc\N\N
2784 xyz\N\N
2785 ** Failers
2786 xyz\N
2787
2788 /^a?b?/+
2789 xyz
2790 xyzabc
2791 ** Failers
2792 xyzabc\N
2793 xyzabc\N\N
2794 xyz\N\N
2795 xyz\N
2796
2797 /^(?<name>a|b\g<name>c)/
2798 aaaa
2799 bacxxx
2800 bbaccxxx
2801 bbbacccxx
2802
2803 /^(?<name>a|b\g'name'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 /^(a|b\g'1'c)/
2816 aaaa
2817 bacxxx
2818 bbaccxxx
2819 bbbacccxx
2820
2821 /^(a|b\g'-1'c)/
2822 aaaa
2823 bacxxx
2824 bbaccxxx
2825 bbbacccxx
2826
2827 /(^(a|b\g<-1>c))/
2828 aaaa
2829 bacxxx
2830 bbaccxxx
2831 bbbacccxx
2832
2833 /(?-i:\g<name>)(?i:(?<name>a))/
2834 XaaX
2835 XAAX
2836
2837 /(?i:\g<name>)(?-i:(?<name>a))/
2838 XaaX
2839 ** Failers
2840 XAAX
2841
2842 /(?-i:\g<+1>)(?i:(a))/
2843 XaaX
2844 XAAX
2845
2846 /(?=(?<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>\})\}))\{/
2847
2848 /(?<n>a|b|c)\g<n>*/
2849 abc
2850 accccbbb
2851
2852 /^X(?7)(a)(?|(b)|(q)(r)(s))(c)(d)(Y)/
2853 XYabcdY
2854
2855 /(?<=b(?1)|zzz)(a)/
2856 xbaax
2857 xzzzax
2858
2859 /(a)(?<=b\1)/
2860
2861 /(a)(?<=b+(?1))/
2862
2863 /(a+)(?<=b(?1))/
2864
2865 /(a(?<=b(?1)))/
2866
2867 /(?<=b(?1))xyz/
2868
2869 /(?<=b(?1))xyz(b+)pqrstuvew/
2870
2871 /(a|bc)\1/SI
2872
2873 /(a|bc)\1{2,3}/SI
2874
2875 /(a|bc)(?1)/SI
2876
2877 /(a|b\1)(a|b\1)/SI
2878
2879 /(a|b\1){2}/SI
2880
2881 /(a|bbbb\1)(a|bbbb\1)/SI
2882
2883 /(a|bbbb\1){2}/SI
2884
2885 /^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
2886
2887 /<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
2888
2889 "(?>.*/)foo"SI
2890
2891 /(?(?=[^a-z]+[a-z]) \d{2}-[a-z]{3}-\d{2} | \d{2}-\d{2}-\d{2} ) /xSI
2892
2893 /(?:(?:(?:(?:(?:(?:(?:(?:(?:(a|b|c))))))))))/iSI
2894
2895 /(?:c|d)(?:)(?:aaaaaaaa(?:)(?:bbbbbbbb)(?:bbbbbbbb(?:))(?:bbbbbbbb(?:)(?:bbbbbbbb)))/SI
2896
2897 /<a[\s]+href[\s]*=[\s]* # find <a href=
2898 ([\"\'])? # find single or double quote
2899 (?(1) (.*?)\1 | ([^\s]+)) # if quote found, match up to next matching
2900 # quote, otherwise match up to next space
2901 /isxSI
2902
2903 /^(?!:) # colon disallowed at start
2904 (?: # start of item
2905 (?: [0-9a-f]{1,4} | # 1-4 hex digits or
2906 (?(1)0 | () ) ) # if null previously matched, fail; else null
2907 : # followed by colon
2908 ){1,7} # end item; 1-7 of them required
2909 [0-9a-f]{1,4} $ # final hex number at end of string
2910 (?(1)|.) # check that there was an empty component
2911 /xiIS
2912
2913 /(?|(?<a>A)|(?<a>B))/I
2914 AB\Ca
2915 BA\Ca
2916
2917 /(?|(?<a>A)|(?<b>B))/
2918
2919 /(?:a(?<quote> (?<apostrophe>')|(?<realquote>")) |
2920 b(?<quote> (?<apostrophe>')|(?<realquote>")) )
2921 (?('quote')[a-z]+|[0-9]+)/JIx
2922 a"aaaaa
2923 b"aaaaa
2924 ** Failers
2925 b"11111
2926 a"11111
2927
2928 /^(?|(a)(b)(c)(?<D>d)|(?<D>e)) (?('D')X|Y)/JDZx
2929 abcdX
2930 eX
2931 ** Failers
2932 abcdY
2933 ey
2934
2935 /(?<A>a) (b)(c) (?<A>d (?(R&A)$ | (?4)) )/JDZx
2936 abcdd
2937 ** Failers
2938 abcdde
2939
2940 /abcd*/
2941 xxxxabcd\P
2942 xxxxabcd\P\P
2943
2944 /abcd*/i
2945 xxxxabcd\P
2946 xxxxabcd\P\P
2947 XXXXABCD\P
2948 XXXXABCD\P\P
2949
2950 /abc\d*/
2951 xxxxabc1\P
2952 xxxxabc1\P\P
2953
2954 /(a)bc\1*/
2955 xxxxabca\P
2956 xxxxabca\P\P
2957
2958 /abc[de]*/
2959 xxxxabcde\P
2960 xxxxabcde\P\P
2961
2962 /-- This is not in the Perl >= 5.10 test because Perl seems currently to be
2963 broken and not behaving as specified in that it *does* bumpalong after
2964 hitting (*COMMIT). --/
2965
2966 /(?1)(A(*COMMIT)|B)D/
2967 ABD
2968 XABD
2969 BAD
2970 ABXABD
2971 ** Failers
2972 ABX
2973 BAXBAD
2974
2975 /(\3)(\1)(a)/<JS>
2976 cat
2977
2978 /(\3)(\1)(a)/SI<JS>
2979 cat
2980
2981 /(\3)(\1)(a)/SI
2982 cat
2983
2984 /i(?(DEFINE)(?<s>a))/SI
2985 i
2986
2987 /()i(?(1)a)/SI
2988 ia
2989
2990 /(?i)a(?-i)b|c/BZ
2991 XabX
2992 XAbX
2993 CcC
2994 ** Failers
2995 XABX
2996
2997 /(?i)a(?s)b|c/BZ
2998
2999 /(?i)a(?s-i)b|c/BZ
3000
3001 /^(ab(c\1)d|x){2}$/BZ
3002 xabcxd
3003
3004 /^(?&t)*+(?(DEFINE)(?<t>.))$/BZ
3005
3006 /^(?&t)*(?(DEFINE)(?<t>.))$/BZ
3007
3008 / -- The first four of these are not in the Perl >= 5.10 test because Perl
3009 documents that the use of \K in assertions is "not well defined". The
3010 last is here because Perl gives the match as "b" rather than "ab". I
3011 believe this to be a Perl bug. --/
3012
3013 /(?=a\Kb)ab/
3014 ab
3015
3016 /(?!a\Kb)ac/
3017 ac
3018
3019 /^abc(?<=b\Kc)d/
3020 abcd
3021
3022 /^abc(?<!b\Kq)d/
3023 abcd
3024
3025 /(?>a\Kb)z|(ab)/
3026 ab
3027
3028 /----------------------/
3029
3030 /(?P<L1>(?P<L2>0|)|(?P>L2)(?P>L1))/
3031
3032 /abc(*MARK:)pqr/
3033
3034 /abc(*:)pqr/
3035
3036 /abc(*FAIL:123)xyz/
3037
3038 /--- This should, and does, fail. In Perl, it does not, which I think is a
3039 bug because replacing the B in the pattern by (B|D) does make it fail. ---/
3040
3041 /A(*COMMIT)B/+K
3042 ACABX
3043
3044 /--- These should be different, but in Perl 5.11 are not, which I think
3045 is a bug in Perl. ---/
3046
3047 /A(*THEN)B|A(*THEN)C/K
3048 AC
3049
3050 /A(*PRUNE)B|A(*PRUNE)C/K
3051 AC
3052
3053 /--- This should fail; the SKIP advances by one, but when we get to AC, the
3054 PRUNE kills it. Perl behaves differently. ---/
3055
3056 /A(*PRUNE:A)A+(*SKIP:A)(B|Z) | AC/xK
3057 AAAC
3058
3059 /--- Mark names can be duplicated. Perl doesn't give a mark for this one,
3060 though PCRE does. ---/
3061
3062 /^A(*:A)B|^X(*:A)Y/K
3063 ** Failers
3064 XAQQ
3065
3066 /--- COMMIT at the start of a pattern should be the same as an anchor. Perl
3067 optimizations defeat this. So does the PCRE optimization unless we disable it
3068 with \Y. ---/
3069
3070 /(*COMMIT)ABC/
3071 ABCDEFG
3072 ** Failers
3073 DEFGABC\Y
3074
3075 /^(ab (c+(*THEN)cd) | xyz)/x
3076 abcccd
3077
3078 /^(ab (c+(*PRUNE)cd) | xyz)/x
3079 abcccd
3080
3081 /^(ab (c+(*FAIL)cd) | xyz)/x
3082 abcccd
3083
3084 /--- Perl 5.11 gets some of these wrong ---/
3085
3086 /(?>.(*ACCEPT))*?5/
3087 abcde
3088
3089 /(.(*ACCEPT))*?5/
3090 abcde
3091
3092 /(.(*ACCEPT))5/
3093 abcde
3094
3095 /(.(*ACCEPT))*5/
3096 abcde
3097
3098 /A\NB./BZ
3099 ACBD
3100 *** Failers
3101 A\nB
3102 ACB\n
3103
3104 /A\NB./sBZ
3105 ACBD
3106 ACB\n
3107 *** Failers
3108 A\nB
3109
3110 /A\NB/<crlf>
3111 A\nB
3112 A\rB
3113 ** Failers
3114 A\r\nB
3115
3116 /\R+b/BZ
3117
3118 /\R+\n/BZ
3119
3120 /\R+\d/BZ
3121
3122 /\d*\R/BZ
3123
3124 /\s*\R/BZ
3125
3126 /-- Perl treats this one differently, not failing the second string. I believe
3127 that is a bug in Perl. --/
3128
3129 /^((abc|abcx)(*THEN)y|abcd)/
3130 abcd
3131 *** Failers
3132 abcxy
3133
3134 /(?<=abc)def/
3135 abc\P\P
3136
3137 /abc$/
3138 abc
3139 abc\P
3140 abc\P\P
3141
3142 /abc$/m
3143 abc
3144 abc\n
3145 abc\P\P
3146 abc\n\P\P
3147 abc\P
3148 abc\n\P
3149
3150 /abc\z/
3151 abc
3152 abc\P
3153 abc\P\P
3154
3155 /abc\Z/
3156 abc
3157 abc\P
3158 abc\P\P
3159
3160 /abc\b/
3161 abc
3162 abc\P
3163 abc\P\P
3164
3165 /abc\B/
3166 abc
3167 abc\P
3168 abc\P\P
3169
3170 /.+/
3171 abc\>0
3172 abc\>1
3173 abc\>2
3174 abc\>3
3175 abc\>4
3176 abc\>-4
3177
3178 /^\cģ/
3179
3180 /(?P<abn>(?P=abn)xxx)/BZ
3181
3182 /(a\1z)/BZ
3183
3184 /(?P<abn>(?P=abn)(?<badstufxxx)/BZ
3185
3186 /(?P<abn>(?P=axn)xxx)/BZ
3187
3188 /(?P<abn>(?P=axn)xxx)(?<axn>yy)/BZ
3189
3190 /-- These tests are here because Perl gets the first one wrong. --/
3191
3192 /(\R*)(.)/s
3193 \r\n
3194 \r\r\n\n\r
3195 \r\r\n\n\r\n
3196
3197 /(\R)*(.)/s
3198 \r\n
3199 \r\r\n\n\r
3200 \r\r\n\n\r\n
3201
3202 /((?>\r\n|\n|\x0b|\f|\r|\x85)*)(.)/s
3203 \r\n
3204 \r\r\n\n\r
3205 \r\r\n\n\r\n
3206
3207 /-- --/
3208
3209 /^abc$/BZ
3210
3211 /^abc$/BZm
3212
3213 /^(a)*+(\w)/S
3214 aaaaX
3215 ** Failers
3216 aaaa
3217
3218 /^(?:a)*+(\w)/S
3219 aaaaX
3220 ** Failers
3221 aaaa
3222
3223 /(a)++1234/SDZ
3224
3225 /([abc])++1234/SI
3226
3227 /(?<=(abc)+)X/
3228
3229 /(^ab)/I
3230
3231 /(^ab)++/I
3232
3233 /(^ab|^)+/I
3234
3235 /(^ab|^)++/I
3236
3237 /(?:^ab)/I
3238
3239 /(?:^ab)++/I
3240
3241 /(?:^ab|^)+/I
3242
3243 /(?:^ab|^)++/I
3244
3245 /(.*ab)/I
3246
3247 /(.*ab)++/I
3248
3249 /(.*ab|.*)+/I
3250
3251 /(.*ab|.*)++/I
3252
3253 /(?:.*ab)/I
3254
3255 /(?:.*ab)++/I
3256
3257 /(?:.*ab|.*)+/I
3258
3259 /(?:.*ab|.*)++/I
3260
3261 /(?=a)[bcd]/I
3262
3263 /((?=a))[bcd]/I
3264
3265 /((?=a))+[bcd]/I
3266
3267 /((?=a))++[bcd]/I
3268
3269 /(?=a+)[bcd]/iI
3270
3271 /(?=a+?)[bcd]/iI
3272
3273 /(?=a++)[bcd]/iI
3274
3275 /(?=a{3})[bcd]/iI
3276
3277 /(abc)\1+/S
3278
3279 /-- Perl doesn't get these right IMO (the 3rd is PCRE-specific) --/
3280
3281 /(?1)(?:(b(*ACCEPT))){0}/
3282 b
3283
3284 /(?1)(?:(b(*ACCEPT))){0}c/
3285 bc
3286 ** Failers
3287 b
3288
3289 /(?1)(?:((*ACCEPT))){0}c/
3290 c
3291 c\N
3292
3293 /^.*?(?(?=a)a|b(*THEN)c)/
3294 ba
3295
3296 /^.*?(?(?=a)a|bc)/
3297 ba
3298
3299 /^.*?(?(?=a)a(*THEN)b|c)/
3300 ac
3301
3302 /^.*?(?(?=a)a(*THEN)b)c/
3303 ac
3304
3305 /^.*?(a(*THEN)b)c/
3306 aabc
3307
3308 /^.*? (?1) c (?(DEFINE)(a(*THEN)b))/x
3309 aabc
3310
3311 /^.*?(a(*THEN)b|z)c/
3312 aabc
3313
3314 /^.*?(z|a(*THEN)b)c/
3315 aabc
3316
3317 /-- --/
3318
3319 /-- These studied versions are here because they are not Perl-compatible; the
3320 studying means the mark is not seen. --/
3321
3322 /(*MARK:A)(*SKIP:B)(C|X)/KS
3323 C
3324 D
3325
3326 /(*:A)A+(*SKIP:A)(B|Z)/KS
3327 AAAC
3328
3329 /-- --/
3330
3331 "(?=a*(*ACCEPT)b)c"
3332 c
3333 c\N
3334
3335 /(?1)c(?(DEFINE)((*ACCEPT)b))/
3336 c
3337 c\N
3338
3339 /(?>(*ACCEPT)b)c/
3340 c
3341 c\N
3342
3343 /(?:(?>(a)))+a%/++
3344 %aa%
3345
3346 /(a)b|ac/++SS
3347 ac\O3
3348
3349 /(a)(b)x|abc/++
3350 abc\O6
3351
3352 /(a)bc|(a)(b)\2/
3353 \O3abc
3354 \O4abc
3355
3356 /(?(DEFINE)(a(?2)|b)(b(?1)|a))(?:(?1)|(?2))/SI
3357
3358 /(a(?2)|b)(b(?1)|a)(?:(?1)|(?2))/SI
3359
3360 /(a(?2)|b)(b(?1)|a)(?1)(?2)/SI
3361
3362 /(abc)(?1)/SI
3363
3364 /^(?>a)++/
3365 aa\M
3366 aaaaaaaaa\M
3367
3368 /(a)(?1)++/
3369 aa\M
3370 aaaaaaaaa\M
3371
3372 /(?:(foo)|(bar)|(baz))X/SS=
3373 bazfooX
3374 foobazbarX
3375 barfooX
3376 bazX
3377 foobarbazX
3378 bazfooX\O0
3379 bazfooX\O2
3380 bazfooX\O4
3381 bazfooX\O6
3382 bazfooX\O8
3383 bazfooX\O10
3384
3385 /(?=abc){3}abc/BZ
3386
3387 /(?=abc)+abc/BZ
3388
3389 /(?=abc)++abc/BZ
3390
3391 /(?=abc){0}xyz/BZ
3392
3393 /(?=(a))?./BZ
3394
3395 /(?=(a))??./BZ
3396
3397 /^(?=(a)){0}b(?1)/BZ
3398
3399 /(?(DEFINE)(a))?b(?1)/BZ
3400
3401 /^(?=(?1))?[az]([abc])d/BZ
3402
3403 /^(?!a){0}\w+/BZ
3404
3405 /(?<=(abc))?xyz/BZ
3406
3407 /[:a[:abc]b:]/BZ
3408
3409 /((?2))((?1))/SS
3410 abc
3411
3412 /((?(R2)a+|(?1)b))/SS
3413 aaaabcde
3414
3415 /(?(R)a*(?1)|((?R))b)/SS
3416 aaaabcde
3417
3418 /(a+|(?R)b)/
3419
3420 /^(a(*:A)(d|e(*:B))z|aeq)/C
3421 adz
3422 aez
3423 aeqwerty
3424
3425 /.(*F)/
3426 \P\Pabc
3427
3428 /\btype\b\W*?\btext\b\W*?\bjavascript\b/IS
3429
3430 /\btype\b\W*?\btext\b\W*?\bjavascript\b|\burl\b\W*?\bshell:|<input\b.*?\btype\b\W*?\bimage\b|\bonkeyup\b\W*?\=/IS
3431
3432 /a(*SKIP)c|b(*ACCEPT)|/+SI
3433 a
3434
3435 /a(*SKIP)c|b(*ACCEPT)cd(*ACCEPT)|x/SI
3436 ax
3437
3438 'a*(*ACCEPT)b'+
3439 \N\N
3440 abc\N\N
3441 bbb\N\N
3442
3443 /(*ACCEPT)a/+I
3444 bax
3445
3446 /z(*ACCEPT)a/+I
3447 baxzbx
3448
3449 /a(?:.)*?a/ims
3450 \Mabbbbbbbbbbbbbbbbbbbbba
3451
3452 /a(?:.(*THEN))*?a/ims
3453 \Mabbbbbbbbbbbbbbbbbbbbba
3454
3455 /a(?:.(*THEN:ABC))*?a/ims
3456 \Mabbbbbbbbbbbbbbbbbbbbba
3457
3458 /-- These tests are in agreement with development Perl 5.015, which has fixed
3459 some things, but they don't all work with 5.012, so they aren't in the
3460 Perl-compatible tests. Those after the first come from Perl's own test
3461 files. --/
3462
3463 /^((yes|no)(*THEN)(*F))?/
3464 yes
3465
3466 /(A (.*) C? (*THEN) | A D) (*FAIL)/x
3467 AbcdCBefgBhiBqz
3468
3469 /(A (.*) C? (*THEN) | A D) z/x
3470 AbcdCBefgBhiBqz
3471
3472 /(A (.*) C? (*THEN) | A D) \s* (*FAIL)/x
3473 AbcdCBefgBhiBqz
3474
3475 /(A (.*) C? (*THEN) | A D) \s* z/x
3476 AbcdCBefgBhiBqz
3477
3478 /(A (.*) (?:C|) (*THEN) | A D) (*FAIL)/x
3479 AbcdCBefgBhiBqz
3480
3481 /(A (.*) (?:C|) (*THEN) | A D) z/x
3482 AbcdCBefgBhiBqz
3483
3484 /(A (.*) C{0,6} (*THEN) | A D) (*FAIL)/x
3485 AbcdCBefgBhiBqz
3486
3487 /(A (.*) C{0,6} (*THEN) | A D) z/x
3488 AbcdCBefgBhiBqz
3489
3490 /(A (.*) (CE){0,6} (*THEN) | A D) (*FAIL)/x
3491 AbcdCEBefgBhiBqz
3492
3493 /(A (.*) (CE){0,6} (*THEN) | A D) z/x
3494 AbcdCEBefgBhiBqz
3495
3496 /(A (.*) (CE*){0,6} (*THEN) | A D) (*FAIL)/x
3497 AbcdCBefgBhiBqz
3498
3499 /(A (.*) (CE*){0,6} (*THEN) | A D) z/x
3500 AbcdCBefgBhiBqz
3501
3502 /-----------------------------------------------/
3503
3504 /^(?>a+)(?>(z+))\w/BZ
3505 aaaazzzzb
3506 ** Failers
3507 aazz
3508
3509 /(.)(\1|a(?2))/
3510 bab
3511
3512 /\1|(.)(?R)\1/
3513 cbbbc
3514
3515 /(.)((?(1)c|a)|a(?2))/
3516 baa
3517
3518 /(?P<abn>(?P=abn)xxx)/BZ
3519
3520 /(a\1z)/BZ
3521
3522 /^(?>a+)(?>b+)(?>c+)(?>d+)(?>e+)/
3523 \Maabbccddee
3524
3525 /^(?>(a+))(?>(b+))(?>(c+))(?>(d+))(?>(e+))/
3526 \Maabbccddee
3527
3528 /^(?>(a+))(?>b+)(?>(c+))(?>d+)(?>(e+))/
3529 \Maabbccddee
3530
3531 /^a\x41z/<JS>
3532 aAz
3533 *** Failers
3534 ax41z
3535
3536 /^a[m\x41]z/<JS>
3537 aAz
3538
3539 /^a\x1z/<JS>
3540 ax1z
3541
3542 /^a\u0041z/<JS>
3543 aAz
3544 *** Failers
3545 au0041z
3546
3547 /^a[m\u0041]z/<JS>
3548 aAz
3549
3550 /^a\u041z/<JS>
3551 au041z
3552 *** Failers
3553 aAz
3554
3555 /^a\U0041z/<JS>
3556 aU0041z
3557 *** Failers
3558 aAz
3559
3560 /(?(?=c)c|d)++Y/BZ
3561
3562 /(?(?=c)c|d)*+Y/BZ
3563
3564 /a[\NB]c/
3565 aNc
3566
3567 /a[B-\Nc]/
3568
3569 /(a)(?2){0,1999}?(b)/
3570
3571 /(a)(?(DEFINE)(b))(?2){0,1999}?(?2)/
3572
3573 /--- This test, with something more complicated than individual letters, causes
3574 different behaviour in Perl. Perhaps it disables some optimization; no tag is
3575 passed back for the failures, whereas in PCRE there is a tag. ---/
3576
3577 /(A|P)(*:A)(B|P) | (X|P)(X|P)(*:B)(Y|P)/xK
3578 AABC
3579 XXYZ
3580 ** Failers
3581 XAQQ
3582 XAQQXZZ
3583 AXQQQ
3584 AXXQQQ
3585
3586 /-- Perl doesn't give marks for these, though it does if the alternatives are
3587 replaced by single letters. --/
3588
3589 /(b|q)(*:m)f|a(*:n)w/K
3590 aw
3591 ** Failers
3592 abc
3593
3594 /(q|b)(*:m)f|a(*:n)w/K
3595 aw
3596 ** Failers
3597 abc
3598
3599 /-- After a partial match, the behaviour is as for a failure. --/
3600
3601 /^a(*:X)bcde/K
3602 abc\P
3603
3604 /-- End of testinput2 --/

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5