title: Split string with escaped delimeter using a delimeter
body: <p>Is there any better way to split a string which contains escaped delimeter in it.</p>
  
  <pre><code>string = "fir\&amp;st_part&amp;secon\&amp;d_part"
  print(string.split('&amp;'))
  # is giving me
  &gt;&gt;&gt; ['fir\\', 'st_part', 'secon\\', 'd_part']
  # but not
  &gt;&gt;&gt; ['fir&amp;st_part', 'secon&amp;d_part']
  </code></pre>
  
  <p>I have added an escape character <code>\</code> before <code>&amp;</code>  in <code>fir&amp;st_part</code> and <code>secon&amp;d_part</code> with the intention that split function will escape the following character.</p>
  
  <p>Is there any better way to do this if not by using a string split?</p>