title: Python: Split between two characters
body: <p><strong>Let's say I have a ton of HTML with no newlines. I want to get each element into a list.</strong></p>
  
  <pre><code>input = "&lt;head&gt;&lt;title&gt;Example Title&lt;/title&gt;&lt;/head&gt;"
  
  a_list = ["&lt;head&gt;", "&lt;title&gt;Example Title&lt;/title&gt;", "&lt;/head&gt;"]
  </code></pre>
  
  <p>Something like such. Splitting between each <code>&gt;&lt;</code>.</p>
  
  <p>But in Python, I don't know of a way to do that. I can only split <strong>at</strong> that string, which removes it from the output. I want to keep it, and split between the two equality operators.</p>
  
  <p>How can this be done?</p>
  
  <p><strong>Edit:</strong> Preferably, this would be done without adding the characters back in to the ends of each list item.</p>