Consider a long html string: I need to have the whole content without certain tags sections.
Example:
Consider the following string:
;decreasing'>1</a> <span class='active'>2</span><a href='F;search&
I need to select all but the span section, thus removing the following
<span class='active'>2</span>
and ending up with only the following
;decreasing'>1</a> <a href='F;search&
I tried the following with negative look behind selections in regex101.com but no luck.
^(?!=(<span class='active'>(.*?)<\/span>)).*$
[Additional Info]
If I could combine the two following selections it would solve the problem:
1.Selects everything up to the span tag
.*?(?=<span)
- Selects everything from the closing span tag onward:
(?<=span>).*
Thanks your help in advance.