title: Javascript regex - why is it not working as expected on IE?
body: <p>After loosing much sleep I still cannot figure this out:</p>
  
  <p>The code below (its a simplification from larger code that shows only the problem) Identifies Item1 and Item2 on FF but does not on IE7. I'm clueless.</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;table&gt;&lt;tr&gt;
  &lt;td&gt;&lt;img src=imgs/site/trash.jpg border=1&gt;&lt;/td&gt;&lt;td&gt;&lt;font style=""&gt;Item1&lt;/font&gt;&lt;/td&gt;
  &lt;td&gt;&lt;img src=imgs/site/trash.jpg border=1&gt;&lt;/td&gt;&lt;td&gt;&lt;font style=""&gt;Item2&lt;/font&gt;&lt;/td&gt;
  &lt;/tr&gt;&lt;/table&gt;
  
  &lt;script type="text/javascript"&gt;
      var _pattern =/trash.*?&lt;font.*?&gt;(.*)&lt;\/font&gt;/gim;
      alert (_pattern);
  
      var thtml = document.documentElement.innerHTML;
      alert (thtml);
      while ( _match =_pattern.exec(thtml)){
          alert (_match[1]);
  
      }
  
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Notes: 1. I know there are better ways to get Item1 and Item2. this example is for showing the Regex problem I'm facing in the simplest way.
  2. When I remove the table and /table tags it works.</p>
  
  <p>Thanks in advance</p>