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

Contents of /code/trunk/testdata/testinput2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 91 - (hide annotations) (download)
Sat Feb 24 21:41:34 2007 UTC (7 years, 7 months ago) by nigel
File size: 29895 byte(s)
Load pcre-6.7 into code/trunk.

1 nigel 41 /(a)b|/
2    
3     /abc/
4     abc
5     defabc
6     \Aabc
7     *** Failers
8     \Adefabc
9     ABC
10    
11     /^abc/
12     abc
13     \Aabc
14     *** Failers
15     defabc
16     \Adefabc
17    
18     /a+bc/
19    
20     /a*bc/
21    
22     /a{3}bc/
23    
24     /(abc|a+z)/
25    
26     /^abc$/
27     abc
28     *** Failers
29     def\nabc
30    
31     /ab\gdef/X
32    
33     /(?X)ab\gdef/X
34    
35     /x{5,4}/
36    
37     /z{65536}/
38    
39     /[abcd/
40    
41 nigel 63 /(?X)[\B]/
42 nigel 41
43     /[z-a]/
44    
45     /^*/
46    
47     /(abc/
48    
49     /(?# abc/
50    
51     /(?z)abc/
52    
53     /.*b/
54    
55     /.*?b/
56    
57     /cat|dog|elephant/
58     this sentence eventually mentions a cat
59     this sentences rambles on and on for a while and then reaches elephant
60    
61     /cat|dog|elephant/S
62     this sentence eventually mentions a cat
63     this sentences rambles on and on for a while and then reaches elephant
64    
65     /cat|dog|elephant/iS
66     this sentence eventually mentions a CAT cat
67     this sentences rambles on and on for a while to elephant ElePhant
68    
69     /a|[bcd]/S
70    
71     /(a|[^\dZ])/S
72    
73     /(a|b)*[\s]/S
74    
75     /(ab\2)/
76    
77     /{4,5}abc/
78    
79     /(a)(b)(c)\2/
80     abcb
81     \O0abcb
82     \O3abcb
83     \O6abcb
84     \O9abcb
85     \O12abcb
86    
87     /(a)bc|(a)(b)\2/
88     abc
89     \O0abc
90     \O3abc
91     \O6abc
92     aba
93     \O0aba
94     \O3aba
95     \O6aba
96     \O9aba
97     \O12aba
98    
99     /abc$/E
100     abc
101     *** Failers
102     abc\n
103     abc\ndef
104    
105     /(a)(b)(c)(d)(e)\6/
106    
107     /the quick brown fox/
108     the quick brown fox
109     this is a line with the quick brown fox
110    
111     /the quick brown fox/A
112     the quick brown fox
113     *** Failers
114     this is a line with the quick brown fox
115    
116     /ab(?z)cd/
117    
118     /^abc|def/
119     abcdef
120     abcdef\B
121    
122     /.*((abc)$|(def))/
123     defabc
124     \Zdefabc
125    
126     /abc/P
127     abc
128     *** Failers
129    
130     /^abc|def/P
131     abcdef
132     abcdef\B
133    
134     /.*((abc)$|(def))/P
135     defabc
136     \Zdefabc
137    
138     /the quick brown fox/P
139     the quick brown fox
140     *** Failers
141     The Quick Brown Fox
142    
143     /the quick brown fox/Pi
144     the quick brown fox
145     The Quick Brown Fox
146    
147     /abc.def/P
148     *** Failers
149     abc\ndef
150    
151     /abc$/P
152     abc
153     abc\n
154    
155     /(abc)\2/P
156    
157     /(abc\1)/P
158     abc
159    
160     /)/
161    
162     /a[]b/
163    
164     /[^aeiou ]{3,}/
165     co-processors, and for
166    
167     /<.*>/
168     abc<def>ghi<klm>nop
169    
170     /<.*?>/
171     abc<def>ghi<klm>nop
172    
173     /<.*>/U
174     abc<def>ghi<klm>nop
175    
176 nigel 63 /(?U)<.*>/
177 nigel 41 abc<def>ghi<klm>nop
178    
179     /<.*?>/U
180     abc<def>ghi<klm>nop
181    
182     /={3,}/U
183     abc========def
184    
185     /(?U)={3,}?/
186     abc========def
187    
188     /(?<!bar|cattle)foo/
189     foo
190     catfoo
191     *** Failers
192     the barfoo
193     and cattlefoo
194    
195     /(?<=a+)b/
196    
197     /(?<=aaa|b{0,3})b/
198    
199     /(?<!(foo)a\1)bar/
200    
201     /(?i)abc/
202    
203     /(a|(?m)a)/
204    
205     /(?i)^1234/
206    
207     /(^b|(?i)^d)/
208    
209     /(?s).*/
210    
211     /[abcd]/S
212    
213     /(?i)[abcd]/S
214    
215     /(?m)[xy]|(b|c)/S
216    
217     /(^a|^b)/m
218    
219     /(?i)(^a|^b)/m
220    
221     /(a)(?(1)a|b|c)/
222    
223     /(?(?=a)a|b|c)/
224    
225     /(?(1a)/
226    
227     /(?(?i))/
228    
229     /(?(abc))/
230    
231     /(?(?<ab))/
232    
233     /((?s)blah)\s+\1/
234    
235     /((?i)blah)\s+\1/
236    
237     /((?i)b)/DS
238    
239     /(a*b|(?i:c*(?-i)d))/S
240    
241     /a$/
242     a
243     a\n
244     *** Failers
245     \Za
246     \Za\n
247    
248     /a$/m
249     a
250     a\n
251     \Za\n
252     *** Failers
253     \Za
254    
255     /\Aabc/m
256    
257     /^abc/m
258    
259     /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/
260     aaaaabbbbbcccccdef
261    
262     /(?<=foo)[ab]/S
263    
264     /(?<!foo)(alpha|omega)/S
265    
266     /(?!alphabet)[ab]/S
267    
268     /(?<=foo\n)^bar/m
269 nigel 75 foo\nbarbar
270     ***Failers
271     rhubarb
272     barbell
273     abc\nbarton
274 nigel 41
275 nigel 75 /^(?<=foo\n)bar/m
276     foo\nbarbar
277     ***Failers
278     rhubarb
279     barbell
280     abc\nbarton
281    
282 nigel 41 /(?>^abc)/m
283     abc
284     def\nabc
285     *** Failers
286     defabc
287    
288     /(?<=ab(c+)d)ef/
289    
290     /(?<=ab(?<=c+)d)ef/
291    
292     /(?<=ab(c|de)f)g/
293    
294     /The next three are in testinput2 because they have variable length branches/
295    
296     /(?<=bullock|donkey)-cart/
297     the bullock-cart
298     a donkey-cart race
299     *** Failers
300     cart
301     horse-and-cart
302    
303     /(?<=ab(?i)x|y|z)/
304    
305     /(?>.*)(?<=(abcd)|(xyz))/
306     alphabetabcd
307     endingxyz
308    
309     /(?<=ab(?i)x(?-i)y|(?i)z|b)ZZ/
310     abxyZZ
311     abXyZZ
312     ZZZ
313     zZZ
314     bZZ
315     BZZ
316     *** Failers
317     ZZ
318     abXYZZ
319     zzz
320     bzz
321    
322     /(?<!(foo)a)bar/
323     bar
324     foobbar
325     *** Failers
326     fooabar
327    
328     /This one is here because Perl 5.005_02 doesn't fail it/
329    
330     /^(a)?(?(1)a|b)+$/
331     *** Failers
332     a
333    
334     /This one is here because I think Perl 5.005_02 gets the setting of $1 wrong/
335    
336     /^(a\1?){4}$/
337     aaaaaa
338    
339     /These are syntax tests from Perl 5.005/
340    
341     /a[b-a]/
342    
343     /a[]b/
344    
345     /a[/
346    
347     /*a/
348    
349     /(*)b/
350    
351     /abc)/
352    
353     /(abc/
354    
355     /a**/
356    
357     /)(/
358    
359     /\1/
360    
361     /\2/
362    
363     /(a)|\2/
364    
365     /a[b-a]/i
366    
367     /a[]b/i
368    
369     /a[/i
370    
371     /*a/i
372    
373     /(*)b/i
374    
375     /abc)/i
376    
377     /(abc/i
378    
379     /a**/i
380    
381     /)(/i
382    
383     /:(?:/
384    
385     /(?<%)b/
386    
387     /a(?{)b/
388    
389     /a(?{{})b/
390    
391     /a(?{}})b/
392    
393     /a(?{"{"})b/
394    
395     /a(?{"{"}})b/
396    
397     /(?(1?)a|b)/
398    
399     /(?(1)a|b|c)/
400    
401     /[a[:xyz:/
402    
403     /(?<=x+)y/
404    
405     /a{37,17}/
406    
407     /abc/\
408    
409     /abc/\P
410    
411     /abc/\i
412    
413     /(a)bc(d)/
414     abcd
415     abcd\C2
416     abcd\C5
417    
418     /(.{20})/
419     abcdefghijklmnopqrstuvwxyz
420     abcdefghijklmnopqrstuvwxyz\C1
421     abcdefghijklmnopqrstuvwxyz\G1
422    
423     /(.{15})/
424     abcdefghijklmnopqrstuvwxyz
425     abcdefghijklmnopqrstuvwxyz\C1\G1
426    
427     /(.{16})/
428     abcdefghijklmnopqrstuvwxyz
429     abcdefghijklmnopqrstuvwxyz\C1\G1\L
430    
431     /^(a|(bc))de(f)/
432     adef\G1\G2\G3\G4\L
433     bcdef\G1\G2\G3\G4\L
434     adefghijk\C0
435    
436     /^abc\00def/
437     abc\00def\L\C0
438    
439     /word ((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
440     )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
441     )?)?)?)?)?)?)?)?)?otherword/M
442    
443     /.*X/D
444    
445     /.*X/Ds
446    
447     /(.*X|^B)/D
448    
449     /(.*X|^B)/Ds
450    
451     /(?s)(.*X|^B)/D
452    
453     /(?s:.*X|^B)/D
454    
455     /\Biss\B/+
456     Mississippi
457    
458     /\Biss\B/+P
459     Mississippi
460    
461     /iss/G+
462     Mississippi
463    
464     /\Biss\B/G+
465     Mississippi
466    
467     /\Biss\B/g+
468     Mississippi
469     *** Failers
470     Mississippi\A
471    
472     /(?<=[Ms])iss/g+
473     Mississippi
474    
475     /(?<=[Ms])iss/G+
476     Mississippi
477    
478     /^iss/g+
479     ississippi
480    
481     /.*iss/g+
482     abciss\nxyzisspqr
483    
484     /.i./+g
485     Mississippi
486     Mississippi\A
487     Missouri river
488     Missouri river\A
489    
490     /^.is/+g
491     Mississippi
492    
493     /^ab\n/g+
494     ab\nab\ncd
495    
496     /^ab\n/mg+
497     ab\nab\ncd
498    
499     /abc/
500    
501     /abc|bac/
502    
503     /(abc|bac)/
504    
505     /(abc|(c|dc))/
506    
507     /(abc|(d|de)c)/
508    
509     /a*/
510    
511     /a+/
512    
513     /(baa|a+)/
514    
515     /a{0,3}/
516    
517     /baa{3,}/
518    
519     /"([^\\"]+|\\.)*"/
520    
521     /(abc|ab[cd])/
522    
523     /(a|.)/
524    
525     /a|ba|\w/
526    
527     /abc(?=pqr)/
528    
529     /...(?<=abc)/
530    
531     /abc(?!pqr)/
532    
533     /ab./
534    
535     /ab[xyz]/
536    
537     /abc*/
538    
539     /ab.c*/
540    
541     /a.c*/
542    
543     /.c*/
544    
545     /ac*/
546    
547     /(a.c*|b.c*)/
548    
549     /a.c*|aba/
550    
551     /.+a/
552    
553     /(?=abcda)a.*/
554    
555     /(?=a)a.*/
556    
557     /a(b)*/
558    
559     /a\d*/
560    
561     /ab\d*/
562    
563     /a(\d)*/
564    
565     /abcde{0,0}/
566    
567     /ab\d+/
568    
569     /a(?(1)b)/
570    
571     /a(?(1)bag|big)/
572    
573     /a(?(1)bag|big)*/
574    
575     /a(?(1)bag|big)+/
576    
577     /a(?(1)b..|b..)/
578    
579     /ab\d{0}e/
580    
581     /a?b?/
582     a
583     b
584     ab
585     \
586     *** Failers
587     \N
588    
589     /|-/
590     abcd
591     -abc
592     \Nab-c
593     *** Failers
594     \Nabc
595    
596     /a*(b+)(z)(z)/P
597     aaaabbbbzzzz
598     aaaabbbbzzzz\O0
599     aaaabbbbzzzz\O1
600     aaaabbbbzzzz\O2
601     aaaabbbbzzzz\O3
602     aaaabbbbzzzz\O4
603     aaaabbbbzzzz\O5
604 nigel 43
605     /^.?abcd/S
606 nigel 41
607 nigel 43 /\( # ( at start
608     (?: # Non-capturing bracket
609     (?>[^()]+) # Either a sequence of non-brackets (no backtracking)
610     | # Or
611     (?R) # Recurse - i.e. nested bracketed string
612     )* # Zero or more contents
613     \) # Closing )
614     /x
615     (abcd)
616     (abcd)xyz
617     xyz(abcd)
618     (ab(xy)cd)pqr
619     (ab(xycd)pqr
620     () abc ()
621     12(abcde(fsh)xyz(foo(bar))lmno)89
622     *** Failers
623     abcd
624     abcd)
625     (abcd
626    
627     /\( ( (?>[^()]+) | (?R) )* \) /xg
628     (ab(xy)cd)pqr
629     1(abcd)(x(y)z)pqr
630    
631     /\( (?: (?>[^()]+) | (?R) ) \) /x
632     (abcd)
633     (ab(xy)cd)
634     (a(b(c)d)e)
635     ((ab))
636     *** Failers
637     ()
638    
639     /\( (?: (?>[^()]+) | (?R) )? \) /x
640     ()
641     12(abcde(fsh)xyz(foo(bar))lmno)89
642    
643     /\( ( (?>[^()]+) | (?R) )* \) /x
644     (ab(xy)cd)
645    
646     /\( ( ( (?>[^()]+) | (?R) )* ) \) /x
647     (ab(xy)cd)
648    
649     /\( (123)? ( ( (?>[^()]+) | (?R) )* ) \) /x
650     (ab(xy)cd)
651     (123ab(xy)cd)
652    
653     /\( ( (123)? ( (?>[^()]+) | (?R) )* ) \) /x
654     (ab(xy)cd)
655     (123ab(xy)cd)
656    
657     /\( (((((((((( ( (?>[^()]+) | (?R) )* )))))))))) \) /x
658     (ab(xy)cd)
659    
660     /\( ( ( (?>[^()<>]+) | ((?>[^()]+)) | (?R) )* ) \) /x
661     (abcd(xyz<p>qrs)123)
662    
663     /\( ( ( (?>[^()]+) | ((?R)) )* ) \) /x
664     (ab(cd)ef)
665     (ab(cd(ef)gh)ij)
666    
667     /^[[:alnum:]]/D
668    
669 nigel 75 /^[[:^alnum:]]/D
670    
671 nigel 43 /^[[:alpha:]]/D
672 nigel 75
673     /^[[:^alpha:]]/D
674 nigel 43
675 nigel 87 /[_[:alpha:]]/IS
676    
677 nigel 43 /^[[:ascii:]]/D
678    
679 nigel 75 /^[[:^ascii:]]/D
680    
681 nigel 63 /^[[:blank:]]/D
682    
683 nigel 87 /^[[:^blank:]]/D
684    
685     /[\n\x0b\x0c\x0d[:blank:]]/IS
686    
687 nigel 43 /^[[:cntrl:]]/D
688    
689     /^[[:digit:]]/D
690    
691     /^[[:graph:]]/D
692    
693     /^[[:lower:]]/D
694    
695     /^[[:print:]]/D
696    
697     /^[[:punct:]]/D
698    
699     /^[[:space:]]/D
700    
701     /^[[:upper:]]/D
702    
703     /^[[:xdigit:]]/D
704    
705     /^[[:word:]]/D
706    
707     /^[[:^cntrl:]]/D
708    
709     /^[12[:^digit:]]/D
710    
711 nigel 63 /^[[:^blank:]]/D
712    
713 nigel 43 /[01[:alpha:]%]/D
714    
715     /[[.ch.]]/
716    
717     /[[=ch=]]/
718    
719     /[[:rhubarb:]]/
720    
721     /[[:upper:]]/i
722     A
723     a
724    
725     /[[:lower:]]/i
726     A
727     a
728    
729     /((?-i)[[:lower:]])[[:lower:]]/i
730     ab
731     aB
732     *** Failers
733     Ab
734     AB
735    
736 nigel 91 /[\200-\110]/
737 nigel 49
738 nigel 51 /^(?(0)f|b)oo/
739    
740 nigel 53 /This one's here because of the large output vector needed/
741    
742     /(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\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)/
743     \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
744    
745     /This one's here because Perl does this differently and PCRE can't at present/
746    
747     /(main(O)?)+/
748     mainmain
749     mainOmain
750    
751 nigel 63 /These are all cases where Perl does it differently (nested captures)/
752    
753     /^(a(b)?)+$/
754     aba
755    
756     /^(aa(bb)?)+$/
757     aabbaa
758    
759     /^(aa|aa(bb))+$/
760     aabbaa
761    
762     /^(aa(bb)??)+$/
763     aabbaa
764    
765     /^(?:aa(bb)?)+$/
766     aabbaa
767    
768     /^(aa(b(b))?)+$/
769     aabbaa
770    
771     /^(?:aa(b(b))?)+$/
772     aabbaa
773    
774     /^(?:aa(b(?:b))?)+$/
775     aabbaa
776    
777     /^(?:aa(bb(?:b))?)+$/
778     aabbbaa
779    
780     /^(?:aa(b(?:bb))?)+$/
781     aabbbaa
782    
783     /^(?:aa(?:b(b))?)+$/
784     aabbaa
785    
786     /^(?:aa(?:b(bb))?)+$/
787     aabbbaa
788    
789     /^(aa(b(bb))?)+$/
790     aabbbaa
791    
792     /^(aa(bb(bb))?)+$/
793     aabbbbaa
794    
795     /--------------------------------------------------------------------/
796    
797     /#/xMD
798    
799     /a#/xMD
800    
801     /[\s]/D
802    
803     /[\S]/D
804    
805     /a(?i)b/D
806     ab
807     aB
808     *** Failers
809     AB
810    
811     /(a(?i)b)/D
812     ab
813     aB
814     *** Failers
815     AB
816    
817     / (?i)abc/xD
818    
819     /#this is a comment
820     (?i)abc/xD
821    
822     /123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/D
823    
824     /\Q123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/D
825    
826     /\Q\E/D
827     \
828    
829     /\Q\Ex/D
830    
831     / \Q\E/D
832    
833     /a\Q\E/D
834     abc
835     bca
836     bac
837    
838     /a\Q\Eb/D
839     abc
840    
841     /\Q\Eabc/D
842    
843     /x*+\w/D
844     *** Failers
845     xxxxx
846    
847     /x?+/D
848    
849     /x++/D
850    
851     /x{1,3}+/D
852    
853     /(x)*+/D
854    
855     /^(\w++|\s++)*$/
856     now is the time for all good men to come to the aid of the party
857     *** Failers
858     this is not a line with only words and spaces!
859    
860     /(\d++)(\w)/
861     12345a
862     *** Failers
863     12345+
864    
865     /a++b/
866     aaab
867    
868     /(a++b)/
869     aaab
870    
871     /(a++)b/
872     aaab
873    
874     /([^()]++|\([^()]*\))+/
875     ((abc(ade)ufh()()x
876    
877     /\(([^()]++|\([^()]+\))+\)/
878     (abc)
879     (abc(def)xyz)
880     *** Failers
881     ((()aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
882    
883     /(abc){1,3}+/D
884    
885     /a+?+/
886    
887     /a{2,3}?+b/
888    
889     /(?U)a+?+/
890    
891     /a{2,3}?+b/U
892    
893     /x(?U)a++b/D
894     xaaaab
895    
896     /(?U)xa++b/D
897     xaaaab
898    
899     /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/D
900    
901     /^x(?U)a+b/D
902    
903     /^x(?U)(a+)b/D
904    
905     /[.x.]/
906    
907     /[=x=]/
908    
909     /[:x:]/
910    
911     /\l/
912    
913     /\L/
914    
915     /\N{name}/
916    
917     /\u/
918    
919     /\U/
920    
921     /[/
922    
923     /[a-/
924    
925     /[[:space:]/
926    
927     /[\s]/DM
928    
929     /[[:space:]]/DM
930    
931     /[[:space:]abcde]/DM
932    
933     /< (?: (?(R) \d++ | [^<>]*+) | (?R)) * >/x
934     <>
935     <abcd>
936     <abc <123> hij>
937     <abc <def> hij>
938     <abc<>def>
939     <abc<>
940     *** Failers
941     <abc
942    
943     |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|DM
944    
945     |\$\<\.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|DM
946    
947     /(.*)\d+\1/I
948    
949     /(.*)\d+/I
950    
951     /(.*)\d+\1/Is
952    
953     /(.*)\d+/Is
954    
955     /(.*(xyz))\d+\2/I
956    
957     /((.*))\d+\1/I
958     abc123bc
959    
960     /a[b]/I
961    
962     /(?=a).*/I
963    
964     /(?=abc).xyz/iI
965    
966     /(?=abc)(?i).xyz/I
967    
968     /(?=a)(?=b)/I
969    
970     /(?=.)a/I
971    
972     /((?=abcda)a)/I
973    
974     /((?=abcda)ab)/I
975    
976     /()a/I
977    
978     /(?(1)ab|ac)/I
979    
980     /(?(1)abz|acz)/I
981    
982     /(?(1)abz)/I
983    
984     /(?(1)abz)123/I
985    
986     /(a)+/I
987    
988     /(a){2,3}/I
989    
990     /(a)*/I
991    
992     /[a]/I
993    
994     /[ab]/I
995    
996     /[ab]/IS
997    
998     /[^a]/I
999    
1000     /\d456/I
1001    
1002     /\d456/IS
1003    
1004     /a^b/I
1005    
1006     /^a/mI
1007     abcde
1008     xy\nabc
1009     *** Failers
1010     xyabc
1011    
1012     /c|abc/I
1013    
1014     /(?i)[ab]/IS
1015    
1016     /[ab](?i)cd/IS
1017    
1018     /abc(?C)def/
1019     abcdef
1020     1234abcdef
1021     *** Failers
1022     abcxyz
1023     abcxyzf
1024    
1025     /abc(?C)de(?C1)f/
1026     123abcdef
1027    
1028     /(?C1)\dabc(?C2)def/
1029     1234abcdef
1030     *** Failers
1031     abcdef
1032    
1033     /(?C255)ab/
1034    
1035     /(?C256)ab/
1036    
1037     /(?Cab)xx/
1038    
1039     /(?C12vr)x/
1040    
1041     /abc(?C)def/
1042     *** Failers
1043     \x83\x0\x61bcdef
1044    
1045     /(abc)(?C)de(?C1)f/
1046     123abcdef
1047     123abcdef\C+
1048     123abcdef\C-
1049     *** Failers
1050     123abcdef\C!1
1051    
1052     /(?C0)(abc(?C1))*/
1053     abcabcabc
1054     abcabc\C!1!3
1055     *** Failers
1056     abcabcabc\C!1!3
1057    
1058     /(\d{3}(?C))*/
1059     123\C+
1060     123456\C+
1061     123456789\C+
1062    
1063     /((xyz)(?C)p|(?C1)xyzabc)/
1064     xyzabc\C+
1065    
1066     /(X)((xyz)(?C)p|(?C1)xyzabc)/
1067     Xxyzabc\C+
1068    
1069     /(?=(abc))(?C)abcdef/
1070     abcdef\C+
1071    
1072     /(?!(abc)(?C1)d)(?C2)abcxyz/
1073     abcxyz\C+
1074    
1075     /(?<=(abc)(?C))xyz/
1076     abcxyz\C+
1077    
1078 nigel 77 /a(b+)(c*)(?C1)/
1079     abbbbbccc\C*1
1080    
1081     /a(b+?)(c*?)(?C1)/
1082     abbbbbccc\C*1
1083    
1084 nigel 63 /(?C)abc/
1085    
1086     /(?C)^abc/
1087    
1088     /(?C)a|b/S
1089    
1090     /(?R)/
1091    
1092     /(a|(?R))/
1093    
1094     /(ab|(bc|(de|(?R))))/
1095    
1096     /x(ab|(bc|(de|(?R))))/
1097     xab
1098     xbc
1099     xde
1100     xxab
1101     xxxab
1102     *** Failers
1103     xyab
1104    
1105     /(ab|(bc|(de|(?1))))/
1106    
1107     /x(ab|(bc|(de|(?1)x)x)x)/
1108    
1109     /^([^()]|\((?1)*\))*$/
1110     abc
1111     a(b)c
1112     a(b(c))d
1113     *** Failers)
1114     a(b(c)d
1115    
1116     /^>abc>([^()]|\((?1)*\))*<xyz<$/
1117     >abc>123<xyz<
1118     >abc>1(2)3<xyz<
1119     >abc>(1(2)3)<xyz<
1120    
1121     /(a(?1)b)/D
1122    
1123     /(a(?1)+b)/D
1124    
1125     /^\W*(?:((.)\W*(?1)\W*\2|)|((.)\W*(?3)\W*\4|\W*.\W*))\W*$/i
1126     1221
1127     Satan, oscillate my metallic sonatas!
1128     A man, a plan, a canal: Panama!
1129     Able was I ere I saw Elba.
1130     *** Failers
1131     The quick brown fox
1132    
1133     /^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/
1134     12
1135     (((2+2)*-3)-7)
1136     -12
1137     *** Failers
1138     ((2+2)*-3)-7)
1139    
1140     /^(x(y|(?1){2})z)/
1141     xyz
1142     xxyzxyzz
1143     *** Failers
1144     xxyzz
1145     xxyzxyzxyzz
1146    
1147     /((< (?: (?(R) \d++ | [^<>]*+) | (?2)) * >))/x
1148     <>
1149     <abcd>
1150     <abc <123> hij>
1151     <abc <def> hij>
1152     <abc<>def>
1153     <abc<>
1154     *** Failers
1155     <abc
1156    
1157     /(?1)/
1158    
1159     /((?2)(abc)/
1160    
1161     /^(abc)def(?1)/
1162     abcdefabc
1163    
1164     /^(a|b|c)=(?1)+/
1165     a=a
1166     a=b
1167     a=bc
1168    
1169     /^(a|b|c)=((?1))+/
1170     a=a
1171     a=b
1172     a=bc
1173    
1174     /a(?P<name1>b|c)d(?P<longername2>e)/D
1175     abde
1176     acde
1177    
1178     /(?:a(?P<c>c(?P<d>d)))(?P<a>a)/D
1179    
1180     /(?P<a>a)...(?P=a)bbb(?P>a)d/D
1181    
1182     /^\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
1183     1221
1184     Satan, oscillate my metallic sonatas!
1185     A man, a plan, a canal: Panama!
1186     Able was I ere I saw Elba.
1187     *** Failers
1188     The quick brown fox
1189    
1190     /((?(R)a|b))\1(?1)?/
1191     bb
1192     bbaa
1193    
1194     /(.*)a/sI
1195    
1196     /(.*)a\1/sI
1197    
1198     /(.*)a(b)\2/sI
1199    
1200     /((.*)a|(.*)b)z/sI
1201    
1202     /((.*)a|(.*)b)z\1/sI
1203    
1204     /((.*)a|(.*)b)z\2/sI
1205    
1206     /((.*)a|(.*)b)z\3/sI
1207    
1208     /((.*)a|^(.*)b)z\3/sI
1209    
1210     /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a/sI
1211    
1212     /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\31/sI
1213    
1214     /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\32/sI
1215    
1216     /(a)(bc)/ND
1217     abc
1218    
1219     /(?P<one>a)(bc)/ND
1220     abc
1221    
1222     /(a)(?P<named>bc)/ND
1223    
1224     /(a+)*zz/
1225     aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazzbbbbbb\M
1226     aaaaaaaaaaaaaz\M
1227    
1228     /(aaa(?C1)bbb|ab)/
1229     aaabbb
1230     aaabbb\C*0
1231     aaabbb\C*1
1232     aaabbb\C*-1
1233    
1234     /ab(?P<one>cd)ef(?P<two>gh)/
1235     abcdefgh
1236     abcdefgh\C1\Gtwo
1237     abcdefgh\Cone\Ctwo
1238     abcdefgh\Cthree
1239    
1240     /(?P<Tes>)(?P<Test>)/D
1241    
1242     /(?P<Test>)(?P<Tes>)/D
1243    
1244     /(?P<Z>zz)(?P<A>aa)/
1245     zzaa\CZ
1246     zzaa\CA
1247    
1248 nigel 65 /(?P<x>eks)(?P<x>eccs)/
1249    
1250     /(?P<abc>abc(?P<def>def)(?P<abc>xyz))/
1251    
1252 nigel 73 "\[((?P<elem>\d+)(,(?P>elem))*)\]"
1253     [10,20,30,5,5,4,4,2,43,23,4234]
1254     *** Failers
1255     []
1256    
1257     "\[((?P<elem>\d+)(,(?P>elem))*)?\]"
1258     [10,20,30,5,5,4,4,2,43,23,4234]
1259     []
1260    
1261     /(a(b(?2)c))?/D
1262    
1263     /(a(b(?2)c))*/D
1264    
1265     /(a(b(?2)c)){0,2}/D
1266    
1267     /[ab]{1}+/D
1268    
1269     /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/i
1270     Baby Bjorn Active Carrier - With free SHIPPING!!
1271    
1272     /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/iS
1273     Baby Bjorn Active Carrier - With free SHIPPING!!
1274    
1275     /a*.*b/SD
1276    
1277     /(a|b)*.?c/SD
1278    
1279 nigel 75 /abc(?C255)de(?C)f/D
1280    
1281     /abcde/CD
1282     abcde
1283     abcdfe
1284    
1285     /a*b/CD
1286     ab
1287     aaaab
1288     aaaacb
1289    
1290     /a+b/CD
1291     ab
1292     aaaab
1293     aaaacb
1294    
1295     /(abc|def)x/CD
1296     abcx
1297     defx
1298     abcdefzx
1299    
1300     /(ab|cd){3,4}/C
1301     ababab
1302     abcdabcd
1303     abcdcdcdcdcd
1304    
1305     /([ab]{,4}c|xy)/CD
1306     Note: that { does NOT introduce a quantifier
1307    
1308     /([ab]{1,4}c|xy){4,5}?123/CD
1309     aacaacaacaacaac123
1310    
1311     /\b.*/I
1312     ab cd\>1
1313    
1314     /\b.*/Is
1315     ab cd\>1
1316    
1317     /(?!.bcd).*/I
1318     Xbcd12345
1319    
1320     /abcde/
1321     ab\P
1322     abc\P
1323     abcd\P
1324     abcde\P
1325     the quick brown abc\P
1326     ** Failers\P
1327     the quick brown abxyz fox\P
1328    
1329     "^(0?[1-9]|[12][0-9]|3[01])/(0?[1-9]|1[012])/(20)?\d\d$"
1330     13/05/04\P
1331     13/5/2004\P
1332     02/05/09\P
1333     1\P
1334     1/2\P
1335     1/2/0\P
1336     1/2/04\P
1337     0\P
1338     02/\P
1339     02/0\P
1340     02/1\P
1341     ** Failers\P
1342     \P
1343     123\P
1344     33/4/04\P
1345     3/13/04\P
1346     0/1/2003\P
1347     0/\P
1348     02/0/\P
1349     02/13\P
1350    
1351     /0{0,2}ABC/I
1352    
1353     /\d{3,}ABC/I
1354    
1355     /\d*ABC/I
1356    
1357     /[abc]+DE/I
1358    
1359     /[abc]?123/
1360     123\P
1361     a\P
1362     b\P
1363     c\P
1364     c12\P
1365     c123\P
1366    
1367     /^(?:\d){3,5}X/
1368     1\P
1369     123\P
1370     123X
1371     1234\P
1372     1234X
1373     12345\P
1374     12345X
1375     *** Failers
1376     1X
1377     123456\P
1378    
1379     /abc/>testsavedregex
1380     <testsavedregex
1381     abc
1382     ** Failers
1383     bca
1384    
1385     /abc/F>testsavedregex
1386     <testsavedregex
1387     abc
1388     ** Failers
1389     bca
1390    
1391     /(a|b)/S>testsavedregex
1392     <testsavedregex
1393     abc
1394     ** Failers
1395     def
1396    
1397     /(a|b)/SF>testsavedregex
1398     <testsavedregex
1399     abc
1400     ** Failers
1401     def
1402    
1403     ~<(\w+)/?>(.)*</(\1)>~smg
1404     <!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>
1405    
1406     /^a/IF
1407    
1408 nigel 77 /line\nbreak/
1409     this is a line\nbreak
1410     line one\nthis is a line\nbreak in the second line
1411    
1412     /line\nbreak/f
1413     this is a line\nbreak
1414     ** Failers
1415     line one\nthis is a line\nbreak in the second line
1416    
1417     /line\nbreak/mf
1418     this is a line\nbreak
1419     ** Failers
1420     line one\nthis is a line\nbreak in the second line
1421    
1422     /ab.cd/P
1423     ab-cd
1424     ab=cd
1425     ** Failers
1426     ab\ncd
1427    
1428     /ab.cd/Ps
1429     ab-cd
1430     ab=cd
1431     ab\ncd
1432    
1433 nigel 79 /(?i)(?-i)AbCd/
1434     AbCd
1435     ** Failers
1436     abcd
1437 nigel 81
1438     /a{11111111111111111111}/
1439 nigel 79
1440 nigel 81 /(){64294967295}/
1441    
1442     /(){2,4294967295}/
1443    
1444     "(?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"
1445     abcdefghijklAkB
1446    
1447     "(?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"
1448     abcdefghijklAkB
1449    
1450     "(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)A\11B"
1451     abcdefghijklAkB
1452    
1453     "(?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)"
1454     aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1455    
1456     "(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)"
1457     aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1458    
1459 nigel 87 /[^()]*(?:\((?R)\)[^()]*)*/
1460     (this(and)that
1461     (this(and)that)
1462     (this(and)that)stuff
1463    
1464     /[^()]*(?:\((?>(?R))\)[^()]*)*/
1465     (this(and)that
1466     (this(and)that)
1467    
1468     /[^()]*(?:\((?R)\))*[^()]*/
1469     (this(and)that
1470     (this(and)that)
1471    
1472     /(?:\((?R)\))*[^()]*/
1473     (this(and)that
1474     (this(and)that)
1475     ((this))
1476    
1477     /(?:\((?R)\))|[^()]*/
1478     (this(and)that
1479     (this(and)that)
1480     (this)
1481     ((this))
1482    
1483     /a(b)c/PN
1484     abc
1485    
1486     /a(?P<name>b)c/PN
1487     abc
1488    
1489     /\x{100}/
1490    
1491     /\x{0000ff}/
1492    
1493 nigel 91 /^((?P<A>a1)|(?P<A>a2)b)/
1494    
1495     /^((?P<A>a1)|(?P<A>a2)b)/J
1496     a1b\CA
1497     a2b\CA
1498     ** Failers
1499     a1b\CZ\CA
1500    
1501     /^(?P<A>a)(?P<A>b)/J
1502     ab\CA
1503    
1504     /^(?P<A>a)(?P<A>b)|cd/J
1505     ab\CA
1506     cd\CA
1507    
1508     /^(?P<A>a)(?P<A>b)|cd(?P<A>ef)(?P<A>gh)/J
1509     cdefgh\CA
1510    
1511     /^((?P<A>a1)|(?P<A>a2)b)/J
1512     a1b\GA
1513     a2b\GA
1514     ** Failers
1515     a1b\GZ\GA
1516    
1517     /^(?P<A>a)(?P<A>b)/J
1518     ab\GA
1519    
1520     /^(?P<A>a)(?P<A>b)|cd/J
1521     ab\GA
1522     cd\GA
1523    
1524     /^(?P<A>a)(?P<A>b)|cd(?P<A>ef)(?P<A>gh)/J
1525     cdefgh\GA
1526    
1527     /(?J)^((?P<A>a1)|(?P<A>a2)b)/
1528     a1b\CA
1529     a2b\CA
1530    
1531     /^(?P<A>a) (?J:(?P<B>b)(?P<B>c)) (?P<A>d)/
1532    
1533     / In this next test, J is not set at the outer level; consequently it isn't
1534     set in the pattern's options; consequently pcre_get_named_substring() produces
1535     a random value. /x
1536    
1537     /^(?P<A>a) (?J:(?P<B>b)(?P<B>c)) (?P<C>d)/
1538     a bc d\CA\CB\CC
1539    
1540     /^(?P<A>a)?(?(A)a|b)/
1541     aabc
1542     bc
1543     ** Failers
1544     abc
1545    
1546     /(?:(?(ZZ)a|b)(?P<ZZ>X))+/
1547     bXaX
1548    
1549     /(?:(?(2y)a|b)(X))+/
1550    
1551     /(?:(?(ZA)a|b)(?P<ZZ>X))+/
1552    
1553     /(?:(?(ZZ)a|b)(?(ZZ)a|b)(?P<ZZ>X))+/
1554     bbXaaX
1555    
1556     /(?:(?(ZZ)a|\(b\))\\(?P<ZZ>X))+/
1557     (b)\\Xa\\X
1558    
1559     /(?P<ABC/
1560    
1561     /(?:(?(A)(?P=A)a|b)(?P<A>X|Y))+/
1562     bXXaYYaY
1563     bXYaXXaX
1564    
1565     /()()()()()()()()()(?:(?(A)(?P=A)a|b)(?P<A>X|Y))+/
1566     bXXaYYaY
1567    
1568     /\777/
1569    
1570     /\s*,\s*/S
1571     \x0b,\x0b
1572     \x0c,\x0d
1573    
1574     /^abc/m
1575     xyz\nabc
1576     xyz\nabc\<lf>
1577     xyz\r\nabc\<lf>
1578     xyz\rabc\<cr>
1579     xyz\r\nabc\<crlf>
1580     ** Failers
1581     xyz\nabc\<cr>
1582     xyz\r\nabc\<cr>
1583     xyz\nabc\<crlf>
1584     xyz\rabc\<crlf>
1585     xyz\rabc\<lf>
1586    
1587     /abc$/m
1588     xyzabc
1589     xyzabc\n
1590     xyzabc\npqr
1591     xyzabc\r\<cr>
1592     xyzabc\rpqr\<cr>
1593     xyzabc\r\n\<crlf>
1594     xyzabc\r\npqr\<crlf>
1595     ** Failers
1596     xyzabc\r
1597     xyzabc\rpqr
1598     xyzabc\r\n
1599     xyzabc\r\npqr
1600    
1601     /^abc/m<cr>
1602     xyz\rabcdef
1603     xyz\nabcdef\<lf>
1604     ** Failers
1605     xyz\nabcdef
1606    
1607     /^abc/m<lf>
1608     xyz\nabcdef
1609     xyz\rabcdef\<cr>
1610     ** Failers
1611     xyz\rabcdef
1612    
1613     /^abc/m<crlf>
1614     xyz\r\nabcdef
1615     xyz\rabcdef\<cr>
1616     ** Failers
1617     xyz\rabcdef
1618    
1619     /^abc/m<bad>
1620    
1621     /abc/
1622     xyz\rabc\<bad>
1623     abc
1624    
1625     /.*/
1626     abc\ndef
1627     abc\rdef
1628     abc\r\ndef
1629     \<cr>abc\ndef
1630     \<cr>abc\rdef
1631     \<cr>abc\r\ndef
1632     \<crlf>abc\ndef
1633     \<crlf>abc\rdef
1634     \<crlf>abc\r\ndef
1635    
1636     /\w+(.)(.)?def/s
1637     abc\ndef
1638     abc\rdef
1639     abc\r\ndef
1640    
1641     +((?:\s|//.*\\n|/[*](?:\\n|.)*?[*]/)*)+
1642     /* this is a C style comment */\M
1643    
1644     /(?P<B>25[0-5]|2[0-4]\d|[01]?\d?\d)(?:\.(?P>B)){3}/
1645    
1646 nigel 49 / End of testinput2 /

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12