fork(2) download
  1.  
  2. s = ur"u'\\word\\with'"
  3. print (s)
  4. print (s.replace(r'\\', '\\'))
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
u'\\word\\with'
u'\word\with'