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); -- Best regards, Richard mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php