s = ur'\\word\\with'print (s)print (s.replace(r'\\', '\\'))
Standard input is empty
\\word\\with \word\with
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!