title: How to extract values from HTML using RegEx?
body: <p>Given the following HTML:</p>
  
  <pre><code>&lt;p&gt;&lt;span class="xn-location"&gt;OAK RIDGE, N.J.&lt;/span&gt;, &lt;span class="xn-chron"&gt;March 16, 2011&lt;/span&gt; /PRNewswire/ -- Lakeland Bancorp, Inc. (Nasdaq:   &lt;a href='http://studio-5.financialcontent.com/prnews?Page=Quote&amp;Ticker=LBAI' target='_blank' title='LBAI'&gt; LBAI&lt;/a&gt;), the holding company for Lakeland Bank, today announced that it redeemed &lt;span class="xn-money"&gt;$20 million&lt;/span&gt; of the Company's outstanding &lt;span class="xn-money"&gt;$39 million&lt;/span&gt; in Fixed Rate Cumulative Perpetual Preferred Stock, Series A that was issued to the U.S. Department of the Treasury under the Capital Purchase Program on &lt;span class="xn-chron"&gt;February 6, 2009&lt;/span&gt;, thereby reducing Treasury's investment in the Preferred Stock to &lt;span class="xn-money"&gt;$19 million&lt;/span&gt;. The Company paid approximately &lt;span class="xn-money"&gt;$20.1 million&lt;/span&gt; to the Treasury to repurchase the Preferred Stock, which included payment for accrued and unpaid dividends for the shares. &amp;#160;This second repayment, or redemption, of Preferred Stock will result in annualized savings of &lt;span class="xn-money"&gt;$1.2 million&lt;/span&gt; due to the elimination of the associated preferred dividends and related discount accretion. &amp;#160;A one-time, non-cash charge of &lt;span class="xn-money"&gt;$745 thousand&lt;/span&gt; will be incurred in the first quarter of 2011 due to the acceleration of the Preferred Stock discount accretion. &amp;#160;The warrant previously issued to the Treasury to purchase 997,049 shares of common stock at an exercise price of &lt;span class="xn-money"&gt;$8.88&lt;/span&gt;, adjusted for stock dividends and subject to further anti-dilution adjustments, will remain outstanding.&lt;/p&gt;
  </code></pre>
  
  <p>I'd like to get the values inside the <code>&lt;span&gt;</code> elements. I'd also like to get the value of the <code>class</code> attribute on the <code>&lt;span&gt;</code> elements. </p>
  
  <p>Ideally I could just run some HTML through a function and get back a dictionary of extracted entities (based on the <code>&lt;span&gt;</code> parsing defined above).</p>
  
  <p>The above code is a snippet from a larger source HTML file, which fails to pare with an XML parser. So I'm looking for a possible regular expression to help extract the information of interest.</p>