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

Contents of /code/trunk/testdata/testinput2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 96 - (hide annotations) (download)
Fri Mar 2 13:10:43 2007 UTC (7 years, 5 months ago) by nigel
File size: 36304 byte(s)
 r6896@hex:  nm | 2007-03-02 13:09:14 +0000
 Added EOL and keywork properties throughout

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

Properties

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12