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