[PHP] ereg_replace to preg_replace translation

2009-08-11 Thread m a r k u s
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

Re: [PHP] ereg_replace to preg_replace translation

2009-08-11 Thread Shawn McKenzie
m a r k u s wrote: 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 =

RE: [PHP] ereg_replace to preg_replace translation

2009-08-11 Thread Ford, Mike
-Original Message- From: m a r k u s [mailto:queribus2...@hotmail.com] Sent: 11 August 2009 15:34 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