[ python-Bugs-776311 ] Regular expression failure of the sre engine

SourceForge.net noreply at sourceforge.net
Sun Aug 29 02:22:29 CEST 2004


Bugs item #776311, was opened at 2003-07-23 10:15
Message generated for change (Comment added) made by mkc
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=776311&group_id=5470

Category: Regular Expressions
Group: Python 2.2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Wolfgang Grafen (grafen)
Assigned to: Fredrik Lundh (effbot)
Summary: Regular expression failure of the sre engine

Initial Comment:
Don't depreciate pre as we all will loose a useful
verification
tool for sre!

>From time to time I have situations where I wonder why
re(sre)
doesn't match its input. Then I change to pre (import
pre as re)
and several times it happened that pre worked fine
while sre did
not.

Sorry that I didn't track down the error but if you are
interested
in the testcase I attached the test case for you. (This
failure is 
in a regular expression which maches a complete pattern
of a
VHDL Architecture to apply a patch on it so it was
quick hack
but a large regex. The other failures I cannot remember
what it
was, sorry)

Regards

Wolfgang Grafen

---------------------------------------
I will be absent until 5 September 2003
---------------------------------------


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

Comment By: Mike Coleman (mkc)
Date: 2004-08-28 19:22

Message:
Logged In: YES 
user_id=555

The particular problem with your test case turned out to be
an infinite loop in the sre parser.  This is fixed in patch
#1018386.

If you are aware of or encounter any other cases where sre's
behavior deviates from pre, please post a bug for them. 
Pending that, I'd suggest this bug be closed.

Thanks for your excellent bug report!

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

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


More information about the Python-bugs-list mailing list