Dear Sir , Consider a problem given below re.sub(r'\\', "", 'acd\m') gives the output = acdm as re.sub will replace the "\" in "acd\m" with "" . but when i am doing re.sub(r'\\', "", 'acd\b') why is it not replacing "\" with "". why i am getting the answer as 'acd\x08' . How can I get acdb ? kindly put some light on it. Thanks Manprit Singh