$html = 'this <br>is<br/>some<br />text <br />!'; $nl = preg_replace('#<brs*/?>#i', " ", $html); echo $nl;