title: Get id from string using javascript
body: <p>I have this simple string:</p>
  
  <pre><code>&lt;div id="parent"&gt;
       &lt;div id="1" class="child"&gt;test&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How can I extract the id number (1) from this string?</p>