Hi,
A newbie re query.
>>> import re
>>> s='one'
>>> re.sub('(one)','only \\0',s)
'only \x00'
>>> re.sub('(one)','only \0',s)
'only \x00'I expected the output to be 'only one' with \0 behaving like "&" in sed. What is wrong with my syntax? With warm regards, -Payal -- _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
