Sorry if the question was duplicated
I have a XML file, something like
<item>
<attr1>attr1.1</attr1>
<attr2>attr1.2</attr2>
</item>
...
<item>
<attr1>attr2.1</attr1>
<attr2>attr2.2</attr2>
</item>
And all I want to do is use Regex to get an array of item. For some reason, I don't want to use jQuery here(I have read about jQuery.parseXML). Can you show me how to get all of the items, or something, function in javascript which like match_all() in PHP. And here is my Regex,
/<item>([\w\W]+?)<\/item>/
Thank you!