ereg_replace to preg_replace translation

From: Date: Tue, 11 Aug 2009 14:34:28 +0000
Subject: ereg_replace to preg_replace translation
Groups: php.general 
Request: Send a blank email to php-general+get-296631@lists.php.net to get a copy of this message
Hi all, I see that from PHP 5.3.0 ereg_replace() function is deprecated and throws a warning. I would like to use the preg_replace() function as an alternative of ereg_replace() function but... can't undestand the "\n#[^\n]*\n" expression. $sql = ereg_replace("\n#[^\n]*\n", "", $sql); Any help for tranlation or alternative ? Thanks -- m a r k u s

« previous php.general (#296631) next »