Issue545235

classification
Title: unexpected match with re
Type: Severity: normal
Components: Library Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: bckfnn Nosy List: bckfnn
Priority: normal Keywords:

Created on 2002-04-17.15:40:34 by anonymous, last changed 2002-05-30.20:23:00 by bckfnn.

Messages
msg645 (view) Author: Nobody/Anonymous (nobody) Date: 2002-04-17.15:40:34
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

msg646 (view) Author: Finn Bock (bckfnn) Date: 2002-05-30.19:52:39
Logged In: YES 
user_id=4201

Added as test362.
msg647 (view) Author: Finn Bock (bckfnn) Date: 2002-05-30.20:23:00
Logged In: YES 
user_id=4201

Fixed in SRE_STATE.java: 1.9;
History
Date User Action Args
2002-04-17 15:40:34anonymouscreate