[ python-Bugs-1555496 ] Bug in the match function

SourceForge.net noreply at sourceforge.net
Sat Sep 9 22:02:38 CEST 2006


Bugs item #1555496, was opened at 2006-09-09 22:02
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1555496&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Regular Expressions
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: wojtekwu (wojtekwu)
Assigned to: Gustavo Niemeyer (niemeyer)
Summary: Bug in the match function

Initial Comment:
Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 
32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for 
more information.
>>> import re
>>> as = re.compile("(a|((a|b)*))")
>>> wynik = as.match("aabaa")
>>> wynik.end()
1
>>> as = re.compile("(((a|b)*)|a)")
>>> wynik = as.match("aabaa")
>>> wynik.end()
5
>>>

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1555496&group_id=5470


More information about the Python-bugs-list mailing list