[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

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("")
>>> regex.compile("*").match("")
>>> regex.compile("**").match("")
>>> regex.compile("***").match("")
(prompt doesn't return here anymore, memory consumption begins to grow until memory is exhausted)


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

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


For detailed info, follow this link: