I don't understand how to get in the second match <sub>aaaa</sub>
and not <sub>eeee</sub>
my regex:
<item>.*?<sub>(.*?)<\/sub>.*?<value>(.*?)<\/value>.*?<\/item>
content:
<item> fffffffffffff
<sub>aaaa</sub>
<value>111</value>
</item>
<item>
<sub>eeee</sub> arg34ddddddddddddddd
<atag>ddd</atag>
<sub>aaaa</sub>
<atag>dddg</atag>
<value>222</value>
</item>
Can I get it in a step or do I need running a regex several times?
UPDATE
I want to get the result like this:
[ [ 'aaaa', 111],['aaaa', 222] ]
Is it possible?