/[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 559 by ph10, Wed Oct 27 09:45:20 2010 UTC revision 729 by ph10, Mon Oct 10 16:02:20 2011 UTC
# Line 1061  Line 1061 
1061  /abc(?C)de(?C1)f/I  /abc(?C)de(?C1)f/I
1062      123abcdef      123abcdef
1063    
1064  /(?C1)\dabc(?C2)def/I  /(?C1)\dabc(?C2)def/IS
1065        1234abcdef
1066        *** Failers
1067        abcdef
1068    
1069    /(?C1)\dabc(?C2)def/ISS
1070      1234abcdef      1234abcdef
1071      *** Failers      *** Failers
1072      abcdef      abcdef
# Line 1310  Line 1315 
1315    abcde    abcde
1316    abcdfe    abcdfe
1317    
1318  /a*b/ICDZ  /a*b/ICDZS
1319      ab
1320      aaaab
1321      aaaacb
1322    
1323    /a*b/ICDZSS
1324    ab    ab
1325    aaaab    aaaab
1326    aaaacb    aaaacb
# Line 1320  Line 1330 
1330    aaaab    aaaab
1331    aaaacb    aaaacb
1332    
1333  /(abc|def)x/ICDZ  /(abc|def)x/ICDZS
1334    abcx    abcx
1335    defx    defx
1336      ** Failers
1337      abcdefzx
1338    
1339    /(abc|def)x/ICDZSS
1340      abcx
1341      defx
1342      ** Failers
1343    abcdefzx    abcdefzx
1344    
1345  /(ab|cd){3,4}/IC  /(ab|cd){3,4}/IC
# Line 1330  Line 1347 
1347    abcdabcd    abcdabcd
1348    abcdcdcdcdcd    abcdcdcdcdcd
1349    
1350  /([ab]{,4}c|xy)/ICDZ  /([ab]{,4}c|xy)/ICDZS
1351        Note: that { does NOT introduce a quantifier
1352    
1353    /([ab]{,4}c|xy)/ICDZSS
1354      Note: that { does NOT introduce a quantifier      Note: that { does NOT introduce a quantifier
1355    
1356  /([ab]{1,4}c|xy){4,5}?123/ICDZ  /([ab]{1,4}c|xy){4,5}?123/ICDZ
# Line 1404  Line 1424 
1424      1X      1X
1425      123456\P      123456\P
1426    
1427  /abc/I>testsavedregex  /abc/IS>testsavedregex
1428    <testsavedregex
1429        abc
1430        ** Failers
1431        bca
1432    
1433    /abc/ISS>testsavedregex
1434    <testsavedregex
1435        abc
1436        ** Failers
1437        bca
1438    
1439    /abc/IFS>testsavedregex
1440  <testsavedregex  <testsavedregex
1441      abc      abc
1442      ** Failers      ** Failers
1443      bca      bca
1444    
1445  /abc/IF>testsavedregex  /abc/IFSS>testsavedregex
1446  <testsavedregex  <testsavedregex
1447      abc      abc
1448      ** Failers      ** Failers
# Line 1422  Line 1454 
1454      ** Failers      ** Failers
1455      def      def
1456    
1457    /(a|b)/ISS>testsavedregex
1458    <testsavedregex
1459        abc
1460        ** Failers
1461        def
1462    
1463  /(a|b)/ISF>testsavedregex  /(a|b)/ISF>testsavedregex
1464  <testsavedregex  <testsavedregex
1465      abc      abc
1466      ** Failers      ** Failers
1467      def      def
1468    
1469    /(a|b)/ISSF>testsavedregex
1470    <testsavedregex
1471        abc
1472        ** Failers
1473        def
1474    
1475  ~<(\w+)/?>(.)*</(\1)>~smgI  ~<(\w+)/?>(.)*</(\1)>~smgI
1476      <!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>      \J1024<!DOCTYPE seite SYSTEM "http://www.lco.lineas.de/xmlCms.dtd">\n<seite>\n<dokumenteninformation>\n<seitentitel>Partner der LCO</seitentitel>\n<sprache>de</sprache>\n<seitenbeschreibung>Partner der LINEAS Consulting\nGmbH</seitenbeschreibung>\n<schluesselworte>LINEAS Consulting GmbH Hamburg\nPartnerfirmen</schluesselworte>\n<revisit>30 days</revisit>\n<robots>index,follow</robots>\n<menueinformation>\n<aktiv>ja</aktiv>\n<menueposition>3</menueposition>\n<menuetext>Partner</menuetext>\n</menueinformation>\n<lastedited>\n<autor>LCO</autor>\n<firma>LINEAS Consulting</firma>\n<datum>15.10.2003</datum>\n</lastedited>\n</dokumenteninformation>\n<inhalt>\n\n<absatzueberschrift>Die Partnerfirmen der LINEAS Consulting\nGmbH</absatzueberschrift>\n\n<absatz><link ziel="http://www.ca.com/" zielfenster="_blank">\n<bild name="logo_ca.gif" rahmen="no"/></link> <link\nziel="http://www.ey.com/" zielfenster="_blank"><bild\nname="logo_euy.gif" rahmen="no"/></link>\n</absatz>\n\n<absatz><link ziel="http://www.cisco.de/" zielfenster="_blank">\n<bild name="logo_cisco.gif" rahmen="ja"/></link></absatz>\n\n<absatz><link ziel="http://www.atelion.de/"\nzielfenster="_blank"><bild\nname="logo_atelion.gif" rahmen="no"/></link>\n</absatz>\n\n<absatz><link ziel="http://www.line-information.de/"\nzielfenster="_blank">\n<bild name="logo_line_information.gif" rahmen="no"/></link>\n</absatz>\n\n<absatz><bild name="logo_aw.gif" rahmen="no"/></absatz>\n\n<absatz><link ziel="http://www.incognis.de/"\nzielfenster="_blank"><bild\nname="logo_incognis.gif" rahmen="no"/></link></absatz>\n\n<absatz><link ziel="http://www.addcraft.com/"\nzielfenster="_blank"><bild\nname="logo_addcraft.gif" rahmen="no"/></link></absatz>\n\n<absatz><link ziel="http://www.comendo.com/"\nzielfenster="_blank"><bild\nname="logo_comendo.gif" rahmen="no"/></link></absatz>\n\n</inhalt>\n</seite>
1477    
1478  /^a/IF  /^a/IF
1479    
# Line 1976  a random value. /Ix Line 2020  a random value. /Ix
2020    
2021  /(?(DEFINE) abc) xyz/xI  /(?(DEFINE) abc) xyz/xI
2022    
 /(?(DEFINE) abc){3} xyz/x  
   
2023  /(a|)*\d/  /(a|)*\d/
2024    \O0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa    \O0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
2025    \O0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa4    \O0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa4
# Line 2255  a random value. /Ix Line 2297  a random value. /Ix
2297  /\V+\v\V+\w/BZ  /\V+\v\V+\w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666]/BZ
2341    
2342  /(?1)\c[/  /(?1)\c[/
2343    
# Line 2346  a random value. /Ix Line 2388  a random value. /Ix
2388      a\nb      a\nb
2389      a\r\nb      a\r\nb
2390      a\x85b      a\x85b
2391    
2392    /(*ANY).*/g
2393        abc\r\ndef
2394    
2395    /(*ANYCRLF).*/g
2396        abc\r\ndef
2397    
2398    /(*CRLF).*/g
2399        abc\r\ndef
2400    
2401  /a\Rb/I<bsr_anycrlf>  /a\Rb/I<bsr_anycrlf>
2402      a\rb      a\rb
# Line 2444  a random value. /Ix Line 2495  a random value. /Ix
2495    
2496  /\k{}/  /\k{}/
2497    
2498    /\k/
2499    
2500    /\kabc/
2501    
2502  /(?P=)/  /(?P=)/
2503    
2504  /(?P>)/  /(?P>)/
# Line 2575  a random value. /Ix Line 2630  a random value. /Ix
2630    abc\Y    abc\Y
2631    abcxypqr    abcxypqr
2632    abcxypqr\Y    abcxypqr\Y
2633    
2634    /(*NO_START_OPT)xyz/C
2635      abcxyz
2636    
2637    /xyz/CY
2638      abcxyz
2639    
2640  /^"((?(?=[a])[^"])|b)*"$/C  /^"((?(?=[a])[^"])|b)*"$/C
2641      "ab"      "ab"
# Line 3297  name were given. ---/ Line 3358  name were given. ---/
3358  /A(*PRUNE:A)B/K  /A(*PRUNE:A)B/K
3359      ACAB      ACAB
3360    
3361  /(*MARK:A)(*PRUNE:B)(C|X)/K  /(*MARK:A)(*PRUNE:B)(C|X)/KS
3362        C
3363        D
3364    
3365    /(*MARK:A)(*PRUNE:B)(C|X)/KSS
3366        C
3367        D
3368    
3369    /(*MARK:A)(*THEN:B)(C|X)/KS
3370      C      C
3371      D      D
3372    
3373  /(*MARK:A)(*THEN:B)(C|X)/K  /(*MARK:A)(*THEN:B)(C|X)/KSY
3374        C
3375        D
3376    
3377    /(*MARK:A)(*THEN:B)(C|X)/KSS
3378      C      C
3379      D      D
3380    
# Line 3535  with \Y. ---/ Line 3608  with \Y. ---/
3608      abc\P      abc\P
3609      abc\P\P      abc\P\P
3610    
3611    /.+/
3612        abc\>0
3613        abc\>1
3614        abc\>2
3615        abc\>3
3616        abc\>4
3617        abc\>-4
3618    
3619    /^\cģ/
3620    
3621    /(?P<abn>(?P=abn)xxx)/BZ
3622    
3623    /(a\1z)/BZ
3624    
3625    /(?P<abn>(?P=abn)(?<badstufxxx)/BZ
3626    
3627    /(?P<abn>(?P=axn)xxx)/BZ
3628    
3629    /(?P<abn>(?P=axn)xxx)(?<axn>yy)/BZ
3630    
3631    /-- These tests are here because Perl gets the first one wrong. --/
3632    
3633    /(\R*)(.)/s
3634        \r\n
3635        \r\r\n\n\r
3636        \r\r\n\n\r\n
3637    
3638    /(\R)*(.)/s
3639        \r\n
3640        \r\r\n\n\r
3641        \r\r\n\n\r\n
3642    
3643    /((?>\r\n|\n|\x0b|\f|\r|\x85)*)(.)/s
3644        \r\n
3645        \r\r\n\n\r
3646        \r\r\n\n\r\n
3647    
3648    /-- --/
3649    
3650    /^abc$/BZ
3651    
3652    /^abc$/BZm
3653    
3654    /^(a)*+(\w)/S
3655        aaaaX
3656        ** Failers
3657        aaaa
3658    
3659    /^(?:a)*+(\w)/S
3660        aaaaX
3661        ** Failers
3662        aaaa
3663    
3664    /(a)++1234/SDZ
3665    
3666    /([abc])++1234/SI
3667    
3668    /(?<=(abc)+)X/
3669    
3670    /(^ab)/I
3671    
3672    /(^ab)++/I
3673    
3674    /(^ab|^)+/I
3675    
3676    /(^ab|^)++/I
3677    
3678    /(?:^ab)/I
3679    
3680    /(?:^ab)++/I
3681    
3682    /(?:^ab|^)+/I
3683    
3684    /(?:^ab|^)++/I
3685    
3686    /(.*ab)/I
3687    
3688    /(.*ab)++/I
3689    
3690    /(.*ab|.*)+/I
3691    
3692    /(.*ab|.*)++/I
3693    
3694    /(?:.*ab)/I
3695    
3696    /(?:.*ab)++/I
3697    
3698    /(?:.*ab|.*)+/I
3699    
3700    /(?:.*ab|.*)++/I
3701    
3702    /(?=a)[bcd]/I
3703    
3704    /((?=a))[bcd]/I
3705    
3706    /((?=a))+[bcd]/I
3707    
3708    /((?=a))++[bcd]/I
3709    
3710    /(?=a+)[bcd]/iI
3711    
3712    /(?=a+?)[bcd]/iI
3713    
3714    /(?=a++)[bcd]/iI
3715    
3716    /(?=a{3})[bcd]/iI
3717    
3718    /(abc)\1+/S
3719    
3720    /-- Perl doesn't get these right IMO (the 3rd is PCRE-specific) --/
3721    
3722    /(?1)(?:(b(*ACCEPT))){0}/
3723        b
3724    
3725    /(?1)(?:(b(*ACCEPT))){0}c/
3726        bc
3727        ** Failers
3728        b
3729    
3730    /(?1)(?:((*ACCEPT))){0}c/
3731        c
3732        c\N
3733    
3734    /^.*?(?(?=a)a|b(*THEN)c)/
3735        ba
3736    
3737    /^.*?(?(?=a)a|bc)/
3738        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
3761        studying means the mark is not seen. --/
3762    
3763    /(*MARK:A)(*SKIP:B)(C|X)/KS
3764        C
3765        D
3766    
3767    /(*:A)A+(*SKIP:A)(B|Z)/KS
3768        AAAC
3769    
3770    /-- --/
3771    
3772    "(?=a*(*ACCEPT)b)c"
3773        c
3774        c\N
3775    
3776    /(?1)c(?(DEFINE)((*ACCEPT)b))/
3777        c
3778        c\N
3779    
3780    /(?>(*ACCEPT)b)c/
3781        c
3782        c\N
3783    
3784    /(?:(?>(a)))+a%/++
3785        %aa%
3786    
3787    /(a)b|ac/++SS
3788        ac\O3
3789    
3790    /(a)(b)x|abc/++
3791         abc\O6
3792    
3793    /(a)bc|(a)(b)\2/
3794        \O3abc
3795        \O4abc
3796    
3797    /(?(DEFINE)(a(?2)|b)(b(?1)|a))(?:(?1)|(?2))/SI
3798    
3799    /(a(?2)|b)(b(?1)|a)(?:(?1)|(?2))/SI
3800    
3801    /(a(?2)|b)(b(?1)|a)(?1)(?2)/SI
3802    
3803    /(abc)(?1)/SI
3804    
3805    /^(?>a)++/
3806        aa\M
3807        aaaaaaaaa\M
3808    
3809    /(a)(?1)++/
3810        aa\M
3811        aaaaaaaaa\M
3812    
3813    /(?:(foo)|(bar)|(baz))X/SS=
3814        bazfooX
3815        foobazbarX
3816        barfooX
3817        bazX
3818        foobarbazX
3819        bazfooX\O0
3820        bazfooX\O2
3821        bazfooX\O4
3822        bazfooX\O6
3823        bazfooX\O8
3824        bazfooX\O10
3825    
3826    /(?=abc){3}abc/BZ
3827    
3828    /(?=abc)+abc/BZ
3829    
3830    /(?=abc)++abc/BZ
3831    
3832    /(?=abc){0}xyz/BZ
3833    
3834    /(?=(a))?./BZ
3835    
3836    /(?=(a))??./BZ
3837    
3838    /^(?=(a)){0}b(?1)/BZ
3839    
3840    /(?(DEFINE)(a))?b(?1)/BZ
3841    
3842    /^(?=(?1))?[az]([abc])d/BZ
3843    
3844    /^(?!a){0}\w+/BZ
3845    
3846    /(?<=(abc))?xyz/BZ
3847    
3848    /[:a[:abc]b:]/BZ
3849    
3850    /((?2))((?1))/SS
3851        abc
3852    
3853    /((?(R2)a+|(?1)b))/
3854        aaaabcde
3855    
3856    /(?(R)a*(?1)|((?R))b)/
3857        aaaabcde
3858    
3859    /(a+|(?R)b)/
3860    
3861    /^(a(*:A)(d|e(*:B))z|aeq)/C
3862        adz
3863        aez
3864        aeqwerty
3865    
3866    /.(*F)/
3867        \P\Pabc
3868    
3869    /\btype\b\W*?\btext\b\W*?\bjavascript\b/IS
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
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.559  
changed lines
  Added in v.729

  ViewVC Help
Powered by ViewVC 1.1.5