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

Diff of /code/trunk/testdata/testinput2

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

revision 666 by ph10, Mon Aug 22 14:56:43 2011 UTC revision 729 by ph10, Mon Oct 10 16:02:20 2011 UTC
# Line 3370  name were given. ---/ Line 3370  name were given. ---/
3370      C      C
3371      D      D
3372    
3373    /(*MARK:A)(*THEN:B)(C|X)/KSY
3374        C
3375        D
3376    
3377  /(*MARK:A)(*THEN:B)(C|X)/KSS  /(*MARK:A)(*THEN:B)(C|X)/KSS
3378      C      C
3379      D      D
# Line 3733  with \Y. ---/ Line 3737  with \Y. ---/
3737  /^.*?(?(?=a)a|bc)/  /^.*?(?(?=a)a|bc)/
3738      ba      ba
3739    
3740    /^.*?(?(?=a)a(*THEN)b|c)/
3741        ac
3742    
3743    /^.*?(?(?=a)a(*THEN)b)c/
3744        ac
3745    
3746    /^.*?(a(*THEN)b)c/
3747        aabc
3748    
3749    /^.*? (?1) c (?(DEFINE)(a(*THEN)b))/x
3750        aabc
3751    
3752    /^.*?(a(*THEN)b|z)c/
3753        aabc
3754    
3755    /^.*?(z|a(*THEN)b)c/
3756        aabc
3757    
3758  /-- --/  /-- --/
3759    
3760  /-- These studied versions are here because they are not Perl-compatible; the  /-- These studied versions are here because they are not Perl-compatible; the
# Line 3848  with \Y. ---/ Line 3870  with \Y. ---/
3870    
3871  /\btype\b\W*?\btext\b\W*?\bjavascript\b|\burl\b\W*?\bshell:|<input\b.*?\btype\b\W*?\bimage\b|\bonkeyup\b\W*?\=/IS  /\btype\b\W*?\btext\b\W*?\bjavascript\b|\burl\b\W*?\bshell:|<input\b.*?\btype\b\W*?\bimage\b|\bonkeyup\b\W*?\=/IS
3872    
3873    /a(*SKIP)c|b(*ACCEPT)|/+SI
3874        a
3875    
3876    /a(*SKIP)c|b(*ACCEPT)cd(*ACCEPT)|x/SI
3877        ax
3878    
3879    'a*(*ACCEPT)b'+
3880        \N\N
3881        abc\N\N
3882        bbb\N\N
3883    
3884    /(*ACCEPT)a/+I
3885        bax
3886    
3887    /z(*ACCEPT)a/+I
3888        baxzbx
3889    
3890    /a(?:.)*?a/ims
3891        \Mabbbbbbbbbbbbbbbbbbbbba
3892    
3893    /a(?:.(*THEN))*?a/ims
3894        \Mabbbbbbbbbbbbbbbbbbbbba
3895    
3896    /a(?:.(*THEN:ABC))*?a/ims
3897        \Mabbbbbbbbbbbbbbbbbbbbba
3898    
3899    /-- These tests are in agreement with development Perl 5.015, which has fixed
3900        some things, but they don't all work with 5.012, so they aren't in the
3901        Perl-compatible tests. Those after the first come from Perl's own test
3902        files. --/
3903    
3904    /^((yes|no)(*THEN)(*F))?/
3905      yes
3906    
3907    /(A (.*)   C? (*THEN)  | A D) (*FAIL)/x
3908    AbcdCBefgBhiBqz
3909    
3910    /(A (.*)   C? (*THEN)  | A D) z/x
3911    AbcdCBefgBhiBqz
3912    
3913    /(A (.*)   C? (*THEN)  | A D) \s* (*FAIL)/x
3914    AbcdCBefgBhiBqz
3915    
3916    /(A (.*)   C? (*THEN)  | A D) \s* z/x
3917    AbcdCBefgBhiBqz
3918    
3919    /(A (.*)   (?:C|) (*THEN)  | A D) (*FAIL)/x
3920    AbcdCBefgBhiBqz
3921    
3922    /(A (.*)   (?:C|) (*THEN)  | A D) z/x
3923    AbcdCBefgBhiBqz
3924    
3925    /(A (.*)   C{0,6} (*THEN)  | A D) (*FAIL)/x
3926    AbcdCBefgBhiBqz
3927    
3928    /(A (.*)   C{0,6} (*THEN)  | A D) z/x
3929    AbcdCBefgBhiBqz
3930    
3931    /(A (.*)   (CE){0,6} (*THEN)  | A D) (*FAIL)/x
3932    AbcdCEBefgBhiBqz
3933    
3934    /(A (.*)   (CE){0,6} (*THEN)  | A D) z/x
3935    AbcdCEBefgBhiBqz
3936    
3937    /(A (.*)   (CE*){0,6} (*THEN)  | A D) (*FAIL)/x
3938    AbcdCBefgBhiBqz
3939    
3940    /(A (.*)   (CE*){0,6} (*THEN)  | A D) z/x
3941    AbcdCBefgBhiBqz
3942    
3943    /-----------------------------------------------/
3944    
3945    /^(?>a+)(?>(z+))\w/BZ
3946        aaaazzzzb
3947        ** Failers
3948        aazz
3949    
3950    /(.)(\1|a(?2))/
3951        bab
3952    
3953    /\1|(.)(?R)\1/
3954        cbbbc
3955    
3956    /(.)((?(1)c|a)|a(?2))/
3957        baa
3958    
3959    /(?P<abn>(?P=abn)xxx)/BZ
3960    
3961    /(a\1z)/BZ
3962    
3963    /^(?>a+)(?>b+)(?>c+)(?>d+)(?>e+)/
3964         \Maabbccddee
3965    
3966    /^(?>(a+))(?>(b+))(?>(c+))(?>(d+))(?>(e+))/
3967         \Maabbccddee
3968    
3969    /^(?>(a+))(?>b+)(?>(c+))(?>d+)(?>(e+))/
3970         \Maabbccddee
3971    
3972  /-- End of testinput2 --/  /-- End of testinput2 --/

Legend:
Removed from v.666  
changed lines
  Added in v.729

  ViewVC Help
Powered by ViewVC 1.1.5