title: Finding content between two words withou RegEx, BeautifulSoup, lXml ... etc
body: <p>How to find out the content between two words or two sets of random characters?</p>
  
  <p>The scraped page is not guaranteed to be Html only and the important data can be inside a javascript block. So, I can't remove the JavaScript.</p>
  
  <p>consider this:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;div&gt;StartYYYY "Extract HTML", ENDYYYY
  
  &lt;/body&gt;
  
  Some Java Scripts code STARTXXXX "Extract JS Code" ENDXXXX.
  
  &lt;/html&gt;
  </code></pre>
  
  <p>So as you see the html markup may not be complete. I can fetch the page, and then without worrying about anything, I want to find the content called "Extract the name" and "Extract the data here in a JavaScript".</p>
  
  <p>What I am looking for is in python:</p>
  
  <p>Like this:</p>
  
  <pre><code>data = FindBetweenText(UniqueTextBeforeContent, UniqueTextAfterContent, page)
  </code></pre>
  
  <p>Where page is downloaded and data would have the text I am looking for. I rather stay away from regEx as some of the cases can be too complex for RegEx.</p>