Hi all,

I tried to do a string replace as follows,

>>> s="hi & people"
>>> s.replace("&","\&")
'hi \\& people'
>>>

but i was expecting 'hi \& people'.I dont know ,what is something different
here with escape sequence.

-- 
Yours,
S.Selvam
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to