Re: string function
| From: | trystano at aol dot com | Date: | Sat, 09 Feb 2008 15:36:47 +0000 |
| Subject: | Re: string function | ||
| References: | 1 2 3 4 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-28776@lists.php.net to get a copy of this message | ||
Can I just ask what the difference is between ereg and preg_replace? Thanks.
Tryst
-----Original Message-----
From: Elizabeth M Smith <auroraeosrose@gmail.com>
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.