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

noreply@sourceforge.net noreply@sourceforge.net
Wed, 1 Nov 2000 10:50:34 -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)
----------------------------------------------------



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