Re: ereg_replace -- Thanks!
| From: | Nicole Lallande | Date: | Tue, 10 Feb 2004 21:21:19 +0000 |
| Subject: | Re: ereg_replace -- Thanks! | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177321@lists.php.net to get a copy of this message | ||
Many thanks!!
Richard Davey wrote:
Hello Nicole, Tuesday, February 10, 2004, 5:55:01 PM, you wrote: NL> Can anyone tell me why this does not work: NL> $str1=ereg_replace("index.php?src=","index/",$url); Because it's an invalid regular expression. NL> is there another way to do this? Yes, str_replace() for something this simple: $str1 = str_replace("index.php?src=", "index/", $url);-- ######################## Nicole Lallande nicole@nmlconsulting.com 760.753.6766 ########################