I am using <[^<>]+>
in order to extract substrings between <
and >
, as the following:
<abc>, <?.sdfs/>, <sdsld\>
, etc.
I am not trying to parse HTML tags, or something similar. My only issue is extracting strings between <
and >
.
But sometimes, there might be substrings like the following:
</</\/\asa></dsdsds><sdsfsa>>
In that case, all string should be matched, instead of 3 substrings. Because all string is covered by <
and >
.
How can I modify my regex to do that?