Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67527

Regex - Find Tag with linebreak

$
0
0

How to find the <span>LINEBREAK</span> Tags in the middle ( the second opening and closing span Tags ) ?

<span>
Some Text
</span>
<span>

</span>
<span>
Some other Text
</span>

If is use <span> I can find the opening Tag. If I use <\/span> I can find the closing Tag. If i use ^\s*$ I can find the Linebreak. But how can I combine all three ?

<span>^\s*$<\/span> doesn't work.

I also tried <span>\n^\s*$\n<\/span> and <span>\r\n^\s*$\r\n<\/span>.


Viewing all articles
Browse latest Browse all 67527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>