regex: line breaks to <br> w/exclusion

From: Date: Thu, 05 Jun 2003 01:26:46 +0000
Subject: regex: line breaks to <br> w/exclusion
Groups: php.general 
Request: Send a blank email to php-general+get-150288@lists.php.net to get a copy of this message
I'm using this snippet to turn line breaks into <br> tags: preg_replace("/(\015\012)|(\015)|(\012)/","<br>\n",$page['CONTENT']); It works fine, but I'd like it to ignore text between <ignore> </ignore> tags. andrew

« previous php.general (#150288) next »