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...
<item id="myid1">myitem1</item>
<item id="myid2">myitem2</item>
...etc
And I would like to strip it out into an array that reads myid1, myitem1, myid2, myitem2, ....etc
There will never be nested elements so there is no recursive nesting problem. Anyone able to bash this out quickly? Thanks for your help!