title: how to replace back slash character with empty string in python
body: <p>I am trying replace a backslash '\' in a string with the following code</p>
  
  <pre><code>string = "&lt;P style='TEXT-INDENT'&gt;\B7 &lt;/P&gt;"
  
  result = string.replace("\",'')
  </code></pre>
  
  <p>result:</p>
  
  <pre><code>------------------------------------------------------------
     File "&lt;ipython console&gt;", line 1
       result = string.replace("\",'')
                                       ^
  SyntaxError: EOL while scanning string literal
  </code></pre>
  
  <p>Here i don't need the back slashes because actually i am parsing an xml file which has a tag in the above format, so if backslashes are there it is displaying <code>invalid token</code> during parsing</p>
  
  <p>Can i know how to replace the backslashes with empty string in python</p>