title: Find & replace between html tags using python
body: <p>I'm trying to add one line to the set of HTML files. </p>
  
  <p>I want to put it between the <code>&lt;/h1&gt;</code> and <code>&lt;p&gt;</code> tags, so I'm trying to find regex that is able to catch everything between these tags (there may be new lines, spaces, or nothing) and then replace it with my previously prepared html_line</p>
  
  <p>As far, I have this:</p>
  
  <pre><code>for i in filesToBeChanged:
      lines = codecs.open(i,'r','utf-8').readlines()
      for line in lines:
          if line.find('&lt;/h1&gt;') != -1: #here I probably need some .replace() :)
              print line
  </code></pre>