Searched but haven't found a solution to this.
I want to remove everything from html code that is not a <div> or </div> tag (opening or closing).
Since this matches the divs:
I thought I could just negate it somehow, such as:Code:<div.*?>|</div>
(does not work)Code:[^(<div.*?>)]|[^(</div>)]