title: how to remove the \u and \x characters with python?
body: <p>When I use vim to open the file, the text is shown like:</p>
  <pre><code>&quot;&lt;200b&gt;blablabla ^B ewjowqwe&quot;
  </code></pre>
  <p>Here, the <code>&lt;200b&gt;</code> is unicode <code>\u200b</code>, and <code>^B</code> is <code>\x02</code>.</p>
  <p>I can use regular expression like:</p>
  <p><code>re.sub(&quot;\u200b|\x02&quot;, &quot;&quot;, line)</code> to remove the special characters.</p>
  <p>But now I want to remove all the characters like <code>\u</code> and <code>\x</code>,</p>
  <p>when I use <code>re.sub(&quot;\u.{4}|\x.{2}&quot;, &quot;&quot;, line)</code>, it will raise exception <code>&quot;incomplete escape \x at position&quot;</code></p>
  <p>How can I write the regular expression to remove all the special <code>\u</code> and <code>\x</code> characters?</p>