in my last question Want a regex which matches > char not containing in any tag i got the answer but it is not directly matching to >
one of the valid answer from last question is '/(?=(?:^|>)[^<>]*(>))/'
which matches >
excluding from valid html tags
test string is 'abc><span>some >text< again some<some tag></some tag>vfs>>vf</span>'
Please help me to get the regex which directly matches >
, not any matches[] array