[Python-bugs-list] [Bug #121027] regex.compile("***").match("") malfunction

noreply@sourceforge.net noreply@sourceforge.net
Wed, 1 Nov 2000 14:34:30 -0800


Bug #121027, was updated on 2000-Nov-01 10:50
Here is a current snapshot of the bug.

Project: Python
Category: Library
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Summary: regex.compile("***").match("") malfunction

Details: Hi,
I've found it by mistake, but regex.compile/match methods seems to have a bug handling weird regex expressions as "***".
See below, this happens inside NT/cygwin but also happens inside python 1.6/solaris SunOS 5.5.1.
Hoping this could help.
Claudio Ortega
cortega@sinfomed.org.ar
cortega@nortelnetworks.com

----------------------------------------------------
bash-2.02$ python
Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import regex
>>> regex.compile("*").match("")
-1
>>> regex.compile("*").match("")
-1
>>> regex.compile("**").match("")
0
>>> regex.compile("***").match("")
(prompt doesn't return here anymore, memory consumption begins to grow until memory is exhausted)
----------------------------------------------------



Follow-Ups:

Date: 2000-Nov-01 14:34
By: jhylton

Comment:
I don't know if we are still supporting regex.  Is there a reason not to use re?

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

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=121027&group_id=5470