title: regex to find tag id and content JavaScript
body: <p>Hey I'm trying to do something quite specific with regex in javascript and my regexp-foo is shakey at best. Wondered if there were any pros out there who could point me in the right direction. So I have some text...</p>
  
  <pre><code>&lt;item id="myid1"&gt;myitem1&lt;/item&gt;
  &lt;item id="myid2"&gt;myitem2&lt;/item&gt;
  </code></pre>
  
  <p>...etc</p>
  
  <p>And I would like to strip it out into an array that reads
  myid1, myitem1, myid2, myitem2, ....etc</p>
  
  <p>There will never be nested elements so there is no recursive nesting problem. Anyone able to bash this out quickly?
  Thanks for your help!</p>