String extraction with javascript
<p>I'm using jquery and have an entire html page stored in <code>var page</code></p>

<pre><code>var page = '&lt;html&gt;...&lt;div id="start"&gt;......&lt;/div&gt;&lt;!-- start --&gt;....&lt;/html&gt;';
</code></pre>

<p>How can I extract only the section that starts with <code>&lt;div id="start"&gt;</code> all the way to after the end tag <code>&lt;/div&gt;&lt;!-- start --&gt;</code> such that my output is</p>

<pre><code>&lt;div id="start"&gt;......&lt;/div&gt;&lt;!-- start --&gt;
</code></pre>
