title: Python - If "\x" in string?
body: <p><code>if "\x" in string:</code> and <code>if "\\x" in string:</code> both do not seem to work correctly.</p>
  
  <p>The following should return <code>True</code>:</p>
  
  <pre><code>string="It\x(randomcharshere) me!"
  if "\\x" in string:
     return True
  </code></pre>
  
  <p>I cannot change the input string, as I've built a script to read data from a website automatically, and it sometimes returns \x and then some random characters when there's a special character in the fetched data, like an accent.</p>