[Python-bugs-list] [ python-Bugs-408936 ] Python2.0 re module: greedy regexp bug 2

noreply@sourceforge.net noreply@sourceforge.net
Thu, 14 Jun 2001 01:19:43 -0700


Bugs item #408936, was updated on 2001-03-15 13:59
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=408936&group_id=5470

>Category: Regular Expressions
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Bastian Kleineidam (calvin)
Assigned to: Fredrik Lundh (effbot)
Summary: Python2.0 re module: greedy regexp bug 2

Initial Comment:
Yeah, try this:
re.search(r"<!--.*?--\s*>", "<!--- bla --->")
and it does not match, but it should match, no?
In more complicated examples I even get infinite
recursion,
if youre interested, I will make a script for this.

The above example should be in the Regression Test
Suite.

Look also at [ #405358 ] Python2.0 re module: greedy
regexp bug,
perhaps this is somehow related? I dont know.


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

>Comment By: Fredrik Lundh (effbot)
Date: 2001-06-14 01:19

Message:
Logged In: YES 
user_id=38376

fixed as a side-effect of some other patch
(probably the big 2001-03-20 update)

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

Comment By: Bastian Kleineidam (calvin)
Date: 2001-04-10 06:11

Message:
Logged In: YES 
user_id=9205

Ok, its closed in recent builds, but this is still a
candidate for the
Python 2.01 bugfix release.


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

Comment By: Michael Hudson (mwh)
Date: 2001-04-10 05:52

Message:
Logged In: YES 
user_id=6656

Works for me in recent builds, so I guess it's fixed.

Someone want to mark it closed?

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

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