title: Search in HTML page using Regex patterns with python
body: <p>I'm trying to find a string inside a HTML page with known patterns.
  for example, in the following HTML code:</p>
  
  <pre><code>&lt;TABLE WIDTH="100%"&gt;
  &lt;TR&gt;&lt;TD ALIGN="LEFT" width="50%"&gt;&amp;nbsp;&lt;/TD&gt;
  &lt;TD ALIGN=RIGHT VALIGN=BOTTOM WIDTH=50%&gt;&lt;FONT SIZE=-1&gt;( &lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT SIZE=-2&gt;of&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT SIZE=-1&gt;1&lt;/STRONG&gt; )&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;
  &lt;HR&gt;
  &lt;TABLE WIDTH="100%"&gt;
  &lt;TR&gt;    &lt;TD ALIGN="LEFT" WIDTH="50%"&gt;&lt;B&gt;String 1&lt;/B&gt;&lt;/TD&gt;
      &lt;TD ALIGN="RIGHT" WIDTH="50%"&gt;&lt;B&gt;&lt;A Name=h1 HREF=#h0&gt;&lt;/A&gt;&lt;A  HREF=#h2&gt;&lt;/A&gt;&lt;B&gt;&lt;I&gt;&lt;/I&gt;&lt;/B&gt;String&lt;/B&gt;&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;&lt;TD ALIGN="LEFT" WIDTH="50%"&gt;&lt;b&gt;String 2.&lt;/B&gt;
  &lt;/TD&gt;
  &lt;TD ALIGN="RIGHT" WIDTH="50%"&gt; &lt;B&gt;
  String 3
  &lt;/B&gt;&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;/TABLE&gt;
  &lt;HR&gt;
  &lt;font size="+1"&gt;String 4&lt;/font&gt;&lt;BR&gt;
  ...
  </code></pre>
  
  <p>I want to find <strong>String 4</strong> , and I know that it will always be between </p>
  
  <p><code>&lt;HR&gt;&lt;font size="+1"&gt;</code><br>
     and    <code>&lt;/font&gt;&lt;BR&gt;</code></p>
  
  <p>how can I search for the string using RE?</p>
  
  <p>edit:</p>
  
  <p>I've tried the following, but no success:</p>
  
  <pre><code>p = re.match('&lt;HR&gt;&lt;font size="+1"&gt;(.*?)&lt;/font&gt;&lt;BR&gt;',html)
  </code></pre>
  
  <p>thanks.</p>