I'm trying to match the text content from the first tag <test>
.
For example:
<test>SAMPLE TEXT</test><test>SAMPLE TEXT2</test><test>SAMPLE TEXT3</test>
If I use
("<test>(.*)</test>")`
I got this:
SAMPLE TEXT</test><test>SAMPLE TEXT2</test><test>SAMPLE TEXT3
How to get just the content from the first <test>
tag: SAMPLE TEXT
?