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

noreply@sourceforge.net noreply@sourceforge.net
Thu, 15 Mar 2001 13:59:22 -0800


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: None
Group: None
Status: Open
Priority: 5
Submitted By: Bastian Kleineidam (calvin)
Assigned to: Nobody/Anonymous (nobody)
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.


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

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