Topic: Help - Regular Expressions/String Replacement
The aim is to locate two <br />'s in a row which are followed by anthing which is not a <br /> and then replace the two line breaks with something else. The two line breaks could appear at the end of a long string of line breaks and I only want to replace the last two. I also don't want to touch whatever comes after the last two line breaks. Is there a simple one line server/speed friendly bit of code which accomplishes this. If you want a clearer example
blah blah
<br />
<br />
<br />
<br />
blah blah
becomes
blah blah
<br />
<br />
</p>
<p>
blah blah