[New-bugs-announce] [issue1761] Bug in re.sub()

Ravon Jean-Michel report at bugs.python.org
Tue Jan 8 10:22:02 CET 2008


New submission from Ravon Jean-Michel:

Here is my source:
def truc ():
    line = ' hi \n'
    line1 = re.sub('$', 'hello', line)
    line2 = re.sub('$', 'you', line1)
    print line2

Here is what I get:

>>> trace.truc()
 hi hello
helloyou
>>>

----------
components: Regular Expressions
messages: 59526
nosy: jmravon
severity: normal
status: open
title: Bug in re.sub()
type: behavior
versions: Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1761>
__________________________________


More information about the New-bugs-announce mailing list