[Python-bugs-list] [ python-Bugs-451107 ] re.sub does not replace slahes (2.2a1)
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 16 Aug 2001 07:01:05 -0700
Bugs item #451107, was opened at 2001-08-15 01:34
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=451107&group_id=5470
>Category: Regular Expressions
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Mihai (muqker)
>Assigned to: Fredrik Lundh (effbot)
Summary: re.sub does not replace slahes (2.2a1)
Initial Comment:
Python 2.2a1:
>>> re.findall ('\\', 'a\')
['\']
but
>>> re.sub ('\\', 'b', 'a\')
'a\'
>>>
Python 2.0.1:
>>> re.sub ('\\', 'b', 'a\')
'ab'
>>>
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=451107&group_id=5470