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:
"<item>a</item><item>b</item>".match(/\<item\>(.*)(\<\/\>|\<\/item\>)/gi)
The issue here is that the string i executed the match on returns as one match, I need each
<item>...</item> or <item>...</>
instance to be in a separate match. How can I make this happen?