Can I just ask what the difference is between ereg and preg_replace? Thanks.

Tryst


 


 

-----Original Message-----
From: Elizabeth M Smith <[EMAIL PROTECTED]>
To: php-windows@lists.php.net
Sent: Fri, 8 Feb 2008 14:26
Subject: Re: [PHP-WIN] string function










Viola Holownia wrote:
> hi
> 
> Have you tried ereg_replace() ?
> http://www.php.net/manual/en/function.ereg-replace.php
> 
> 
> cheers
> viola
> 

I would NOT suggest ereg_replace, especially on windows - if you need to
do advanced replacement and str_replace doesn't work, try preg_replace -
http://php.net/preg_replace

Regular expressions are your friend.

Thanks,
Elizabeth

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




 


________________________________________________________________________
AOL's new homepage has launched. Take a tour at http://info.aol.co.uk/homepage/ 
now.

Reply via email to