title: Tag Parsing JavaScript
body: <p>i'm working on a tag parser to create a sort of html-like markup. I'm using RegExp to achieve this, as it deals with strings being sent through the server. The issue i'm having with this is utilizing multiple instances of the same tag in a line. Matching like this: </p>
  
  <pre><code> "&lt;item&gt;a&lt;/item&gt;&lt;item&gt;b&lt;/item&gt;".match(/\&lt;item\&gt;(.*)(\&lt;\/\&gt;|\&lt;\/item\&gt;)/gi)
  </code></pre>
  
  <p>The issue here is that the string i executed the match on returns as one match, 
  I need each </p>
  
  <pre><code> &lt;item&gt;...&lt;/item&gt; or &lt;item&gt;...&lt;/&gt; 
  </code></pre>
  
  <p>instance to be in a separate match. How can I make this happen?</p>