I have an XML which looks something like:
<drawing><some other tags><Picture><some other tags></drawing><drawing><some other tags><Chart><some other tags></drawing>
And I want to extract
<drawing><some other tags><Chart><some other tags></drawing>
Currently I am using this RegExp:
/<drawing>.*?<Chart>.*?</drawing>/g
However, it is returning me the whole XML, since it is also valid. But I want only the second occurrence, and unable to arrive at the solution. Thanks in advance.