title: python regex: how to remove hex dec characters from string
body: <pre><code>text="\xe2\x80\x94"
  print re.sub(r'(\\(?&lt;=\\)x[a-z0-9]{2})+',"replacement_text",text)
  </code></pre>
  
  <p>output is <code>—</code></p>
  
  <p>how can I handle the hex decimal characters in this situation?</p>