On Dec 4, 2007 10:40 AM, Nick <[EMAIL PROTECTED]> wrote:
> Is this expected behavior? > > >>> s = '123;abc' > >>> s.replace(';', '\;') > '123\\;abc' > Everything is Ok. It's still a single backslash. Try: >>> print s.replace(';', '\;') Or >>> x = s.replace(';', '\;') >>> print x Best, Sergio
-- http://mail.python.org/mailman/listinfo/python-list