Hi,
how to match all contents outside a HTML tag?
My pseudo-HTML is:
<h1>aaa</h1>
bbb <img src="bla" /> ccc
<div>ddd</div>
I used the regular expression,
(?<=^|>)[^><]+?(?=<|$)
which would give me: "aaa bbb ccc ddd"
All I need is a way to ignore HTML tags with return: "bbb ccc"