title: HTML parsing with python regular expression
body: <p>I am using python regular expression to parse html file, now I need to extract a number from a html tag, the number can be either integer or floating point value. Following are two examples:</p>
  
  <p>integer case:</p>
  
  <pre><code>&lt;span class='addr-bbs'&gt;2 baths&lt;/span&gt;
  </code></pre>
  
  <p>floating point case:</p>
  
  <pre><code>&lt;span class='addr-bbs'&gt;3.5 baths&lt;/span&gt;
  </code></pre>
  
  <p>My original code is:</p>
  
  <pre><code>bath = re.findall('&lt;span class=\"addr_bbs\"&gt;' + '(.{1,3})' + 'baths{0,1}&lt;', str(homedata))
  </code></pre>
  
  <p>But after testing, it misses all the floating point cases. How can I cover both cases to extract the number correctly?</p>
  
  <p>Thanks </p>