title: How to extract a string between 2 other strings in python?
body: <p>Like if I have a string like <code>str1 = "IWantToMasterPython"</code></p>
  
  <p>If I want to extract <code>"Py"</code> from the above string. I write:</p>
  
  <pre><code>extractedString = foo("Master","thon")
  </code></pre>
  
  <p>I want to do all this because i am trying to extract lyrics from an html page. The lyrics are written like <code>&lt;div class = "lyricbox"&gt; ....lyrics goes here....&lt;/div&gt;</code>.</p>
  
  <p>Any suggestions on how can I implement.</p>