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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 826 - (show annotations)
Tue Dec 27 09:42:33 2011 UTC (7 years, 7 months ago) by zherczeg
File size: 59298 byte(s)
fix horizontal and vertical white space ranges in 16 bit 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 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/\i
411
412 /(a)bc(d)/I
413 abcd
414 abcd\C2
415 abcd\C5
416
417 /(.{20})/I
418 abcdefghijklmnopqrstuvwxyz
419 abcdefghijklmnopqrstuvwxyz\C1
420 abcdefghijklmnopqrstuvwxyz\G1
421
422 /(.{15})/I
423 abcdefghijklmnopqrstuvwxyz
424 abcdefghijklmnopqrstuvwxyz\C1\G1
425
426 /(.{16})/I
427 abcdefghijklmnopqrstuvwxyz
428 abcdefghijklmnopqrstuvwxyz\C1\G1\L
429
430 /^(a|(bc))de(f)/I
431 adef\G1\G2\G3\G4\L
432 bcdef\G1\G2\G3\G4\L
433 adefghijk\C0
434
435 /^abc\00def/I
436 abc\00def\L\C0
437
438 /word ((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
439 )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
440 )?)?)?)?)?)?)?)?)?otherword/I
441
442 /.*X/IDZ
443
444 /.*X/IDZs
445
446 /(.*X|^B)/IDZ
447
448 /(.*X|^B)/IDZs
449
450 /(?s)(.*X|^B)/IDZ
451
452 /(?s:.*X|^B)/IDZ
453
454 /\Biss\B/I+
455 Mississippi
456
457 /iss/IG+
458 Mississippi
459
460 /\Biss\B/IG+
461 Mississippi
462
463 /\Biss\B/Ig+
464 Mississippi
465 *** Failers
466 Mississippi\A
467
468 /(?<=[Ms])iss/Ig+
469 Mississippi
470
471 /(?<=[Ms])iss/IG+
472 Mississippi
473
474 /^iss/Ig+
475 ississippi
476
477 /.*iss/Ig+
478 abciss\nxyzisspqr
479
480 /.i./I+g
481 Mississippi
482 Mississippi\A
483 Missouri river
484 Missouri river\A
485
486 /^.is/I+g
487 Mississippi
488
489 /^ab\n/Ig+
490 ab\nab\ncd
491
492 /^ab\n/Img+
493 ab\nab\ncd
494
495 /abc/I
496
497 /abc|bac/I
498
499 /(abc|bac)/I
500
501 /(abc|(c|dc))/I
502
503 /(abc|(d|de)c)/I
504
505 /a*/I
506
507 /a+/I
508
509 /(baa|a+)/I
510
511 /a{0,3}/I
512
513 /baa{3,}/I
514
515 /"([^\\"]+|\\.)*"/I
516
517 /(abc|ab[cd])/I
518
519 /(a|.)/I
520
521 /a|ba|\w/I
522
523 /abc(?=pqr)/I
524
525 /...(?<=abc)/I
526
527 /abc(?!pqr)/I
528
529 /ab./I
530
531 /ab[xyz]/I
532
533 /abc*/I
534
535 /ab.c*/I
536
537 /a.c*/I
538
539 /.c*/I
540
541 /ac*/I
542
543 /(a.c*|b.c*)/I
544
545 /a.c*|aba/I
546
547 /.+a/I
548
549 /(?=abcda)a.*/I
550
551 /(?=a)a.*/I
552
553 /a(b)*/I
554
555 /a\d*/I
556
557 /ab\d*/I
558
559 /a(\d)*/I
560
561 /abcde{0,0}/I
562
563 /ab\d+/I
564
565 /a(?(1)b)(.)/I
566
567 /a(?(1)bag|big)(.)/I
568
569 /a(?(1)bag|big)*(.)/I
570
571 /a(?(1)bag|big)+(.)/I
572
573 /a(?(1)b..|b..)(.)/I
574
575 /ab\d{0}e/I
576
577 /a?b?/I
578 a
579 b
580 ab
581 \
582 *** Failers
583 \N
584
585 /|-/I
586 abcd
587 -abc
588 \Nab-c
589 *** Failers
590 \Nabc
591
592 /^.?abcd/IS
593
594 /\( # ( at start
595 (?: # Non-capturing bracket
596 (?>[^()]+) # Either a sequence of non-brackets (no backtracking)
597 | # Or
598 (?R) # Recurse - i.e. nested bracketed string
599 )* # Zero or more contents
600 \) # Closing )
601 /Ix
602 (abcd)
603 (abcd)xyz
604 xyz(abcd)
605 (ab(xy)cd)pqr
606 (ab(xycd)pqr
607 () abc ()
608 12(abcde(fsh)xyz(foo(bar))lmno)89
609 *** Failers
610 abcd
611 abcd)
612 (abcd
613
614 /\( ( (?>[^()]+) | (?R) )* \) /Ixg
615 (ab(xy)cd)pqr
616 1(abcd)(x(y)z)pqr
617
618 /\( (?: (?>[^()]+) | (?R) ) \) /Ix
619 (abcd)
620 (ab(xy)cd)
621 (a(b(c)d)e)
622 ((ab))
623 *** Failers
624 ()
625
626 /\( (?: (?>[^()]+) | (?R) )? \) /Ix
627 ()
628 12(abcde(fsh)xyz(foo(bar))lmno)89
629
630 /\( ( (?>[^()]+) | (?R) )* \) /Ix
631 (ab(xy)cd)
632
633 /\( ( ( (?>[^()]+) | (?R) )* ) \) /Ix
634 (ab(xy)cd)
635
636 /\( (123)? ( ( (?>[^()]+) | (?R) )* ) \) /Ix
637 (ab(xy)cd)
638 (123ab(xy)cd)
639
640 /\( ( (123)? ( (?>[^()]+) | (?R) )* ) \) /Ix
641 (ab(xy)cd)
642 (123ab(xy)cd)
643
644 /\( (((((((((( ( (?>[^()]+) | (?R) )* )))))))))) \) /Ix
645 (ab(xy)cd)
646
647 /\( ( ( (?>[^()<>]+) | ((?>[^()]+)) | (?R) )* ) \) /Ix
648 (abcd(xyz<p>qrs)123)
649
650 /\( ( ( (?>[^()]+) | ((?R)) )* ) \) /Ix
651 (ab(cd)ef)
652 (ab(cd(ef)gh)ij)
653
654 /^[[:alnum:]]/DZ
655
656 /^[[:^alnum:]]/DZ
657
658 /^[[:alpha:]]/DZ
659
660 /^[[:^alpha:]]/DZ
661
662 /[_[:alpha:]]/IS
663
664 /^[[:ascii:]]/DZ
665
666 /^[[:^ascii:]]/DZ
667
668 /^[[:blank:]]/DZ
669
670 /^[[:^blank:]]/DZ
671
672 /[\n\x0b\x0c\x0d[:blank:]]/IS
673
674 /^[[:cntrl:]]/DZ
675
676 /^[[:digit:]]/DZ
677
678 /^[[:graph:]]/DZ
679
680 /^[[:lower:]]/DZ
681
682 /^[[:print:]]/DZ
683
684 /^[[:punct:]]/DZ
685
686 /^[[:space:]]/DZ
687
688 /^[[:upper:]]/DZ
689
690 /^[[:xdigit:]]/DZ
691
692 /^[[:word:]]/DZ
693
694 /^[[:^cntrl:]]/DZ
695
696 /^[12[:^digit:]]/DZ
697
698 /^[[:^blank:]]/DZ
699
700 /[01[:alpha:]%]/DZ
701
702 /[[.ch.]]/I
703
704 /[[=ch=]]/I
705
706 /[[:rhubarb:]]/I
707
708 /[[:upper:]]/Ii
709 A
710 a
711
712 /[[:lower:]]/Ii
713 A
714 a
715
716 /((?-i)[[:lower:]])[[:lower:]]/Ii
717 ab
718 aB
719 *** Failers
720 Ab
721 AB
722
723 /[\200-\110]/I
724
725 /^(?(0)f|b)oo/I
726
727 /This one's here because of the large output vector needed/I
728
729 /(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(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\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\w+)\s+(\270)/I
730 \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
731
732 /This one's here because Perl does this differently and PCRE can't at present/I
733
734 /(main(O)?)+/I
735 mainmain
736 mainOmain
737
738 /These are all cases where Perl does it differently (nested captures)/I
739
740 /^(a(b)?)+$/I
741 aba
742
743 /^(aa(bb)?)+$/I
744 aabbaa
745
746 /^(aa|aa(bb))+$/I
747 aabbaa
748
749 /^(aa(bb)??)+$/I
750 aabbaa
751
752 /^(?:aa(bb)?)+$/I
753 aabbaa
754
755 /^(aa(b(b))?)+$/I
756 aabbaa
757
758 /^(?:aa(b(b))?)+$/I
759 aabbaa
760
761 /^(?:aa(b(?:b))?)+$/I
762 aabbaa
763
764 /^(?:aa(bb(?:b))?)+$/I
765 aabbbaa
766
767 /^(?:aa(b(?:bb))?)+$/I
768 aabbbaa
769
770 /^(?:aa(?:b(b))?)+$/I
771 aabbaa
772
773 /^(?:aa(?:b(bb))?)+$/I
774 aabbbaa
775
776 /^(aa(b(bb))?)+$/I
777 aabbbaa
778
779 /^(aa(bb(bb))?)+$/I
780 aabbbbaa
781
782 /--------------------------------------------------------------------/I
783
784 /#/IxDZ
785
786 /a#/IxDZ
787
788 /[\s]/DZ
789
790 /[\S]/DZ
791
792 /a(?i)b/DZ
793 ab
794 aB
795 *** Failers
796 AB
797
798 /(a(?i)b)/DZ
799 ab
800 aB
801 *** Failers
802 AB
803
804 / (?i)abc/IxDZ
805
806 /#this is a comment
807 (?i)abc/IxDZ
808
809 /123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/DZ
810
811 /\Q123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/DZ
812
813 /\Q\E/DZ
814 \
815
816 /\Q\Ex/DZ
817
818 / \Q\E/DZ
819
820 /a\Q\E/DZ
821 abc
822 bca
823 bac
824
825 /a\Q\Eb/DZ
826 abc
827
828 /\Q\Eabc/DZ
829
830 /x*+\w/DZ
831 *** Failers
832 xxxxx
833
834 /x?+/DZ
835
836 /x++/DZ
837
838 /x{1,3}+/DZ
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 /^(?P<A>a)(?P<A>b)/IJ
1506 ab\CA
1507
1508 /^(?P<A>a)(?P<A>b)|cd/IJ
1509 ab\CA
1510 cd\CA
1511
1512 /^(?P<A>a)(?P<A>b)|cd(?P<A>ef)(?P<A>gh)/IJ
1513 cdefgh\CA
1514
1515 /^((?P<A>a1)|(?P<A>a2)b)/IJ
1516 a1b\GA
1517 a2b\GA
1518 ** Failers
1519 a1b\GZ\GA
1520
1521 /^(?P<A>a)(?P<A>b)/IJ
1522 ab\GA
1523
1524 /^(?P<A>a)(?P<A>b)|cd/IJ
1525 ab\GA
1526 cd\GA
1527
1528 /^(?P<A>a)(?P<A>b)|cd(?P<A>ef)(?P<A>gh)/IJ
1529 cdefgh\GA
1530
1531 /(?J)^((?P<A>a1)|(?P<A>a2)b)/I
1532 a1b\CA
1533 a2b\CA
1534
1535 /^(?P<A>a) (?J:(?P<B>b)(?P<B>c)) (?P<A>d)/I
1536
1537 / In this next test, J is not set at the outer level; consequently it isn't
1538 set in the pattern's options; consequently pcre_get_named_substring() produces
1539 a random value. /Ix
1540
1541 /^(?P<A>a) (?J:(?P<B>b)(?P<B>c)) (?P<C>d)/I
1542 a bc d\CA\CB\CC
1543
1544 /^(?P<A>a)?(?(A)a|b)/I
1545 aabc
1546 bc
1547 ** Failers
1548 abc
1549
1550 /(?:(?(ZZ)a|b)(?P<ZZ>X))+/I
1551 bXaX
1552
1553 /(?:(?(2y)a|b)(X))+/I
1554
1555 /(?:(?(ZA)a|b)(?P<ZZ>X))+/I
1556
1557 /(?:(?(ZZ)a|b)(?(ZZ)a|b)(?P<ZZ>X))+/I
1558 bbXaaX
1559
1560 /(?:(?(ZZ)a|\(b\))\\(?P<ZZ>X))+/I
1561 (b)\\Xa\\X
1562
1563 /(?P<ABC/I
1564
1565 /(?:(?(A)(?P=A)a|b)(?P<A>X|Y))+/I
1566 bXXaYYaY
1567 bXYaXXaX
1568
1569 /()()()()()()()()()(?:(?(A)(?P=A)a|b)(?P<A>X|Y))+/I
1570 bXXaYYaY
1571
1572 /\777/I
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
2211 /\H+\h\H+\d/BZ
2212
2213 /\V+\v\V+\w/BZ
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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 >= 5.10 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 / -- The first four of these are not in the Perl >= 5.10 test because Perl
2991 documents that the use of \K in assertions is "not well defined". The
2992 last is here because Perl gives the match as "b" rather than "ab". I
2993 believe this to be a Perl bug. --/
2994
2995 /(?=a\Kb)ab/
2996 ab
2997
2998 /(?!a\Kb)ac/
2999 ac
3000
3001 /^abc(?<=b\Kc)d/
3002 abcd
3003
3004 /^abc(?<!b\Kq)d/
3005 abcd
3006
3007 /(?>a\Kb)z|(ab)/
3008 ab
3009
3010 /----------------------/
3011
3012 /(?P<L1>(?P<L2>0|)|(?P>L2)(?P>L1))/
3013
3014 /abc(*MARK:)pqr/
3015
3016 /abc(*:)pqr/
3017
3018 /abc(*FAIL:123)xyz/
3019
3020 /--- This should, and does, fail. In Perl, it does not, which I think is a
3021 bug because replacing the B in the pattern by (B|D) does make it fail. ---/
3022
3023 /A(*COMMIT)B/+K
3024 ACABX
3025
3026 /--- These should be different, but in Perl 5.11 are not, which I think
3027 is a bug in Perl. ---/
3028
3029 /A(*THEN)B|A(*THEN)C/K
3030 AC
3031
3032 /A(*PRUNE)B|A(*PRUNE)C/K
3033 AC
3034
3035 /--- This should fail; the SKIP advances by one, but when we get to AC, the
3036 PRUNE kills it. Perl behaves differently. ---/
3037
3038 /A(*PRUNE:A)A+(*SKIP:A)(B|Z) | AC/xK
3039 AAAC
3040
3041 /--- Mark names can be duplicated. Perl doesn't give a mark for this one,
3042 though PCRE does. ---/
3043
3044 /^A(*:A)B|^X(*:A)Y/K
3045 ** Failers
3046 XAQQ
3047
3048 /--- COMMIT at the start of a pattern should be the same as an anchor. Perl
3049 optimizations defeat this. So does the PCRE optimization unless we disable it
3050 with \Y. ---/
3051
3052 /(*COMMIT)ABC/
3053 ABCDEFG
3054 ** Failers
3055 DEFGABC\Y
3056
3057 /^(ab (c+(*THEN)cd) | xyz)/x
3058 abcccd
3059
3060 /^(ab (c+(*PRUNE)cd) | xyz)/x
3061 abcccd
3062
3063 /^(ab (c+(*FAIL)cd) | xyz)/x
3064 abcccd
3065
3066 /--- Perl 5.11 gets some of these wrong ---/
3067
3068 /(?>.(*ACCEPT))*?5/
3069 abcde
3070
3071 /(.(*ACCEPT))*?5/
3072 abcde
3073
3074 /(.(*ACCEPT))5/
3075 abcde
3076
3077 /(.(*ACCEPT))*5/
3078 abcde
3079
3080 /A\NB./BZ
3081 ACBD
3082 *** Failers
3083 A\nB
3084 ACB\n
3085
3086 /A\NB./sBZ
3087 ACBD
3088 ACB\n
3089 *** Failers
3090 A\nB
3091
3092 /A\NB/<crlf>
3093 A\nB
3094 A\rB
3095 ** Failers
3096 A\r\nB
3097
3098 /\R+b/BZ
3099
3100 /\R+\n/BZ
3101
3102 /\R+\d/BZ
3103
3104 /\d*\R/BZ
3105
3106 /\s*\R/BZ
3107
3108 /-- Perl treats this one differently, not failing the second string. I believe
3109 that is a bug in Perl. --/
3110
3111 /^((abc|abcx)(*THEN)y|abcd)/
3112 abcd
3113 *** Failers
3114 abcxy
3115
3116 /(?<=abc)def/
3117 abc\P\P
3118
3119 /abc$/
3120 abc
3121 abc\P
3122 abc\P\P
3123
3124 /abc$/m
3125 abc
3126 abc\n
3127 abc\P\P
3128 abc\n\P\P
3129 abc\P
3130 abc\n\P
3131
3132 /abc\z/
3133 abc
3134 abc\P
3135 abc\P\P
3136
3137 /abc\Z/
3138 abc
3139 abc\P
3140 abc\P\P
3141
3142 /abc\b/
3143 abc
3144 abc\P
3145 abc\P\P
3146
3147 /abc\B/
3148 abc
3149 abc\P
3150 abc\P\P
3151
3152 /.+/
3153 abc\>0
3154 abc\>1
3155 abc\>2
3156 abc\>3
3157 abc\>4
3158 abc\>-4
3159
3160 /^\cģ/
3161
3162 /(?P<abn>(?P=abn)xxx)/BZ
3163
3164 /(a\1z)/BZ
3165
3166 /(?P<abn>(?P=abn)(?<badstufxxx)/BZ
3167
3168 /(?P<abn>(?P=axn)xxx)/BZ
3169
3170 /(?P<abn>(?P=axn)xxx)(?<axn>yy)/BZ
3171
3172 /-- These tests are here because Perl gets the first one wrong. --/
3173
3174 /(\R*)(.)/s
3175 \r\n
3176 \r\r\n\n\r
3177 \r\r\n\n\r\n
3178
3179 /(\R)*(.)/s
3180 \r\n
3181 \r\r\n\n\r
3182 \r\r\n\n\r\n
3183
3184 /((?>\r\n|\n|\x0b|\f|\r|\x85)*)(.)/s
3185 \r\n
3186 \r\r\n\n\r
3187 \r\r\n\n\r\n
3188
3189 /-- --/
3190
3191 /^abc$/BZ
3192
3193 /^abc$/BZm
3194
3195 /^(a)*+(\w)/S
3196 aaaaX
3197 ** Failers
3198 aaaa
3199
3200 /^(?:a)*+(\w)/S
3201 aaaaX
3202 ** Failers
3203 aaaa
3204
3205 /(a)++1234/SDZ
3206
3207 /([abc])++1234/SI
3208
3209 /(?<=(abc)+)X/
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 /(.*ab|.*)+/I
3232
3233 /(.*ab|.*)++/I
3234
3235 /(?:.*ab)/I
3236
3237 /(?:.*ab)++/I
3238
3239 /(?:.*ab|.*)+/I
3240
3241 /(?:.*ab|.*)++/I
3242
3243 /(?=a)[bcd]/I
3244
3245 /((?=a))[bcd]/I
3246
3247 /((?=a))+[bcd]/I
3248
3249 /((?=a))++[bcd]/I
3250
3251 /(?=a+)[bcd]/iI
3252
3253 /(?=a+?)[bcd]/iI
3254
3255 /(?=a++)[bcd]/iI
3256
3257 /(?=a{3})[bcd]/iI
3258
3259 /(abc)\1+/S
3260
3261 /-- Perl doesn't get these right IMO (the 3rd is PCRE-specific) --/
3262
3263 /(?1)(?:(b(*ACCEPT))){0}/
3264 b
3265
3266 /(?1)(?:(b(*ACCEPT))){0}c/
3267 bc
3268 ** Failers
3269 b
3270
3271 /(?1)(?:((*ACCEPT))){0}c/
3272 c
3273 c\N
3274
3275 /^.*?(?(?=a)a|b(*THEN)c)/
3276 ba
3277
3278 /^.*?(?(?=a)a|bc)/
3279 ba
3280
3281 /^.*?(?(?=a)a(*THEN)b|c)/
3282 ac
3283
3284 /^.*?(?(?=a)a(*THEN)b)c/
3285 ac
3286
3287 /^.*?(a(*THEN)b)c/
3288 aabc
3289
3290 /^.*? (?1) c (?(DEFINE)(a(*THEN)b))/x
3291 aabc
3292
3293 /^.*?(a(*THEN)b|z)c/
3294 aabc
3295
3296 /^.*?(z|a(*THEN)b)c/
3297 aabc
3298
3299 /-- --/
3300
3301 /-- These studied versions are here because they are not Perl-compatible; the
3302 studying means the mark is not seen. --/
3303
3304 /(*MARK:A)(*SKIP:B)(C|X)/KS
3305 C
3306 D
3307
3308 /(*:A)A+(*SKIP:A)(B|Z)/KS
3309 AAAC
3310
3311 /-- --/
3312
3313 "(?=a*(*ACCEPT)b)c"
3314 c
3315 c\N
3316
3317 /(?1)c(?(DEFINE)((*ACCEPT)b))/
3318 c
3319 c\N
3320
3321 /(?>(*ACCEPT)b)c/
3322 c
3323 c\N
3324
3325 /(?:(?>(a)))+a%/++
3326 %aa%
3327
3328 /(a)b|ac/++SS
3329 ac\O3
3330
3331 /(a)(b)x|abc/++
3332 abc\O6
3333
3334 /(a)bc|(a)(b)\2/
3335 \O3abc
3336 \O4abc
3337
3338 /(?(DEFINE)(a(?2)|b)(b(?1)|a))(?:(?1)|(?2))/SI
3339
3340 /(a(?2)|b)(b(?1)|a)(?:(?1)|(?2))/SI
3341
3342 /(a(?2)|b)(b(?1)|a)(?1)(?2)/SI
3343
3344 /(abc)(?1)/SI
3345
3346 /^(?>a)++/
3347 aa\M
3348 aaaaaaaaa\M
3349
3350 /(a)(?1)++/
3351 aa\M
3352 aaaaaaaaa\M
3353
3354 /(?:(foo)|(bar)|(baz))X/SS=
3355 bazfooX
3356 foobazbarX
3357 barfooX
3358 bazX
3359 foobarbazX
3360 bazfooX\O0
3361 bazfooX\O2
3362 bazfooX\O4
3363 bazfooX\O6
3364 bazfooX\O8
3365 bazfooX\O10
3366
3367 /(?=abc){3}abc/BZ
3368
3369 /(?=abc)+abc/BZ
3370
3371 /(?=abc)++abc/BZ
3372
3373 /(?=abc){0}xyz/BZ
3374
3375 /(?=(a))?./BZ
3376
3377 /(?=(a))??./BZ
3378
3379 /^(?=(a)){0}b(?1)/BZ
3380
3381 /(?(DEFINE)(a))?b(?1)/BZ
3382
3383 /^(?=(?1))?[az]([abc])d/BZ
3384
3385 /^(?!a){0}\w+/BZ
3386
3387 /(?<=(abc))?xyz/BZ
3388
3389 /[:a[:abc]b:]/BZ
3390
3391 /((?2))((?1))/SS
3392 abc
3393
3394 /((?(R2)a+|(?1)b))/SS
3395 aaaabcde
3396
3397 /(?(R)a*(?1)|((?R))b)/SS
3398 aaaabcde
3399
3400 /(a+|(?R)b)/
3401
3402 /^(a(*:A)(d|e(*:B))z|aeq)/C
3403 adz
3404 aez
3405 aeqwerty
3406
3407 /.(*F)/
3408 \P\Pabc
3409
3410 /\btype\b\W*?\btext\b\W*?\bjavascript\b/IS
3411
3412 /\btype\b\W*?\btext\b\W*?\bjavascript\b|\burl\b\W*?\bshell:|<input\b.*?\btype\b\W*?\bimage\b|\bonkeyup\b\W*?\=/IS
3413
3414 /a(*SKIP)c|b(*ACCEPT)|/+SI
3415 a
3416
3417 /a(*SKIP)c|b(*ACCEPT)cd(*ACCEPT)|x/SI
3418 ax
3419
3420 'a*(*ACCEPT)b'+
3421 \N\N
3422 abc\N\N
3423 bbb\N\N
3424
3425 /(*ACCEPT)a/+I
3426 bax
3427
3428 /z(*ACCEPT)a/+I
3429 baxzbx
3430
3431 /a(?:.)*?a/ims
3432 \Mabbbbbbbbbbbbbbbbbbbbba
3433
3434 /a(?:.(*THEN))*?a/ims
3435 \Mabbbbbbbbbbbbbbbbbbbbba
3436
3437 /a(?:.(*THEN:ABC))*?a/ims
3438 \Mabbbbbbbbbbbbbbbbbbbbba
3439
3440 /-- These tests are in agreement with development Perl 5.015, which has fixed
3441 some things, but they don't all work with 5.012, so they aren't in the
3442 Perl-compatible tests. Those after the first come from Perl's own test
3443 files. --/
3444
3445 /^((yes|no)(*THEN)(*F))?/
3446 yes
3447
3448 /(A (.*) C? (*THEN) | A D) (*FAIL)/x
3449 AbcdCBefgBhiBqz
3450
3451 /(A (.*) C? (*THEN) | A D) z/x
3452 AbcdCBefgBhiBqz
3453
3454 /(A (.*) C? (*THEN) | A D) \s* (*FAIL)/x
3455 AbcdCBefgBhiBqz
3456
3457 /(A (.*) C? (*THEN) | A D) \s* z/x
3458 AbcdCBefgBhiBqz
3459
3460 /(A (.*) (?:C|) (*THEN) | A D) (*FAIL)/x
3461 AbcdCBefgBhiBqz
3462
3463 /(A (.*) (?:C|) (*THEN) | A D) z/x
3464 AbcdCBefgBhiBqz
3465
3466 /(A (.*) C{0,6} (*THEN) | A D) (*FAIL)/x
3467 AbcdCBefgBhiBqz
3468
3469 /(A (.*) C{0,6} (*THEN) | A D) z/x
3470 AbcdCBefgBhiBqz
3471
3472 /(A (.*) (CE){0,6} (*THEN) | A D) (*FAIL)/x
3473 AbcdCEBefgBhiBqz
3474
3475 /(A (.*) (CE){0,6} (*THEN) | A D) z/x
3476 AbcdCEBefgBhiBqz
3477
3478 /(A (.*) (CE*){0,6} (*THEN) | A D) (*FAIL)/x
3479 AbcdCBefgBhiBqz
3480
3481 /(A (.*) (CE*){0,6} (*THEN) | A D) z/x
3482 AbcdCBefgBhiBqz
3483
3484 /-----------------------------------------------/
3485
3486 /^(?>a+)(?>(z+))\w/BZ
3487 aaaazzzzb
3488 ** Failers
3489 aazz
3490
3491 /(.)(\1|a(?2))/
3492 bab
3493
3494 /\1|(.)(?R)\1/
3495 cbbbc
3496
3497 /(.)((?(1)c|a)|a(?2))/
3498 baa
3499
3500 /(?P<abn>(?P=abn)xxx)/BZ
3501
3502 /(a\1z)/BZ
3503
3504 /^(?>a+)(?>b+)(?>c+)(?>d+)(?>e+)/
3505 \Maabbccddee
3506
3507 /^(?>(a+))(?>(b+))(?>(c+))(?>(d+))(?>(e+))/
3508 \Maabbccddee
3509
3510 /^(?>(a+))(?>b+)(?>(c+))(?>d+)(?>(e+))/
3511 \Maabbccddee
3512
3513 /^a\x41z/<JS>
3514 aAz
3515 *** Failers
3516 ax41z
3517
3518 /^a[m\x41]z/<JS>
3519 aAz
3520
3521 /^a\x1z/<JS>
3522 ax1z
3523
3524 /^a\u0041z/<JS>
3525 aAz
3526 *** Failers
3527 au0041z
3528
3529 /^a[m\u0041]z/<JS>
3530 aAz
3531
3532 /^a\u041z/<JS>
3533 au041z
3534 *** Failers
3535 aAz
3536
3537 /^a\U0041z/<JS>
3538 aU0041z
3539 *** Failers
3540 aAz
3541
3542 /(?(?=c)c|d)++Y/BZ
3543
3544 /(?(?=c)c|d)*+Y/BZ
3545
3546 /a[\NB]c/
3547 aNc
3548
3549 /a[B-\Nc]/
3550
3551 /(a)(?2){0,1999}?(b)/
3552
3553 /(a)(?(DEFINE)(b))(?2){0,1999}?(?2)/
3554
3555 /--- This test, with something more complicated than individual letters, causes
3556 different behaviour in Perl. Perhaps it disables some optimization; no tag is
3557 passed back for the failures, whereas in PCRE there is a tag. ---/
3558
3559 /(A|P)(*:A)(B|P) | (X|P)(X|P)(*:B)(Y|P)/xK
3560 AABC
3561 XXYZ
3562 ** Failers
3563 XAQQ
3564 XAQQXZZ
3565 AXQQQ
3566 AXXQQQ
3567
3568 /-- Perl doesn't give marks for these, though it does if the alternatives are
3569 replaced by single letters. --/
3570
3571 /(b|q)(*:m)f|a(*:n)w/K
3572 aw
3573 ** Failers
3574 abc
3575
3576 /(q|b)(*:m)f|a(*:n)w/K
3577 aw
3578 ** Failers
3579 abc
3580
3581 /-- After a partial match, the behaviour is as for a failure. --/
3582
3583 /^a(*:X)bcde/K
3584 abc\P
3585
3586 /-- End of testinput2 --/

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5