[Python-bugs-list] [ python-Bugs-409311 ] Python 2.1b1 re module is broken!

noreply@sourceforge.net noreply@sourceforge.net
Fri, 16 Mar 2001 19:40:01 -0800


Bugs item #409311, was updated on 2001-03-16 19:40
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=409311&group_id=5470

Category: Regular Expressions
Group: None
Status: Open
Priority: 5
Submitted By: Gregory P. Smith (greg)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python 2.1b1 re module is broken!

Initial Comment:
the following should -not- match:

$ python
Python 2.1b1 (#1, Mar 12 2001, 18:20:53) 
[GCC 2.95.2 20000220 (Debian GNU/Linux)] on linux2
Type "copyright", "credits" or "license" for more
information.
>>> reg = r"(?im)<dtml-var\s+([a-z_0-9]+?)\s*>"
>>> str = '<dtml-var
expr="Presentation.show(\'start\')">'
>>> import re                                
>>> re.match(reg, str)                       
<SRE_Match object at 0x810d9d0>


In python 1.5.2 and 2.0 this works fine.


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

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