title: parse annotated file
body: <p>I'm trying to parse a file that contains annotation of person names in the form </p>
  
  <pre><code>&lt;name&gt; James Gold 
  
  &lt;/name&gt; said to meet with &lt;name&gt; Mable Helen  &lt;/name&gt; tomorrow night
  </code></pre>
  
  <p>I'm trying to do this with python regex but it isn't working. I'm using </p>
  
  <pre><code>annotation = re.findall(' &lt;name&gt;(.*)&lt;/name&gt;', lines)
  </code></pre>
  
  <p>I want to recover all entries within the <code>&lt;name&gt;</code> tag but these tags could be on different lines. I tried concatenating all lines and removing newline characters but to no avail. any ideas?</p>