This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Regular expression failure of the sre engine
Type: Stage:
Components: Regular Expressions Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: effbot Nosy List: effbot, grafen, mkc, niemeyer
Priority: normal Keywords:

Created on 2003-07-23 15:15 by grafen, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
regexfailure.zip grafen, 2003-07-23 15:16 sre regexp testcase infinite loop
Messages (3)
msg17306 - (view) Author: Wolfgang Grafen (grafen) Date: 2003-07-23 15:15
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
---------------------------------------
msg17307 - (view) Author: Mike Coleman (mkc) Date: 2004-08-29 00:22
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!
msg17308 - (view) Author: Gustavo Niemeyer (niemeyer) * (Python committer) Date: 2004-09-03 17:23
Logged In: YES 
user_id=7887

Patch #1018386 was applied. 
 
Thanks for the report! And thanks again for the patch, Mike! 
History
Date User Action Args
2022-04-10 16:10:11adminsetgithub: 38919
2003-07-23 15:15:57grafencreate