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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1761>
__
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com