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

Diff of /code/trunk/testdata/testinput1

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

revision 295 by ph10, Mon Dec 31 17:00:24 2007 UTC revision 602 by ph10, Wed May 25 08:29:03 2011 UTC
# Line 1  Line 1 
1    /-- This set of tests is for features that are compatible with all versions of
2        Perl 5, in non-UTF-8 mode. --/
3    
4  /the quick brown fox/  /the quick brown fox/
5      the quick brown fox      the quick brown fox
6      The quick brown FOX      The quick brown FOX
# Line 2329  Line 2332 
2332      baz      baz
2333      foobarbaz      foobarbaz
2334    
2335  /The case of aaaaaa is missed out below because I think Perl 5.005_02 gets/  /The cases of aaaa and aaaaaa are missed out below because Perl does things/
2336  /it wrong; it sets $1 to aaa rather than aa. Compare the following test,/  /differently. We know that odd, and maybe incorrect, things happen with/
2337  /where it does set $1 to aa when matching aaaaaa./  /recursive references in Perl, as far as 5.11.3 - see some stuff in test #2./
2338    
2339  /^(a\1?){4}$/  /^(a\1?){4}$/
2340      a      a
2341      aa      aa
2342      aaa      aaa
     aaaa  
2343      aaaaa      aaaaa
2344      aaaaaaa      aaaaaaa
2345      aaaaaaaa      aaaaaaaa
# Line 4036  Line 4038 
4038      ]      ]
4039      p      p
4040    
4041  / End of testinput1 /  /.*[op][xyz]/
4042        fooabcfoo
4043    
4044    /(?(?=.*b)b|^)/
4045       adc
4046       abc
4047    
4048    /(?(?=^.*b)b|^)/
4049       adc
4050       abc
4051    
4052    /(?(?=.*b)b|^)*/
4053       adc
4054       abc
4055    
4056    /(?(?=.*b)b|^)+/
4057       adc
4058       abc
4059    
4060    /(?(?=b).*b|^d)/
4061        abc
4062    
4063    /(?(?=.*b).*b|^d)/
4064        abc
4065    
4066    /^%((?(?=[a])[^%])|b)*%$/
4067        %ab%
4068    
4069    /(?i)a(?-i)b|c/
4070        XabX
4071        XAbX
4072        CcC
4073        ** Failers
4074        XABX
4075    
4076    /[\x00-\xff\s]+/
4077        \x0a\x0b\x0c\x0d
4078    
4079    /^\c/
4080        ?
4081    
4082    /(abc)\1/i
4083       abc
4084    
4085    /(abc)\1/
4086       abc
4087    
4088    /[^a]*/i
4089        12abc
4090        12ABC
4091    
4092    /[^a]*+/i
4093        12abc
4094        12ABC
4095    
4096    /[^a]*?X/i
4097        ** Failers
4098        12abc
4099        12ABC
4100    
4101    /[^a]+?X/i
4102        ** Failers
4103        12abc
4104        12ABC
4105    
4106    /[^a]?X/i
4107        12aXbcX
4108        12AXBCX
4109        BCX
4110    
4111    /[^a]??X/i
4112        12aXbcX
4113        12AXBCX
4114        BCX
4115    
4116    /[^a]?+X/i
4117        12aXbcX
4118        12AXBCX
4119        BCX
4120    
4121    /[^a]{2,3}/i
4122        abcdef
4123        ABCDEF
4124    
4125    /[^a]{2,3}?/i
4126        abcdef
4127        ABCDEF
4128    
4129    /[^a]{2,3}+/i
4130        abcdef
4131        ABCDEF
4132    
4133    /-- End of testinput1 --/

Legend:
Removed from v.295  
changed lines
  Added in v.602

  ViewVC Help
Powered by ViewVC 1.1.5