title: Extract string between characters from a txt file in python
body: <p>I have a txt file that I want python to read, and from which I want python to extract a string specifically between two characters. Here is an example:</p>
  
  <pre><code>Line a
  
  Line b
  
  Line c
  
  &amp;TESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTEST !
  
  Line d
  
  Line e
  </code></pre>
  
  <p>What I want is python to read the lines and when it encounters "&amp;" I want it to start printing the lines (including the line with "$") up untill it encounters "!"</p>
  
  <p>Any suggestions?</p>