Message645

Author nobody
Recipients
Date 2002-04-17.15:40:34
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Jython 2.1 on java1.3.0_02 (JIT: null)
Type "copyright", "credits" or "license" for more 
information.
>>> import re
>>> rt = re.compile(r'c[^a]*t', re.IGNORECASE)
>>> rt.match("cat")  # matches but should not
org.python.modules.sre.MatchObject@3f1179
>>> rs = re.compile(r'c[^a]t', re.IGNORECASE)
>>> rs.match('cat')  # this is ok
>>>    

cpython does not match cat withe either the 'rt' or 
'rs' regular expression

History
Date User Action Args
2008-02-20 17:17:05adminlinkissue545235 messages
2008-02-20 17:17:05admincreate