title: Python - How do I split a string that includes an escape character as a delimiter?
body: <p>How do I split the following string at "\x"? I am having trouble because "\" is an escape character. </p>
  
  <pre><code>MyString = 'A\x92\xa4\xbf'
  delim = '"\"' + 'x'
  MyList = MyString.split(delim)
  print(MyList)
  </code></pre>
  
  <p>Additional Details: 4192A4BF is the "low serial number" that is displayed as the serial number of an Xbee radio in the XCTU program that Digi uses to configure Xbee radios. </p>
  
  <p>Using micropython on the xbee to retrieve the serial number: <code>serial = xbee.atcmd("SL")</code> returns <code>'A\x92\xa4\xbf'</code> which is as far as I can tell hex(A) followed by 92A4BF. If I split at "\x" I can extract the number to read the same as on the XTCU. </p>