RE: re.sub

2007-10-16 Thread DiPierro, Massimo
Thank you this answers my question. I wanted to make sure it was actually designed this way. Massimo From: Tim Chase [EMAIL PROTECTED] Sent: Tuesday, October 16, 2007 1:38 PM To: DiPierro, Massimo Cc: python-list@python.org; Berthiaume, Andre Subject: Re

RE: re.sub

2007-10-16 Thread DiPierro, Massimo
d be. Massimo From: Tim Chase [EMAIL PROTECTED] Sent: Tuesday, October 16, 2007 1:20 PM To: DiPierro, Massimo Cc: python-list@python.org; Berthiaume, Andre Subject: Re: re.sub > Even stranger > > >>> re.sub('a', '\\n',

RE: re.sub

2007-10-16 Thread DiPierro, Massimo
It is the fisrt line that is wrong, the second follows from the first, I agree. From: Tim Chase [EMAIL PROTECTED] Sent: Tuesday, October 16, 2007 1:20 PM To: DiPierro, Massimo Cc: python-list@python.org; Berthiaume, Andre Subject: Re: re.sub > E

RE: re.sub

2007-10-16 Thread DiPierro, Massimo
That is not the problem. The problem is that re.sub('a','\\n','bab') cannot be the same as re.sub('a','\n','bab') This is evaluating the string to be substituted before the substitution. Massimo From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Ch