title: JavaScript Regex expression to extract data from html comment
body: <p>There is a html comment with an Id that I need to extract. The comment is on a div, which is not hard to get using the JQuery $ operator. But the correct RegEx string I need I have not been able to figure out. This is the comment:</p>
  
  <pre><code>&lt;!-- sid=FFKK12H1 --&gt;
  </code></pre>
  
  <p>And I need a JS variable that has the string "FFKK12H1" assigned to. What is the correct syntax/expression to use? thanks!</p>
  
  <p>EDIT:</p>
  
  <p>I forgot a very important piece of information: The code needs to work on IE7. Unfortunately this is the browser my company allows us to use, and none of the proposed solutions work there so far. Any other thoughs?</p>