Quantcast
Channel: How to Regex-replace multiple tags with one tag? - Stack Overflow
Viewing all articles
Browse latest Browse all 6

How to Regex-replace multiple tags with one tag?

$
0
0

I want <br /><br /> to turn into <br />

What's the pattern for this with regex?

Note: The <br /> tags can occur more than 2 times in a row.


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images

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