[Python-bugs-list] [ python-Bugs-490573 ] re.match('^a*?$', 'foo') fails

noreply@sourceforge.net noreply@sourceforge.net
Sun, 09 Dec 2001 08:17:02 -0800


Bugs item #490573, was opened at 2001-12-08 03:42
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=490573&group_id=5470

Category: Regular Expressions
Group: Python 2.2
>Status: Closed
>Resolution: Fixed
Priority: 7
Submitted By: Ben Escoto (bescoto)
Assigned to: Fredrik Lundh (effbot)
Summary: re.match('^a*?$', 'foo') fails

Initial Comment:
I saw some other bugs reported here that may be the
same as this one, but I figured I might as well post:

>>> import re
>>> re.match('^a*?$', 'foo')
<SRE_Match object at 0x8168e00>

This seems to be a relative new bug.  v2.0c says:

>>> re.match('^a*?$', 'foo')
>>>



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

>Comment By: Fredrik Lundh (effbot)
Date: 2001-12-09 08:17

Message:
Logged In: YES 
user_id=38376

backed out of broken patch from July 2001.

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

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