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

Diff of /code/trunk/testdata/testinput2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 91 by nigel, Sat Feb 24 21:41:34 2007 UTC revision 93 by nigel, Sat Feb 24 21:41:42 2007 UTC
# Line 1  Line 1 
1  /(a)b|/  /(a)b|/I
2    
3  /abc/  /abc/I
4      abc      abc
5      defabc      defabc
6      \Aabc      \Aabc
# Line 8  Line 8 
8      \Adefabc      \Adefabc
9      ABC      ABC
10    
11  /^abc/  /^abc/I
12      abc      abc
13      \Aabc      \Aabc
14      *** Failers      *** Failers
15      defabc      defabc
16      \Adefabc      \Adefabc
17    
18  /a+bc/  /a+bc/I
19    
20  /a*bc/  /a*bc/I
21    
22  /a{3}bc/  /a{3}bc/I
23    
24  /(abc|a+z)/  /(abc|a+z)/I
25    
26  /^abc$/  /^abc$/I
27      abc      abc
28      *** Failers      *** Failers
29      def\nabc      def\nabc
30    
31  /ab\gdef/X  /ab\hdef/X
32    
33  /(?X)ab\gdef/X  /(?X)ab\hdef/X
34    
35  /x{5,4}/  /x{5,4}/
36    
# Line 50  Line 50 
50    
51  /(?z)abc/  /(?z)abc/
52    
53  /.*b/  /.*b/I
54    
55  /.*?b/  /.*?b/I
56    
57  /cat|dog|elephant/  /cat|dog|elephant/I
58      this sentence eventually mentions a cat      this sentence eventually mentions a cat
59      this sentences rambles on and on for a while and then reaches elephant      this sentences rambles on and on for a while and then reaches elephant
60    
61  /cat|dog|elephant/S  /cat|dog|elephant/IS
62      this sentence eventually mentions a cat      this sentence eventually mentions a cat
63      this sentences rambles on and on for a while and then reaches elephant      this sentences rambles on and on for a while and then reaches elephant
64    
65  /cat|dog|elephant/iS  /cat|dog|elephant/IiS
66      this sentence eventually mentions a CAT cat      this sentence eventually mentions a CAT cat
67      this sentences rambles on and on for a while to elephant ElePhant      this sentences rambles on and on for a while to elephant ElePhant
68    
69  /a|[bcd]/S  /a|[bcd]/IS
70    
71  /(a|[^\dZ])/S  /(a|[^\dZ])/IS
72    
73  /(a|b)*[\s]/S  /(a|b)*[\s]/IS
74    
75  /(ab\2)/  /(ab\2)/
76    
77  /{4,5}abc/  /{4,5}abc/
78    
79  /(a)(b)(c)\2/  /(a)(b)(c)\2/I
80      abcb      abcb
81      \O0abcb      \O0abcb
82      \O3abcb      \O3abcb
# Line 84  Line 84 
84      \O9abcb      \O9abcb
85      \O12abcb      \O12abcb
86    
87  /(a)bc|(a)(b)\2/  /(a)bc|(a)(b)\2/I
88      abc      abc
89      \O0abc      \O0abc
90      \O3abc      \O3abc
# Line 96  Line 96 
96      \O9aba      \O9aba
97      \O12aba      \O12aba
98    
99  /abc$/E  /abc$/IE
100      abc      abc
101      *** Failers      *** Failers
102      abc\n      abc\n
# Line 104  Line 104 
104    
105  /(a)(b)(c)(d)(e)\6/  /(a)(b)(c)(d)(e)\6/
106    
107  /the quick brown fox/  /the quick brown fox/I
108      the quick brown fox      the quick brown fox
109      this is a line with the quick brown fox      this is a line with the quick brown fox
110    
111  /the quick brown fox/A  /the quick brown fox/IA
112      the quick brown fox      the quick brown fox
113      *** Failers      *** Failers
114      this is a line with the quick brown fox      this is a line with the quick brown fox
115    
116  /ab(?z)cd/  /ab(?z)cd/
117    
118  /^abc|def/  /^abc|def/I
119      abcdef      abcdef
120      abcdef\B      abcdef\B
121    
122  /.*((abc)$|(def))/  /.*((abc)$|(def))/I
123      defabc      defabc
124      \Zdefabc      \Zdefabc
125    
126  /abc/P  /abc/IP
127      abc      abc
128      *** Failers      *** Failers
129    
130  /^abc|def/P  /^abc|def/IP
131      abcdef      abcdef
132      abcdef\B      abcdef\B
133    
134  /.*((abc)$|(def))/P  /.*((abc)$|(def))/IP
135      defabc      defabc
136      \Zdefabc      \Zdefabc
137    
138  /the quick brown fox/P  /the quick brown fox/IP
139      the quick brown fox      the quick brown fox
140      *** Failers      *** Failers
141      The Quick Brown Fox      The Quick Brown Fox
142    
143  /the quick brown fox/Pi  /the quick brown fox/IPi
144      the quick brown fox      the quick brown fox
145      The Quick Brown Fox      The Quick Brown Fox
146    
147  /abc.def/P  /abc.def/IP
148      *** Failers      *** Failers
149      abc\ndef      abc\ndef
150    
151  /abc$/P  /abc$/IP
152      abc      abc
153      abc\n      abc\n
154    
155  /(abc)\2/P  /(abc)\2/IP
156    
157  /(abc\1)/P  /(abc\1)/IP
158      abc      abc
159    
160  /)/  /)/
161    
162  /a[]b/  /a[]b/
163    
164  /[^aeiou ]{3,}/  /[^aeiou ]{3,}/I
165      co-processors, and for      co-processors, and for
166    
167  /<.*>/  /<.*>/I
168      abc<def>ghi<klm>nop      abc<def>ghi<klm>nop
169    
170  /<.*?>/  /<.*?>/I
171      abc<def>ghi<klm>nop      abc<def>ghi<klm>nop
172    
173  /<.*>/U  /<.*>/IU
174      abc<def>ghi<klm>nop      abc<def>ghi<klm>nop
175    
176  /(?U)<.*>/  /(?U)<.*>/I
177      abc<def>ghi<klm>nop      abc<def>ghi<klm>nop
178    
179  /<.*?>/U  /<.*?>/IU
180      abc<def>ghi<klm>nop      abc<def>ghi<klm>nop
181    
182  /={3,}/U  /={3,}/IU
183      abc========def      abc========def
184    
185  /(?U)={3,}?/  /(?U)={3,}?/I
186      abc========def      abc========def
187    
188  /(?<!bar|cattle)foo/  /(?<!bar|cattle)foo/I
189      foo      foo
190      catfoo      catfoo
191      *** Failers      *** Failers
# Line 198  Line 198 
198    
199  /(?<!(foo)a\1)bar/  /(?<!(foo)a\1)bar/
200    
201  /(?i)abc/  /(?i)abc/I
202    
203  /(a|(?m)a)/  /(a|(?m)a)/I
204    
205  /(?i)^1234/  /(?i)^1234/I
206    
207  /(^b|(?i)^d)/  /(^b|(?i)^d)/I
208    
209  /(?s).*/  /(?s).*/I
210    
211  /[abcd]/S  /[abcd]/IS
212    
213  /(?i)[abcd]/S  /(?i)[abcd]/IS
214    
215  /(?m)[xy]|(b|c)/S  /(?m)[xy]|(b|c)/IS
216    
217  /(^a|^b)/m  /(^a|^b)/Im
218    
219  /(?i)(^a|^b)/m  /(?i)(^a|^b)/Im
220    
221  /(a)(?(1)a|b|c)/  /(a)(?(1)a|b|c)/
222    
# Line 224  Line 224 
224    
225  /(?(1a)/  /(?(1a)/
226    
227    /(?(1a))/
228    
229  /(?(?i))/  /(?(?i))/
230    
231  /(?(abc))/  /(?(abc))/
232    
233  /(?(?<ab))/  /(?(?<ab))/
234    
235  /((?s)blah)\s+\1/  /((?s)blah)\s+\1/I
236    
237  /((?i)blah)\s+\1/  /((?i)blah)\s+\1/I
238    
239  /((?i)b)/DS  /((?i)b)/IDS
240    
241  /(a*b|(?i:c*(?-i)d))/S  /(a*b|(?i:c*(?-i)d))/IS
242    
243  /a$/  /a$/I
244      a      a
245      a\n      a\n
246      *** Failers      *** Failers
247      \Za      \Za
248      \Za\n      \Za\n
249    
250  /a$/m  /a$/Im
251      a      a
252      a\n      a\n
253      \Za\n      \Za\n
254      *** Failers      *** Failers
255      \Za      \Za
256    
257  /\Aabc/m  /\Aabc/Im
258    
259  /^abc/m  /^abc/Im
260    
261  /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/  /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/I
262    aaaaabbbbbcccccdef    aaaaabbbbbcccccdef
263    
264  /(?<=foo)[ab]/S  /(?<=foo)[ab]/IS
265    
266  /(?<!foo)(alpha|omega)/S  /(?<!foo)(alpha|omega)/IS
267    
268  /(?!alphabet)[ab]/S  /(?!alphabet)[ab]/IS
269    
270  /(?<=foo\n)^bar/m  /(?<=foo\n)^bar/Im
271      foo\nbarbar      foo\nbarbar
272      ***Failers      ***Failers
273      rhubarb      rhubarb
274      barbell      barbell
275      abc\nbarton      abc\nbarton
276    
277  /^(?<=foo\n)bar/m  /^(?<=foo\n)bar/Im
278      foo\nbarbar      foo\nbarbar
279      ***Failers      ***Failers
280      rhubarb      rhubarb
281      barbell      barbell
282      abc\nbarton      abc\nbarton
283    
284  /(?>^abc)/m  /(?>^abc)/Im
285      abc      abc
286      def\nabc      def\nabc
287      *** Failers      *** Failers
# Line 293  Line 295 
295    
296  /The next three are in testinput2 because they have variable length branches/  /The next three are in testinput2 because they have variable length branches/
297    
298  /(?<=bullock|donkey)-cart/  /(?<=bullock|donkey)-cart/I
299      the bullock-cart      the bullock-cart
300      a donkey-cart race      a donkey-cart race
301      *** Failers      *** Failers
302      cart      cart
303      horse-and-cart      horse-and-cart
304    
305  /(?<=ab(?i)x|y|z)/  /(?<=ab(?i)x|y|z)/I
306    
307  /(?>.*)(?<=(abcd)|(xyz))/  /(?>.*)(?<=(abcd)|(xyz))/I
308      alphabetabcd      alphabetabcd
309      endingxyz      endingxyz
310    
311  /(?<=ab(?i)x(?-i)y|(?i)z|b)ZZ/  /(?<=ab(?i)x(?-i)y|(?i)z|b)ZZ/I
312      abxyZZ      abxyZZ
313      abXyZZ      abXyZZ
314      ZZZ      ZZZ
# Line 319  Line 321 
321      zzz      zzz
322      bzz      bzz
323    
324  /(?<!(foo)a)bar/  /(?<!(foo)a)bar/I
325      bar      bar
326      foobbar      foobbar
327      *** Failers      *** Failers
328      fooabar      fooabar
329    
330  /This one is here because Perl 5.005_02 doesn't fail it/  /This one is here because Perl 5.005_02 doesn't fail it/I
331    
332  /^(a)?(?(1)a|b)+$/  /^(a)?(?(1)a|b)+$/I
333      *** Failers      *** Failers
334      a      a
335    
336  /This one is here because I think Perl 5.005_02 gets the setting of $1 wrong/  /This one is here because I think Perl 5.005_02 gets the setting of $1 wrong/I
337    
338  /^(a\1?){4}$/  /^(a\1?){4}$/I
339      aaaaaa      aaaaaa
340    
341  /These are syntax tests from Perl 5.005/  /These are syntax tests from Perl 5.005/I
342    
343  /a[b-a]/  /a[b-a]/
344    
# Line 362  Line 364 
364    
365  /(a)|\2/  /(a)|\2/
366    
367  /a[b-a]/i  /a[b-a]/Ii
368    
369  /a[]b/i  /a[]b/Ii
370    
371  /a[/i  /a[/Ii
372    
373  /*a/i  /*a/Ii
374    
375  /(*)b/i  /(*)b/Ii
376    
377  /abc)/i  /abc)/Ii
378    
379  /(abc/i  /(abc/Ii
380    
381  /a**/i  /a**/Ii
382    
383  /)(/i  /)(/Ii
384    
385  /:(?:/  /:(?:/
386    
# Line 410  Line 412 
412    
413  /abc/\i  /abc/\i
414    
415  /(a)bc(d)/  /(a)bc(d)/I
416      abcd      abcd
417      abcd\C2      abcd\C2
418      abcd\C5      abcd\C5
419    
420  /(.{20})/  /(.{20})/I
421      abcdefghijklmnopqrstuvwxyz      abcdefghijklmnopqrstuvwxyz
422      abcdefghijklmnopqrstuvwxyz\C1      abcdefghijklmnopqrstuvwxyz\C1
423      abcdefghijklmnopqrstuvwxyz\G1      abcdefghijklmnopqrstuvwxyz\G1
424    
425  /(.{15})/  /(.{15})/I
426      abcdefghijklmnopqrstuvwxyz      abcdefghijklmnopqrstuvwxyz
427      abcdefghijklmnopqrstuvwxyz\C1\G1      abcdefghijklmnopqrstuvwxyz\C1\G1
428    
429  /(.{16})/  /(.{16})/I
430      abcdefghijklmnopqrstuvwxyz      abcdefghijklmnopqrstuvwxyz
431      abcdefghijklmnopqrstuvwxyz\C1\G1\L      abcdefghijklmnopqrstuvwxyz\C1\G1\L
432    
433  /^(a|(bc))de(f)/  /^(a|(bc))de(f)/I
434      adef\G1\G2\G3\G4\L      adef\G1\G2\G3\G4\L
435      bcdef\G1\G2\G3\G4\L      bcdef\G1\G2\G3\G4\L
436      adefghijk\C0      adefghijk\C0
437    
438  /^abc\00def/  /^abc\00def/I
439      abc\00def\L\C0      abc\00def\L\C0
440    
441  /word ((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+  /word ((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
442  )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+  )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
443  )?)?)?)?)?)?)?)?)?otherword/M  )?)?)?)?)?)?)?)?)?otherword/IM
444    
445  /.*X/D  /.*X/ID
446    
447  /.*X/Ds  /.*X/IDs
448    
449  /(.*X|^B)/D  /(.*X|^B)/ID
450    
451  /(.*X|^B)/Ds  /(.*X|^B)/IDs
452    
453  /(?s)(.*X|^B)/D  /(?s)(.*X|^B)/ID
454    
455  /(?s:.*X|^B)/D  /(?s:.*X|^B)/ID
456    
457  /\Biss\B/+  /\Biss\B/I+
458      Mississippi      Mississippi
459    
460  /\Biss\B/+P  /\Biss\B/I+P
461      Mississippi      Mississippi
462    
463  /iss/G+  /iss/IG+
464      Mississippi      Mississippi
465    
466  /\Biss\B/G+  /\Biss\B/IG+
467      Mississippi      Mississippi
468    
469  /\Biss\B/g+  /\Biss\B/Ig+
470      Mississippi      Mississippi
471      *** Failers      *** Failers
472      Mississippi\A      Mississippi\A
473    
474  /(?<=[Ms])iss/g+  /(?<=[Ms])iss/Ig+
475      Mississippi      Mississippi
476    
477  /(?<=[Ms])iss/G+  /(?<=[Ms])iss/IG+
478      Mississippi      Mississippi
479    
480  /^iss/g+  /^iss/Ig+
481      ississippi      ississippi
482    
483  /.*iss/g+  /.*iss/Ig+
484      abciss\nxyzisspqr      abciss\nxyzisspqr
485    
486  /.i./+g  /.i./I+g
487      Mississippi      Mississippi
488      Mississippi\A      Mississippi\A
489      Missouri river      Missouri river
490      Missouri river\A      Missouri river\A
491    
492  /^.is/+g  /^.is/I+g
493      Mississippi      Mississippi
494    
495  /^ab\n/g+  /^ab\n/Ig+
496      ab\nab\ncd      ab\nab\ncd
497    
498  /^ab\n/mg+  /^ab\n/Img+
499      ab\nab\ncd      ab\nab\ncd
500    
501  /abc/  /abc/I
502    
503  /abc|bac/  /abc|bac/I
504    
505  /(abc|bac)/  /(abc|bac)/I
506    
507  /(abc|(c|dc))/  /(abc|(c|dc))/I
508    
509  /(abc|(d|de)c)/  /(abc|(d|de)c)/I
510    
511  /a*/  /a*/I
512    
513  /a+/  /a+/I
514    
515  /(baa|a+)/  /(baa|a+)/I
516    
517  /a{0,3}/  /a{0,3}/I
518    
519  /baa{3,}/  /baa{3,}/I
520    
521  /"([^\\"]+|\\.)*"/  /"([^\\"]+|\\.)*"/I
522    
523  /(abc|ab[cd])/  /(abc|ab[cd])/I
524    
525  /(a|.)/  /(a|.)/I
526    
527  /a|ba|\w/  /a|ba|\w/I
528    
529  /abc(?=pqr)/  /abc(?=pqr)/I
530    
531  /...(?<=abc)/  /...(?<=abc)/I
532    
533  /abc(?!pqr)/  /abc(?!pqr)/I
534    
535  /ab./  /ab./I
536    
537  /ab[xyz]/  /ab[xyz]/I
538    
539  /abc*/  /abc*/I
540    
541  /ab.c*/  /ab.c*/I
542    
543  /a.c*/  /a.c*/I
544    
545  /.c*/  /.c*/I
546    
547  /ac*/  /ac*/I
548    
549  /(a.c*|b.c*)/  /(a.c*|b.c*)/I
550    
551  /a.c*|aba/  /a.c*|aba/I
552    
553  /.+a/  /.+a/I
554    
555  /(?=abcda)a.*/  /(?=abcda)a.*/I
556    
557  /(?=a)a.*/  /(?=a)a.*/I
558    
559  /a(b)*/  /a(b)*/I
560    
561  /a\d*/  /a\d*/I
562    
563  /ab\d*/  /ab\d*/I
564    
565  /a(\d)*/  /a(\d)*/I
566    
567  /abcde{0,0}/  /abcde{0,0}/I
568    
569  /ab\d+/  /ab\d+/I
570    
571  /a(?(1)b)/  /a(?(1)b)/I
572    
573  /a(?(1)bag|big)/  /a(?(1)bag|big)/I
574    
575  /a(?(1)bag|big)*/  /a(?(1)bag|big)*/I
576    
577  /a(?(1)bag|big)+/  /a(?(1)bag|big)+/I
578    
579  /a(?(1)b..|b..)/  /a(?(1)b..|b..)/I
580    
581  /ab\d{0}e/  /ab\d{0}e/I
582    
583  /a?b?/  /a?b?/I
584      a      a
585      b      b
586      ab      ab
# Line 586  Line 588 
588      *** Failers      *** Failers
589      \N      \N
590    
591  /|-/  /|-/I
592      abcd      abcd
593      -abc      -abc
594      \Nab-c      \Nab-c
595      *** Failers      *** Failers
596      \Nabc      \Nabc
597    
598  /a*(b+)(z)(z)/P  /a*(b+)(z)(z)/IP
599      aaaabbbbzzzz      aaaabbbbzzzz
600      aaaabbbbzzzz\O0      aaaabbbbzzzz\O0
601      aaaabbbbzzzz\O1      aaaabbbbzzzz\O1
# Line 602  Line 604 
604      aaaabbbbzzzz\O4      aaaabbbbzzzz\O4
605      aaaabbbbzzzz\O5      aaaabbbbzzzz\O5
606    
607  /^.?abcd/S  /^.?abcd/IS
608    
609  /\(             # ( at start  /\(             # ( at start
610    (?:           # Non-capturing bracket    (?:           # Non-capturing bracket
# Line 611  Line 613 
613    (?R)          # Recurse - i.e. nested bracketed string    (?R)          # Recurse - i.e. nested bracketed string
614    )*            # Zero or more contents    )*            # Zero or more contents
615    \)            # Closing )    \)            # Closing )
616    /x    /Ix
617      (abcd)      (abcd)
618      (abcd)xyz      (abcd)xyz
619      xyz(abcd)      xyz(abcd)
# Line 624  Line 626 
626      abcd)      abcd)
627      (abcd      (abcd
628    
629  /\(  ( (?>[^()]+) | (?R) )* \) /xg  /\(  ( (?>[^()]+) | (?R) )* \) /Ixg
630      (ab(xy)cd)pqr      (ab(xy)cd)pqr
631      1(abcd)(x(y)z)pqr      1(abcd)(x(y)z)pqr
632    
633  /\(  (?: (?>[^()]+) | (?R) ) \) /x  /\(  (?: (?>[^()]+) | (?R) ) \) /Ix
634      (abcd)      (abcd)
635      (ab(xy)cd)      (ab(xy)cd)
636      (a(b(c)d)e)      (a(b(c)d)e)
# Line 636  Line 638 
638      *** Failers      *** Failers
639      ()      ()
640    
641  /\(  (?: (?>[^()]+) | (?R) )? \) /x  /\(  (?: (?>[^()]+) | (?R) )? \) /Ix
642      ()      ()
643      12(abcde(fsh)xyz(foo(bar))lmno)89      12(abcde(fsh)xyz(foo(bar))lmno)89
644    
645  /\(  ( (?>[^()]+) | (?R) )* \) /x  /\(  ( (?>[^()]+) | (?R) )* \) /Ix
646      (ab(xy)cd)      (ab(xy)cd)
647    
648  /\( ( ( (?>[^()]+) | (?R) )* ) \) /x  /\( ( ( (?>[^()]+) | (?R) )* ) \) /Ix
649      (ab(xy)cd)      (ab(xy)cd)
650    
651  /\( (123)? ( ( (?>[^()]+) | (?R) )* ) \) /x  /\( (123)? ( ( (?>[^()]+) | (?R) )* ) \) /Ix
652      (ab(xy)cd)      (ab(xy)cd)
653      (123ab(xy)cd)      (123ab(xy)cd)
654    
655  /\( ( (123)? ( (?>[^()]+) | (?R) )* ) \) /x  /\( ( (123)? ( (?>[^()]+) | (?R) )* ) \) /Ix
656      (ab(xy)cd)      (ab(xy)cd)
657      (123ab(xy)cd)      (123ab(xy)cd)
658    
659  /\( (((((((((( ( (?>[^()]+) | (?R) )* )))))))))) \) /x  /\( (((((((((( ( (?>[^()]+) | (?R) )* )))))))))) \) /Ix
660      (ab(xy)cd)      (ab(xy)cd)
661    
662  /\( ( ( (?>[^()<>]+) | ((?>[^()]+)) | (?R) )* ) \) /x  /\( ( ( (?>[^()<>]+) | ((?>[^()]+)) | (?R) )* ) \) /Ix
663      (abcd(xyz<p>qrs)123)      (abcd(xyz<p>qrs)123)
664    
665  /\( ( ( (?>[^()]+) | ((?R)) )* ) \) /x  /\( ( ( (?>[^()]+) | ((?R)) )* ) \) /Ix
666      (ab(cd)ef)      (ab(cd)ef)
667      (ab(cd(ef)gh)ij)      (ab(cd(ef)gh)ij)
668    
# Line 712  Line 714 
714    
715  /[01[:alpha:]%]/D  /[01[:alpha:]%]/D
716    
717  /[[.ch.]]/  /[[.ch.]]/I
718    
719  /[[=ch=]]/  /[[=ch=]]/I
720    
721  /[[:rhubarb:]]/  /[[:rhubarb:]]/I
722    
723  /[[:upper:]]/i  /[[:upper:]]/Ii
724      A      A
725      a      a
726    
727  /[[:lower:]]/i  /[[:lower:]]/Ii
728      A      A
729      a      a
730    
731  /((?-i)[[:lower:]])[[:lower:]]/i  /((?-i)[[:lower:]])[[:lower:]]/Ii
732      ab      ab
733      aB      aB
734      *** Failers      *** Failers
735      Ab      Ab
736      AB      AB
737    
738  /[\200-\110]/  /[\200-\110]/I
739    
740  /^(?(0)f|b)oo/  /^(?(0)f|b)oo/I
741    
742  /This one's here because of the large output vector needed/  /This one's here because of the large output vector needed/I
743    
744  /(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|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+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\w+)\s+(\270)/I
745      \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      \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
746    
747  /This one's here because Perl does this differently and PCRE can't at present/  /This one's here because Perl does this differently and PCRE can't at present/I
748    
749  /(main(O)?)+/  /(main(O)?)+/I
750      mainmain      mainmain
751      mainOmain      mainOmain
752    
753  /These are all cases where Perl does it differently (nested captures)/  /These are all cases where Perl does it differently (nested captures)/I
754    
755  /^(a(b)?)+$/  /^(a(b)?)+$/I
756      aba      aba
757    
758  /^(aa(bb)?)+$/  /^(aa(bb)?)+$/I
759      aabbaa      aabbaa
760    
761  /^(aa|aa(bb))+$/  /^(aa|aa(bb))+$/I
762      aabbaa      aabbaa
763    
764  /^(aa(bb)??)+$/  /^(aa(bb)??)+$/I
765      aabbaa      aabbaa
766    
767  /^(?:aa(bb)?)+$/  /^(?:aa(bb)?)+$/I
768      aabbaa      aabbaa
769    
770  /^(aa(b(b))?)+$/  /^(aa(b(b))?)+$/I
771      aabbaa      aabbaa
772    
773  /^(?:aa(b(b))?)+$/  /^(?:aa(b(b))?)+$/I
774      aabbaa      aabbaa
775    
776  /^(?:aa(b(?:b))?)+$/  /^(?:aa(b(?:b))?)+$/I
777      aabbaa      aabbaa
778    
779  /^(?:aa(bb(?:b))?)+$/  /^(?:aa(bb(?:b))?)+$/I
780      aabbbaa      aabbbaa
781    
782  /^(?:aa(b(?:bb))?)+$/  /^(?:aa(b(?:bb))?)+$/I
783      aabbbaa      aabbbaa
784    
785  /^(?:aa(?:b(b))?)+$/  /^(?:aa(?:b(b))?)+$/I
786      aabbaa      aabbaa
787    
788  /^(?:aa(?:b(bb))?)+$/  /^(?:aa(?:b(bb))?)+$/I
789      aabbbaa      aabbbaa
790    
791  /^(aa(b(bb))?)+$/  /^(aa(b(bb))?)+$/I
792      aabbbaa      aabbbaa
793    
794  /^(aa(bb(bb))?)+$/  /^(aa(bb(bb))?)+$/I
795      aabbbbaa      aabbbbaa
796    
797  /--------------------------------------------------------------------/  /--------------------------------------------------------------------/I
798    
799  /#/xMD  /#/IxMD
800    
801  /a#/xMD  /a#/IxMD
802    
803  /[\s]/D  /[\s]/D
804    
# Line 814  Line 816 
816      *** Failers      *** Failers
817      AB      AB
818    
819  /   (?i)abc/xD  /   (?i)abc/IxD
820    
821  /#this is a comment  /#this is a comment
822    (?i)abc/xD    (?i)abc/IxD
823    
824  /123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/D  /123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/D
825    
# Line 852  Line 854 
854    
855  /(x)*+/D  /(x)*+/D
856    
857  /^(\w++|\s++)*$/  /^(\w++|\s++)*$/I
858      now is the time for all good men to come to the aid of the party      now is the time for all good men to come to the aid of the party
859      *** Failers      *** Failers
860      this is not a line with only words and spaces!      this is not a line with only words and spaces!
861    
862  /(\d++)(\w)/  /(\d++)(\w)/I
863      12345a      12345a
864      *** Failers      *** Failers
865      12345+      12345+
866    
867  /a++b/  /a++b/I
868      aaab      aaab
869    
870  /(a++b)/  /(a++b)/I
871      aaab      aaab
872    
873  /(a++)b/  /(a++)b/I
874      aaab      aaab
875    
876  /([^()]++|\([^()]*\))+/  /([^()]++|\([^()]*\))+/I
877      ((abc(ade)ufh()()x      ((abc(ade)ufh()()x
878    
879  /\(([^()]++|\([^()]+\))+\)/  /\(([^()]++|\([^()]+\))+\)/I
880      (abc)      (abc)
881      (abc(def)xyz)      (abc(def)xyz)
882      *** Failers      *** Failers
# Line 882  Line 884 
884    
885  /(abc){1,3}+/D  /(abc){1,3}+/D
886    
887  /a+?+/  /a+?+/I
888    
889  /a{2,3}?+b/  /a{2,3}?+b/I
890    
891  /(?U)a+?+/  /(?U)a+?+/I
892    
893  /a{2,3}?+b/U  /a{2,3}?+b/IU
894    
895  /x(?U)a++b/D  /x(?U)a++b/D
896      xaaaab      xaaaab
# Line 902  Line 904 
904    
905  /^x(?U)(a+)b/D  /^x(?U)(a+)b/D
906    
907  /[.x.]/  /[.x.]/I
908    
909  /[=x=]/  /[=x=]/I
910    
911  /[:x:]/  /[:x:]/I
912    
913  /\l/  /\l/I
914    
915  /\L/  /\L/I
916    
917  /\N{name}/  /\N{name}/I
918    
919  /\u/  /\u/I
920    
921  /\U/  /\U/I
922    
923  /[/  /[/I
924    
925  /[a-/  /[a-/I
926    
927  /[[:space:]/  /[[:space:]/I
928    
929  /[\s]/DM  /[\s]/IDM
930    
931  /[[:space:]]/DM  /[[:space:]]/IDM
932    
933  /[[:space:]abcde]/DM  /[[:space:]abcde]/IDM
934    
935  /< (?: (?(R) \d++  | [^<>]*+) | (?R)) * >/x  /< (?: (?(R) \d++  | [^<>]*+) | (?R)) * >/Ix
936      <>      <>
937      <abcd>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Lru\'\]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|IDM
948    
949  /(.*)\d+\1/I  /(.*)\d+\1/I
950    
# Line 961  Line 963 
963    
964  /(?=a).*/I  /(?=a).*/I
965    
966  /(?=abc).xyz/iI  /(?=abc).xyz/IiI
967    
968  /(?=abc)(?i).xyz/I  /(?=abc)(?i).xyz/I
969    
# Line 1003  Line 1005 
1005    
1006  /a^b/I  /a^b/I
1007    
1008  /^a/mI  /^a/Im
1009    abcde    abcde
1010    xy\nabc    xy\nabc
1011    *** Failers    *** Failers
# Line 1015  Line 1017 
1017    
1018  /[ab](?i)cd/IS  /[ab](?i)cd/IS
1019    
1020  /abc(?C)def/  /abc(?C)def/I
1021      abcdef      abcdef
1022      1234abcdef      1234abcdef
1023      *** Failers      *** Failers
1024      abcxyz      abcxyz
1025      abcxyzf      abcxyzf
1026    
1027  /abc(?C)de(?C1)f/  /abc(?C)de(?C1)f/I
1028      123abcdef      123abcdef
1029    
1030  /(?C1)\dabc(?C2)def/  /(?C1)\dabc(?C2)def/I
1031      1234abcdef      1234abcdef
1032      *** Failers      *** Failers
1033      abcdef      abcdef
1034    
1035  /(?C255)ab/  /(?C255)ab/I
1036    
1037  /(?C256)ab/  /(?C256)ab/I
1038    
1039  /(?Cab)xx/  /(?Cab)xx/I
1040    
1041  /(?C12vr)x/  /(?C12vr)x/I
1042    
1043  /abc(?C)def/  /abc(?C)def/I
1044      *** Failers      *** Failers
1045      \x83\x0\x61bcdef      \x83\x0\x61bcdef
1046    
1047  /(abc)(?C)de(?C1)f/  /(abc)(?C)de(?C1)f/I
1048      123abcdef      123abcdef
1049      123abcdef\C+      123abcdef\C+
1050      123abcdef\C-      123abcdef\C-
1051      *** Failers      *** Failers
1052      123abcdef\C!1      123abcdef\C!1
1053    
1054  /(?C0)(abc(?C1))*/  /(?C0)(abc(?C1))*/I
1055      abcabcabc      abcabcabc
1056      abcabc\C!1!3      abcabc\C!1!3
1057      *** Failers      *** Failers
1058      abcabcabc\C!1!3      abcabcabc\C!1!3
1059    
1060  /(\d{3}(?C))*/  /(\d{3}(?C))*/I
1061      123\C+      123\C+
1062      123456\C+      123456\C+
1063      123456789\C+      123456789\C+
1064    
1065  /((xyz)(?C)p|(?C1)xyzabc)/  /((xyz)(?C)p|(?C1)xyzabc)/I
1066      xyzabc\C+      xyzabc\C+
1067    
1068  /(X)((xyz)(?C)p|(?C1)xyzabc)/  /(X)((xyz)(?C)p|(?C1)xyzabc)/I
1069      Xxyzabc\C+      Xxyzabc\C+
1070    
1071  /(?=(abc))(?C)abcdef/  /(?=(abc))(?C)abcdef/I
1072      abcdef\C+      abcdef\C+
1073    
1074  /(?!(abc)(?C1)d)(?C2)abcxyz/  /(?!(abc)(?C1)d)(?C2)abcxyz/I
1075      abcxyz\C+      abcxyz\C+
1076    
1077  /(?<=(abc)(?C))xyz/  /(?<=(abc)(?C))xyz/I
1078     abcxyz\C+     abcxyz\C+
1079    
1080  /a(b+)(c*)(?C1)/  /a(b+)(c*)(?C1)/I
1081      abbbbbccc\C*1      abbbbbccc\C*1
1082    
1083  /a(b+?)(c*?)(?C1)/  /a(b+?)(c*?)(?C1)/I
1084      abbbbbccc\C*1      abbbbbccc\C*1
1085    
1086  /(?C)abc/  /(?C)abc/I
1087    
1088  /(?C)^abc/  /(?C)^abc/I
1089    
1090  /(?C)a|b/S  /(?C)a|b/IS
1091    
1092  /(?R)/  /(?R)/I
1093    
1094  /(a|(?R))/  /(a|(?R))/I
1095    
1096  /(ab|(bc|(de|(?R))))/  /(ab|(bc|(de|(?R))))/I
1097    
1098  /x(ab|(bc|(de|(?R))))/  /x(ab|(bc|(de|(?R))))/I
1099      xab      xab
1100      xbc      xbc
1101      xde      xde
# Line 1102  Line 1104 
1104      *** Failers      *** Failers
1105      xyab      xyab
1106    
1107  /(ab|(bc|(de|(?1))))/  /(ab|(bc|(de|(?1))))/I
1108    
1109  /x(ab|(bc|(de|(?1)x)x)x)/  /x(ab|(bc|(de|(?1)x)x)x)/I
1110    
1111  /^([^()]|\((?1)*\))*$/  /^([^()]|\((?1)*\))*$/I
1112      abc      abc
1113      a(b)c      a(b)c
1114      a(b(c))d      a(b(c))d
1115      *** Failers)      *** Failers)
1116      a(b(c)d      a(b(c)d
1117    
1118  /^>abc>([^()]|\((?1)*\))*<xyz<$/  /^>abc>([^()]|\((?1)*\))*<xyz<$/I
1119     >abc>123<xyz<     >abc>123<xyz<
1120     >abc>1(2)3<xyz<     >abc>1(2)3<xyz<
1121     >abc>(1(2)3)<xyz<     >abc>(1(2)3)<xyz<
# Line 1122  Line 1124 
1124    
1125  /(a(?1)+b)/D  /(a(?1)+b)/D
1126    
1127  /^\W*(?:((.)\W*(?1)\W*\2|)|((.)\W*(?3)\W*\4|\W*.\W*))\W*$/i  /^\W*(?:((.)\W*(?1)\W*\2|)|((.)\W*(?3)\W*\4|\W*.\W*))\W*$/Ii
1128      1221      1221
1129      Satan, oscillate my metallic sonatas!      Satan, oscillate my metallic sonatas!
1130      A man, a plan, a canal: Panama!      A man, a plan, a canal: Panama!
# Line 1130  Line 1132 
1132      *** Failers      *** Failers
1133      The quick brown fox      The quick brown fox
1134    
1135  /^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/  /^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/I
1136      12      12
1137      (((2+2)*-3)-7)      (((2+2)*-3)-7)
1138      -12      -12
1139      *** Failers      *** Failers
1140      ((2+2)*-3)-7)      ((2+2)*-3)-7)
1141    
1142  /^(x(y|(?1){2})z)/  /^(x(y|(?1){2})z)/I
1143      xyz      xyz
1144      xxyzxyzz      xxyzxyzz
1145      *** Failers      *** Failers
1146      xxyzz      xxyzz
1147      xxyzxyzxyzz      xxyzxyzxyzz
1148    
1149  /((< (?: (?(R) \d++  | [^<>]*+) | (?2)) * >))/x  /((< (?: (?(R) \d++  | [^<>]*+) | (?2)) * >))/Ix
1150      <>      <>
1151      <abcd>      <abcd>
1152      <abc <123> hij>      <abc <123> hij>
# Line 1154  Line 1156 
1156      *** Failers      *** Failers
1157      <abc      <abc
1158    
1159  /(?1)/  /(?1)/I
1160    
1161  /((?2)(abc)/  /((?2)(abc)/I
1162    
1163  /^(abc)def(?1)/  /^(abc)def(?1)/I
1164      abcdefabc      abcdefabc
1165    
1166  /^(a|b|c)=(?1)+/  /^(a|b|c)=(?1)+/I
1167      a=a      a=a
1168      a=b      a=b
1169      a=bc      a=bc
1170    
1171  /^(a|b|c)=((?1))+/  /^(a|b|c)=((?1))+/I
1172      a=a      a=a
1173      a=b      a=b
1174      a=bc      a=bc
# Line 1179  Line 1181 
1181    
1182  /(?P<a>a)...(?P=a)bbb(?P>a)d/D  /(?P<a>a)...(?P=a)bbb(?P>a)d/D
1183    
1184  /^\W*(?:(?P<one>(?P<two>.)\W*(?P>one)\W*(?P=two)|)|(?P<three>(?P<four>.)\W*(?P>three)\W*(?P=four)|\W*.\W*))\W*$/i  /^\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
1185      1221      1221
1186      Satan, oscillate my metallic sonatas!      Satan, oscillate my metallic sonatas!
1187      A man, a plan, a canal: Panama!      A man, a plan, a canal: Panama!
# Line 1187  Line 1189 
1189      *** Failers      *** Failers
1190      The quick brown fox      The quick brown fox
1191    
1192  /((?(R)a|b))\1(?1)?/  /((?(R)a|b))\1(?1)?/I
1193    bb    bb
1194    bbaa    bbaa
1195    
1196  /(.*)a/sI  /(.*)a/Is
1197    
1198  /(.*)a\1/sI  /(.*)a\1/Is
1199    
1200  /(.*)a(b)\2/sI  /(.*)a(b)\2/Is
1201    
1202  /((.*)a|(.*)b)z/sI  /((.*)a|(.*)b)z/Is
1203    
1204  /((.*)a|(.*)b)z\1/sI  /((.*)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)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\32/Is
1217    
1218  /(a)(bc)/ND  /(a)(bc)/IND
1219    abc    abc
1220    
1221  /(?P<one>a)(bc)/ND  /(?P<one>a)(bc)/IND
1222    abc    abc
1223    
1224  /(a)(?P<named>bc)/ND  /(a)(?P<named>bc)/IND
1225    
1226  /(a+)*zz/  /(a+)*zz/I
1227    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazzbbbbbb\M    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazzbbbbbb\M
1228    aaaaaaaaaaaaaz\M    aaaaaaaaaaaaaz\M
1229    
1230  /(aaa(?C1)bbb|ab)/  /(aaa(?C1)bbb|ab)/I
1231     aaabbb     aaabbb
1232     aaabbb\C*0     aaabbb\C*0
1233     aaabbb\C*1     aaabbb\C*1
1234     aaabbb\C*-1     aaabbb\C*-1
1235    
1236  /ab(?P<one>cd)ef(?P<two>gh)/  /ab(?P<one>cd)ef(?P<two>gh)/I
1237      abcdefgh      abcdefgh
1238      abcdefgh\C1\Gtwo      abcdefgh\C1\Gtwo
1239      abcdefgh\Cone\Ctwo      abcdefgh\Cone\Ctwo
# Line 1241  Line 1243 
1243    
1244  /(?P<Test>)(?P<Tes>)/D  /(?P<Test>)(?P<Tes>)/D
1245    
1246  /(?P<Z>zz)(?P<A>aa)/  /(?P<Z>zz)(?P<A>aa)/I
1247      zzaa\CZ      zzaa\CZ
1248      zzaa\CA      zzaa\CA
1249    
1250  /(?P<x>eks)(?P<x>eccs)/  /(?P<x>eks)(?P<x>eccs)/I
1251    
1252  /(?P<abc>abc(?P<def>def)(?P<abc>xyz))/  /(?P<abc>abc(?P<def>def)(?P<abc>xyz))/I
1253    
1254  "\[((?P<elem>\d+)(,(?P>elem))*)\]"  "\[((?P<elem>\d+)(,(?P>elem))*)\]"I
1255      [10,20,30,5,5,4,4,2,43,23,4234]      [10,20,30,5,5,4,4,2,43,23,4234]
1256      *** Failers      *** Failers
1257      []      []
1258    
1259  "\[((?P<elem>\d+)(,(?P>elem))*)?\]"  "\[((?P<elem>\d+)(,(?P>elem))*)?\]"I
1260      [10,20,30,5,5,4,4,2,43,23,4234]      [10,20,30,5,5,4,4,2,43,23,4234]
1261      []      []
1262    
# Line 1266  Line 1268 
1268    
1269  /[ab]{1}+/D  /[ab]{1}+/D
1270    
1271  /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/i  /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/Ii
1272       Baby Bjorn Active Carrier - With free SHIPPING!!       Baby Bjorn Active Carrier - With free SHIPPING!!
1273    
1274  /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/iS  /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/IiS
1275       Baby Bjorn Active Carrier - With free SHIPPING!!       Baby Bjorn Active Carrier - With free SHIPPING!!
1276    
1277  /a*.*b/SD  /a*.*b/ISD
1278    
1279  /(a|b)*.?c/SD  /(a|b)*.?c/ISD
1280    
1281  /abc(?C255)de(?C)f/D  /abc(?C255)de(?C)f/D
1282    
1283  /abcde/CD  /abcde/ICD
1284    abcde    abcde
1285    abcdfe    abcdfe
1286    
1287  /a*b/CD  /a*b/ICD
1288    ab    ab
1289    aaaab    aaaab
1290    aaaacb    aaaacb
1291    
1292  /a+b/CD  /a+b/ICD
1293    ab    ab
1294    aaaab    aaaab
1295    aaaacb    aaaacb
1296    
1297  /(abc|def)x/CD  /(abc|def)x/ICD
1298    abcx    abcx
1299    defx    defx
1300    abcdefzx    abcdefzx
1301    
1302  /(ab|cd){3,4}/C  /(ab|cd){3,4}/IC
1303    ababab    ababab
1304    abcdabcd    abcdabcd
1305    abcdcdcdcdcd    abcdcdcdcdcd
1306    
1307  /([ab]{,4}c|xy)/CD  /([ab]{,4}c|xy)/ICD
1308      Note: that { does NOT introduce a quantifier      Note: that { does NOT introduce a quantifier
1309    
1310  /([ab]{1,4}c|xy){4,5}?123/CD  /([ab]{1,4}c|xy){4,5}?123/ICD
1311      aacaacaacaacaac123      aacaacaacaacaac123
1312    
1313  /\b.*/I  /\b.*/I
# Line 1317  Line 1319 
1319  /(?!.bcd).*/I  /(?!.bcd).*/I
1320    Xbcd12345    Xbcd12345
1321    
1322  /abcde/  /abcde/I
1323      ab\P      ab\P
1324      abc\P      abc\P
1325      abcd\P      abcd\P
# Line 1326  Line 1328 
1328      ** Failers\P      ** Failers\P
1329      the quick brown abxyz fox\P      the quick brown abxyz fox\P
1330    
1331  "^(0?[1-9]|[12][0-9]|3[01])/(0?[1-9]|1[012])/(20)?\d\d$"  "^(0?[1-9]|[12][0-9]|3[01])/(0?[1-9]|1[012])/(20)?\d\d$"I
1332      13/05/04\P      13/05/04\P
1333      13/5/2004\P      13/5/2004\P
1334      02/05/09\P      02/05/09\P
# Line 1356  Line 1358 
1358    
1359  /[abc]+DE/I  /[abc]+DE/I
1360    
1361  /[abc]?123/  /[abc]?123/I
1362      123\P      123\P
1363      a\P      a\P
1364      b\P      b\P
# Line 1364  Line 1366 
1366      c12\P      c12\P
1367      c123\P      c123\P
1368    
1369  /^(?:\d){3,5}X/  /^(?:\d){3,5}X/I
1370      1\P      1\P
1371      123\P      123\P
1372      123X      123X
# Line 1376  Line 1378 
1378      1X      1X
1379      123456\P      123456\P
1380    
1381  /abc/>testsavedregex  /abc/I>testsavedregex
1382  <testsavedregex  <testsavedregex
1383      abc      abc
1384      ** Failers      ** Failers
1385      bca      bca
1386    
1387  /abc/F>testsavedregex  /abc/IF>testsavedregex
1388  <testsavedregex  <testsavedregex
1389      abc      abc
1390      ** Failers      ** Failers
1391      bca      bca
1392    
1393  /(a|b)/S>testsavedregex  /(a|b)/IS>testsavedregex
1394  <testsavedregex  <testsavedregex
1395      abc      abc
1396      ** Failers      ** Failers
1397      def      def
1398    
1399  /(a|b)/SF>testsavedregex  /(a|b)/ISF>testsavedregex
1400  <testsavedregex  <testsavedregex
1401      abc      abc
1402      ** Failers      ** Failers
1403      def      def
1404    
1405  ~<(\w+)/?>(.)*</(\1)>~smg  ~<(\w+)/?>(.)*</(\1)>~smgI
1406      <!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>      <!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>
1407    
1408  /^a/IF  /^a/IF
1409    
1410  /line\nbreak/  /line\nbreak/I
1411      this is a line\nbreak      this is a line\nbreak
1412      line one\nthis is a line\nbreak in the second line      line one\nthis is a line\nbreak in the second line
1413    
1414  /line\nbreak/f  /line\nbreak/If
1415      this is a line\nbreak      this is a line\nbreak
1416      ** Failers      ** Failers
1417      line one\nthis is a line\nbreak in the second line      line one\nthis is a line\nbreak in the second line
1418    
1419  /line\nbreak/mf  /line\nbreak/Imf
1420      this is a line\nbreak      this is a line\nbreak
1421      ** Failers      ** Failers
1422      line one\nthis is a line\nbreak in the second line      line one\nthis is a line\nbreak in the second line
1423    
1424  /ab.cd/P  /ab.cd/IP
1425      ab-cd      ab-cd
1426      ab=cd      ab=cd
1427      ** Failers      ** Failers
1428      ab\ncd      ab\ncd
1429    
1430  /ab.cd/Ps  /ab.cd/IPs
1431      ab-cd      ab-cd
1432      ab=cd      ab=cd
1433      ab\ncd      ab\ncd
1434    
1435  /(?i)(?-i)AbCd/  /(?i)(?-i)AbCd/I
1436      AbCd      AbCd
1437      ** Failers      ** Failers
1438      abcd      abcd
1439    
1440  /a{11111111111111111111}/  /a{11111111111111111111}/I
1441    
1442  /(){64294967295}/  /(){64294967295}/I
1443    
1444  /(){2,4294967295}/  /(){2,4294967295}/I
1445    
1446  "(?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: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
1447      abcdefghijklAkB      abcdefghijklAkB
1448    
1449  "(?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"  "(?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
1450      abcdefghijklAkB      abcdefghijklAkB
1451    
1452  "(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)A\11B"  "(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)A\11B"I
1453      abcdefghijklAkB      abcdefghijklAkB
1454    
1455  "(?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)"  "(?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<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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1460    
1461  /[^()]*(?:\((?R)\)[^()]*)*/  /[^()]*(?:\((?R)\)[^()]*)*/I
1462      (this(and)that      (this(and)that
1463      (this(and)that)      (this(and)that)
1464      (this(and)that)stuff      (this(and)that)stuff
1465    
1466  /[^()]*(?:\((?>(?R))\)[^()]*)*/  /[^()]*(?:\((?>(?R))\)[^()]*)*/I
1467      (this(and)that      (this(and)that
1468      (this(and)that)      (this(and)that)
1469    
1470  /[^()]*(?:\((?R)\))*[^()]*/  /[^()]*(?:\((?R)\))*[^()]*/I
1471      (this(and)that      (this(and)that
1472      (this(and)that)      (this(and)that)
1473    
1474  /(?:\((?R)\))*[^()]*/  /(?:\((?R)\))*[^()]*/I
1475      (this(and)that      (this(and)that
1476      (this(and)that)      (this(and)that)
1477      ((this))      ((this))
1478    
1479  /(?:\((?R)\))|[^()]*/  /(?:\((?R)\))|[^()]*/I
1480      (this(and)that      (this(and)that
1481      (this(and)that)      (this(and)that)
1482      (this)      (this)
1483      ((this))      ((this))
1484    
1485  /a(b)c/PN  /a(b)c/IPN
1486      abc      abc
1487    
1488  /a(?P<name>b)c/PN  /a(?P<name>b)c/IPN
1489      abc      abc
1490    
1491  /\x{100}/  /\x{100}/I
1492    
1493  /\x{0000ff}/  /\x{0000ff}/I
1494    
1495  /^((?P<A>a1)|(?P<A>a2)b)/  /^((?P<A>a1)|(?P<A>a2)b)/I
1496    
1497  /^((?P<A>a1)|(?P<A>a2)b)/J  /^((?P<A>a1)|(?P<A>a2)b)/IJ
1498      a1b\CA      a1b\CA
1499      a2b\CA      a2b\CA
1500      ** Failers      ** Failers
1501      a1b\CZ\CA      a1b\CZ\CA
1502    
1503  /^(?P<A>a)(?P<A>b)/J  /^(?P<A>a)(?P<A>b)/IJ
1504      ab\CA      ab\CA
1505    
1506  /^(?P<A>a)(?P<A>b)|cd/J  /^(?P<A>a)(?P<A>b)|cd/IJ
1507      ab\CA      ab\CA
1508      cd\CA      cd\CA
1509    
1510  /^(?P<A>a)(?P<A>b)|cd(?P<A>ef)(?P<A>gh)/J  /^(?P<A>a)(?P<A>b)|cd(?P<A>ef)(?P<A>gh)/IJ
1511      cdefgh\CA      cdefgh\CA
1512    
1513  /^((?P<A>a1)|(?P<A>a2)b)/J  /^((?P<A>a1)|(?P<A>a2)b)/IJ
1514      a1b\GA      a1b\GA
1515      a2b\GA      a2b\GA
1516      ** Failers      ** Failers
1517      a1b\GZ\GA      a1b\GZ\GA
1518    
1519  /^(?P<A>a)(?P<A>b)/J  /^(?P<A>a)(?P<A>b)/IJ
1520      ab\GA      ab\GA
1521    
1522  /^(?P<A>a)(?P<A>b)|cd/J  /^(?P<A>a)(?P<A>b)|cd/IJ
1523      ab\GA      ab\GA
1524      cd\GA      cd\GA
1525    
1526  /^(?P<A>a)(?P<A>b)|cd(?P<A>ef)(?P<A>gh)/J  /^(?P<A>a)(?P<A>b)|cd(?P<A>ef)(?P<A>gh)/IJ
1527      cdefgh\GA      cdefgh\GA
1528    
1529  /(?J)^((?P<A>a1)|(?P<A>a2)b)/  /(?J)^((?P<A>a1)|(?P<A>a2)b)/I
1530      a1b\CA      a1b\CA
1531      a2b\CA      a2b\CA
1532    
1533  /^(?P<A>a) (?J:(?P<B>b)(?P<B>c)) (?P<A>d)/  /^(?P<A>a) (?J:(?P<B>b)(?P<B>c)) (?P<A>d)/I
1534    
1535  / In this next test, J is not set at the outer level; consequently it isn't  / In this next test, J is not set at the outer level; consequently it isn't
1536  set in the pattern's options; consequently pcre_get_named_substring() produces  set in the pattern's options; consequently pcre_get_named_substring() produces
1537  a random value. /x  a random value. /Ix
1538    
1539  /^(?P<A>a) (?J:(?P<B>b)(?P<B>c)) (?P<C>d)/  /^(?P<A>a) (?J:(?P<B>b)(?P<B>c)) (?P<C>d)/I
1540      a bc d\CA\CB\CC      a bc d\CA\CB\CC
1541    
1542  /^(?P<A>a)?(?(A)a|b)/  /^(?P<A>a)?(?(A)a|b)/I
1543      aabc      aabc
1544      bc      bc
1545      ** Failers      ** Failers
1546      abc      abc
1547    
1548  /(?:(?(ZZ)a|b)(?P<ZZ>X))+/  /(?:(?(ZZ)a|b)(?P<ZZ>X))+/I
1549      bXaX      bXaX
1550    
1551  /(?:(?(2y)a|b)(X))+/  /(?:(?(2y)a|b)(X))+/I
1552    
1553  /(?:(?(ZA)a|b)(?P<ZZ>X))+/  /(?:(?(ZA)a|b)(?P<ZZ>X))+/I
1554    
1555  /(?:(?(ZZ)a|b)(?(ZZ)a|b)(?P<ZZ>X))+/  /(?:(?(ZZ)a|b)(?(ZZ)a|b)(?P<ZZ>X))+/I
1556      bbXaaX      bbXaaX
1557    
1558  /(?:(?(ZZ)a|\(b\))\\(?P<ZZ>X))+/  /(?:(?(ZZ)a|\(b\))\\(?P<ZZ>X))+/I
1559      (b)\\Xa\\X      (b)\\Xa\\X
1560    
1561  /(?P<ABC/  /(?P<ABC/I
1562    
1563  /(?:(?(A)(?P=A)a|b)(?P<A>X|Y))+/  /(?:(?(A)(?P=A)a|b)(?P<A>X|Y))+/I
1564      bXXaYYaY      bXXaYYaY
1565      bXYaXXaX      bXYaXXaX
1566    
1567  /()()()()()()()()()(?:(?(A)(?P=A)a|b)(?P<A>X|Y))+/  /()()()()()()()()()(?:(?(A)(?P=A)a|b)(?P<A>X|Y))+/I
1568      bXXaYYaY      bXXaYYaY
1569    
1570  /\777/  /\777/I
1571    
1572  /\s*,\s*/S  /\s*,\s*/IS
1573      \x0b,\x0b      \x0b,\x0b
1574      \x0c,\x0d      \x0c,\x0d
1575    
1576  /^abc/m  /^abc/Im
1577      xyz\nabc      xyz\nabc
1578      xyz\nabc\<lf>      xyz\nabc\<lf>
1579      xyz\r\nabc\<lf>      xyz\r\nabc\<lf>
# Line 1584  a random value. /x Line 1586  a random value. /x
1586      xyz\rabc\<crlf>      xyz\rabc\<crlf>
1587      xyz\rabc\<lf>      xyz\rabc\<lf>
1588    
1589  /abc$/m  /abc$/Im<lf>
1590      xyzabc      xyzabc
1591      xyzabc\n      xyzabc\n
1592      xyzabc\npqr      xyzabc\npqr
# Line 1598  a random value. /x Line 1600  a random value. /x
1600      xyzabc\r\n      xyzabc\r\n
1601      xyzabc\r\npqr      xyzabc\r\npqr
1602    
1603  /^abc/m<cr>  /^abc/Im<cr>
1604      xyz\rabcdef      xyz\rabcdef
1605      xyz\nabcdef\<lf>      xyz\nabcdef\<lf>
1606      ** Failers      ** Failers
1607      xyz\nabcdef      xyz\nabcdef
1608    
1609  /^abc/m<lf>  /^abc/Im<lf>
1610      xyz\nabcdef      xyz\nabcdef
1611      xyz\rabcdef\<cr>      xyz\rabcdef\<cr>
1612      ** Failers      ** Failers
1613      xyz\rabcdef      xyz\rabcdef
1614    
1615  /^abc/m<crlf>  /^abc/Im<crlf>
1616      xyz\r\nabcdef      xyz\r\nabcdef
1617      xyz\rabcdef\<cr>      xyz\rabcdef\<cr>
1618      ** Failers      ** Failers
1619      xyz\rabcdef      xyz\rabcdef
1620    
1621  /^abc/m<bad>  /^abc/Im<bad>
1622    
1623  /abc/  /abc/I
1624      xyz\rabc\<bad>      xyz\rabc\<bad>
1625      abc      abc
1626    
1627  /.*/  /.*/I<lf>
1628      abc\ndef      abc\ndef
1629      abc\rdef      abc\rdef
1630      abc\r\ndef      abc\r\ndef
# Line 1633  a random value. /x Line 1635  a random value. /x
1635      \<crlf>abc\rdef      \<crlf>abc\rdef
1636      \<crlf>abc\r\ndef      \<crlf>abc\r\ndef
1637    
1638  /\w+(.)(.)?def/s  /\w+(.)(.)?def/Is
1639      abc\ndef      abc\ndef
1640      abc\rdef      abc\rdef
1641      abc\r\ndef      abc\r\ndef
1642    
1643  +((?:\s|//.*\\n|/[*](?:\\n|.)*?[*]/)*)+  +((?:\s|//.*\\n|/[*](?:\\n|.)*?[*]/)*)+I
1644     /* this is a C style comment */\M     /* this is a C style comment */\M
1645    
1646  /(?P<B>25[0-5]|2[0-4]\d|[01]?\d?\d)(?:\.(?P>B)){3}/  /(?P<B>25[0-5]|2[0-4]\d|[01]?\d?\d)(?:\.(?P>B)){3}/I
1647    
1648    /()()()()()()()()()()()()()()()()()()()()
1649     ()()()()()()()()()()()()()()()()()()()()
1650     ()()()()()()()()()()()()()()()()()()()()
1651     ()()()()()()()()()()()()()()()()()()()()
1652     ()()()()()()()()()()()()()()()()()()()()
1653     (.(.))/Ix
1654        XY\O400
1655    
1656    /(a*b|(?i:c*(?-i)d))/IS
1657    
1658    /()[ab]xyz/IS
1659    
1660    /(|)[ab]xyz/IS
1661    
1662    /(|c)[ab]xyz/IS
1663    
1664    /(|c?)[ab]xyz/IS
1665    
1666    /(d?|c?)[ab]xyz/IS
1667    
1668    /(d?|c)[ab]xyz/IS
1669    
1670    /^a*b\d/D
1671    
1672    /^a*+b\d/D
1673    
1674    /^a*?b\d/D
1675    
1676    /^a+A\d/D
1677        aaaA5
1678        ** Failers
1679        aaaa5
1680    
1681    /^a*A\d/IiD
1682        aaaA5
1683        aaaa5
1684    
1685    /(a*|b*)[cd]/IS
1686    
1687    /(a+|b*)[cd]/IS
1688    
1689    /(a*|b+)[cd]/IS
1690    
1691    /(a+|b+)[cd]/IS
1692    
1693    /((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
1694     ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
1695     (((
1696     a
1697     ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
1698     ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
1699     )))
1700    /Ix
1701      large nest
1702    
1703    /a*\d/B
1704    
1705    /a*\D/B
1706    
1707    /0*\d/B
1708    
1709    /0*\D/B
1710    
1711    /a*\s/B
1712    
1713    /a*\S/B
1714    
1715    / *\s/B
1716    
1717    / *\S/B
1718    
1719    /a*\w/B
1720    
1721    /a*\W/B
1722    
1723    /=*\w/B
1724    
1725    /=*\W/B
1726    
1727    /\d*a/B
1728    
1729    /\d*2/B
1730    
1731    /\d*\d/B
1732    
1733    /\d*\D/B
1734    
1735    /\d*\s/B
1736    
1737    /\d*\S/B
1738    
1739    /\d*\w/B
1740    
1741    /\d*\W/B
1742    
1743    /\D*a/B
1744    
1745    /\D*2/B
1746    
1747    /\D*\d/B
1748    
1749    /\D*\D/B
1750    
1751    /\D*\s/B
1752    
1753    /\D*\S/B
1754    
1755    /\D*\w/B
1756    
1757    /\D*\W/B
1758    
1759    /\s*a/B
1760    
1761    /\s*2/B
1762    
1763    /\s*\d/B
1764    
1765    /\s*\D/B
1766    
1767    /\s*\s/B
1768    
1769    /\s*\S/B
1770    
1771    /\s*\w/B
1772    
1773    /\s*\W/B
1774    
1775    /\S*a/B
1776    
1777    /\S*2/B
1778    
1779    /\S*\d/B
1780    
1781    /\S*\D/B
1782    
1783    /\S*\s/B
1784    
1785    /\S*\S/B
1786    
1787    /\S*\w/B
1788    
1789    /\S*\W/B
1790    
1791    /\w*a/B
1792    
1793    /\w*2/B
1794    
1795    /\w*\d/B
1796    
1797    /\w*\D/B
1798    
1799    /\w*\s/B
1800    
1801    /\w*\S/B
1802    
1803    /\w*\w/B
1804    
1805    /\w*\W/B
1806    
1807    /\W*a/B
1808    
1809    /\W*2/B
1810    
1811    /\W*\d/B
1812    
1813    /\W*\D/B
1814    
1815    /\W*\s/B
1816    
1817    /\W*\S/B
1818    
1819    /\W*\w/B
1820    
1821    /\W*\W/B
1822    
1823    /[^a]+a/B
1824    
1825    /[^a]+a/Bi
1826    
1827    /[^a]+A/Bi
1828    
1829    /[^a]+b/B
1830    
1831    /[^a]+\d/B
1832    
1833    /a*[^a]/B
1834    
1835    /(?P<abc>x)(?P<xyz>y)/I
1836        xy\Cabc\Cxyz
1837    
1838    /(?<abc>x)(?'xyz'y)/I
1839        xy\Cabc\Cxyz
1840    
1841    /(?<abc'x)(?'xyz'y)/I
1842    
1843    /(?<abc>x)(?'xyz>y)/I
1844    
1845    /(?P'abc'x)(?P<xyz>y)/I
1846    
1847    /^(?:(?(ZZ)a|b)(?<ZZ>X))+/
1848        bXaX
1849        bXbX
1850        ** Failers
1851        aXaX
1852        aXbX
1853    
1854    /^(?P>abc)(?<abcd>xxx)/
1855    
1856    /^(?P>abc)(?<abc>x|y)/
1857        xx
1858        xy
1859        yy
1860        yx
1861    
1862    /^(?P>abc)(?P<abc>x|y)/
1863        xx
1864        xy
1865        yy
1866        yx
1867    
1868    /^((?(abc)a|b)(?<abc>x|y))+/
1869        bxay
1870        bxby
1871        ** Failers
1872        axby
1873    
1874    /^(((?P=abc)|X)(?<abc>x|y))+/
1875        XxXxxx
1876        XxXyyx
1877        XxXyxx
1878        ** Failers
1879        x
1880    
1881    /^(?1)(abc)/
1882        abcabc
1883    
1884    /^(?:(?:\1|X)(a|b))+/
1885        Xaaa
1886        Xaba
1887    
1888    /^[\E\Qa\E-\Qz\E]+/B
1889    
1890    /^[a\Q]bc\E]/B
1891    
1892    /^[a-\Q\E]/B
1893    
1894    /^(?P>abc)[()](?<abc>)/B
1895    
1896    /^((?(abc)y)[()](?P<abc>x))+/B
1897        (xy)x
1898    
1899    /^(?P>abc)\Q()\E(?<abc>)/B
1900    
1901    /^(?P>abc)[a\Q(]\E(](?<abc>)/B
1902    
1903    /^(?P>abc) # this is (a comment)
1904      (?<abc>)/Bx
1905    
1906    /^\W*(?:(?<one>(?<two>.)\W*(?&one)\W*\k<two>|)|(?<three>(?<four>.)\W*(?&three)\W*\k'four'|\W*.\W*))\W*$/Ii
1907        1221
1908        Satan, oscillate my metallic sonatas!
1909        A man, a plan, a canal: Panama!
1910        Able was I ere I saw Elba.
1911        *** Failers
1912        The quick brown fox
1913    
1914    /(?=(\w+))\1:/I
1915        abcd:
1916    
1917    /(?=(?'abc'\w+))\k<abc>:/I
1918        abcd:
1919    
1920    /(?'abc'\w+):\k<abc>{2}/
1921        a:aaxyz
1922        ab:ababxyz
1923        ** Failers
1924        a:axyz
1925        ab:abxyz
1926    
1927    /(?'abc'a|b)(?<abc>d|e)\k<abc>{2}/J
1928        adaa
1929        ** Failers
1930        addd
1931        adbb
1932    
1933    /(?'abc'a|b)(?<abc>d|e)(?&abc){2}/J
1934        bdaa
1935        bdab
1936        ** Failers
1937        bddd
1938    
1939    /^(?<ab>a)? (?(<ab>)b|c) (?('ab')d|e)/x
1940        abd
1941        ce
1942    
1943    /(?(<bc))/
1944    
1945    /(?(''))/
1946    
1947    /(?('R')stuff)/
1948    
1949    /((abc (?(R) (?(R1)1) (?(R2)2) X  |  (?1)  (?2)   (?R) ))) /x
1950        abcabc1Xabc2XabcXabcabc
1951    
1952    /(?<A> (?'B' abc (?(R) (?(R&A)1) (?(R&B)2) X  |  (?1)  (?2)   (?R) ))) /x
1953        abcabc1Xabc2XabcXabcabc
1954    
1955    /(?<A> (?'B' abc (?(R) (?(R&1)1) (?(R&B)2) X  |  (?1)  (?2)   (?R) ))) /x
1956    
1957    /(?<1> (?'B' abc (?(R) (?(R&1)1) (?(R&B)2) X  |  (?1)  (?2)   (?R) ))) /x
1958        abcabc1Xabc2XabcXabcabc
1959    
1960    /^(?(DEFINE) (?<A> a) (?<B> b) )  (?&A) (?&B) /x
1961        abcd
1962    
1963    /(?<NAME>(?&NAME_PAT))\s+(?<ADDR>(?&ADDRESS_PAT))
1964      (?(DEFINE)
1965      (?<NAME_PAT>[a-z]+)
1966      (?<ADDRESS_PAT>\d+)
1967      )/x
1968        metcalfe 33
1969    
1970    /^(?(DEFINE) abc | xyz ) /x
1971    
1972    /(?(DEFINE) abc) xyz/xI
1973    
1974    /(?(DEFINE) abc){3} xyz/x
1975    
1976    /(a|)*\d/
1977      \O0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1978      \O0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa4
1979    
1980    /^a.b/<lf>
1981        a\rb
1982        a\nb\<cr>
1983        ** Failers
1984        a\nb
1985        a\nb\<any>
1986        a\rb\<cr>
1987        a\rb\<any>
1988    
1989    /^abc./mgx<any>
1990        abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x85abc7 \x{2028}abc8 \x{2029}abc9 JUNK
1991    
1992    /abc.$/mgx<any>
1993        abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x85 abc7\x{2028} abc8\x{2029} abc9
1994    
1995    /a/<cr><any>
1996    
1997    /a/<any><crlf>
1998    
1999    /^a\Rb/
2000        a\nb
2001        a\rb
2002        a\r\nb
2003        a\x0bb
2004        a\x0cb
2005        a\x85b
2006        ** Failers
2007        a\n\rb
2008    
2009    /^a\R*b/
2010        ab
2011        a\nb
2012        a\rb
2013        a\r\nb
2014        a\x0bb
2015        a\x0cb
2016        a\x85b
2017        a\n\rb
2018        a\n\r\x85\x0cb
2019    
2020    /^a\R+b/
2021        a\nb
2022        a\rb
2023        a\r\nb
2024        a\x0bb
2025        a\x0cb
2026        a\x85b
2027        a\n\rb
2028        a\n\r\x85\x0cb
2029        ** Failers
2030        ab
2031    
2032    /^a\R{1,3}b/
2033        a\nb
2034        a\n\rb
2035        a\n\r\x85b
2036        a\r\n\r\nb
2037        a\r\n\r\n\r\nb
2038        a\n\r\n\rb
2039        a\n\n\r\nb
2040        ** Failers
2041        a\n\n\n\rb
2042        a\r
2043    
2044    /^a[\R]b/
2045        aRb
2046        ** Failers
2047        a\nb
2048    
2049    /(?&abc)X(?<abc>P)/I
2050        abcPXP123
2051    
2052    /(?1)X(?<abc>P)/I
2053        abcPXP123
2054    
2055    /(?(DEFINE)(?<byte>2[0-4]\d|25[0-5]|1\d\d|[1-9]?\d))\b(?&byte)(\.(?&byte)){3}/
2056        1.2.3.4
2057        131.111.10.206
2058        10.0.0.0
2059        ** Failers
2060        10.6
2061        455.3.4.5
2062    
2063    /\b(?&byte)(\.(?&byte)){3}(?(DEFINE)(?<byte>2[0-4]\d|25[0-5]|1\d\d|[1-9]?\d))/
2064        1.2.3.4
2065        131.111.10.206
2066        10.0.0.0
2067        ** Failers
2068        10.6
2069        455.3.4.5
2070    
2071    /(?:a(?&abc)b)*(?<abc>x)/
2072        123axbaxbaxbx456
2073        123axbaxbaxb456
2074    
2075    /(?:a(?&abc)b){1,5}(?<abc>x)/
2076        123axbaxbaxbx456
2077    
2078    /(?:a(?&abc)b){2,5}(?<abc>x)/
2079        123axbaxbaxbx456
2080    
2081    /(?:a(?&abc)b){2,}(?<abc>x)/
2082        123axbaxbaxbx456
2083    
2084    /(abc)(?i:(?1))/
2085       defabcabcxyz
2086       DEFabcABCXYZ
2087    
2088    /(abc)(?:(?i)(?1))/
2089       defabcabcxyz
2090       DEFabcABCXYZ
2091    
2092    /^(a(b))\1\g1\g{1}\g-1\g{-1}\g{-02}Z/
2093        ababababbbabZXXXX
2094    
2095    /^(a)\g-2/
2096    
2097    /^(a)\g/
2098    
2099    /^(a)\g{0}/
2100    
2101    /^(a)\g{3/
2102    
2103    /^(a)\g{4a}/
2104    
2105    /^a.b/<lf>
2106        a\rb
2107        *** Failers
2108        a\nb
2109    
2110    /.+foo/
2111        afoo
2112        ** Failers
2113        \r\nfoo
2114        \nfoo
2115    
2116    /.+foo/<crlf>
2117        afoo
2118        \nfoo
2119        ** Failers
2120        \r\nfoo
2121    
2122    /.+foo/<any>
2123        afoo
2124        ** Failers
2125        \nfoo
2126        \r\nfoo
2127    
2128    /.+foo/s
2129        afoo
2130        \r\nfoo
2131        \nfoo
2132    
2133  / End of testinput2 /  / End of testinput2 /

Legend:
Removed from v.91  
changed lines
  Added in v.93

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12