title: How to parse HTML using ElementTree to find a particular RegEx?
body: <p>Using Python 2.7.6 Along with ElementTree to load / parse an HTML file from the filesystem and then iterate through the file to store a particular RegEx into a data structure.</p>
  
  <p>So, inside my project's folder, I have an HTML file entitled person.html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;body&gt;
          &lt;ul&gt;
              &lt;li&gt;Name: $name&lt;/li&gt;
              &lt;li&gt;Age: $age&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/body&gt; 
  &lt;/html&gt;
  </code></pre>
  
  <p>Here's my Python script (main.py) so far:</p>
  
  <pre><code>#!/usr/bin/env python
  import web
  import xml.etree.ElementTree as ElementTree
  
  tree = ET.parse(person.html)
  </code></pre>
  
  <p>Question (s):</p>
  
  <ol>
  <li><p>How do I parse using a RegEx or ElementTree values that begin with <code>$</code> (such as <code>$name</code> and <code>$age</code>)?</p></li>
  <li><p>How do I store these values into a data structure that I could iterate through in the future?</p></li>
  </ol>