Message645
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
|
|
| Date |
User |
Action |
Args |
| 2008-02-20 17:17:05 | admin | link | issue545235 messages |
| 2008-02-20 17:17:05 | admin | create | |
|