Having a text sample of the following layout...
<text text <text text> text text> <text text> <text text text <text text text>
...i need to capture the <enclosed parts> as highlighted.
ᅠ
With a lazy quantifier, the regexp <.*?> returns...
<text text <text text> text text>
<text text> <text text text text <text text>
...which misses the upper right part and wrongly includes the middle bottom part. I’ve also tried it with <.[^<]*?>, which does it right on the 2-nd row, but misses both left and right parts on the 1-st:
<text text <text text> text text>
<text text> <text text text text <text text>
ᅠ
How would the regexp look to <work as above>?
 
     
    