newbie question

From: Date: Thu, 12 Jul 2001 19:23:10 +0000
Subject: newbie question
Groups: php.general 
Request: Send a blank email to php-general+get-57632@lists.php.net to get a copy of this message
The ereg_replace for some reason doesn't always work. I tried this: <HTLM> <BODY> <? $st = " This +is a test"; $st = ereg_replace ("=+is", "and_is", $st); echo "$st"; ?> </BODY> </HTML> ..and got: REG_BADRPT in <b>/usr/local/httpd/htdocs/test.php</b> on line 5 What is wrong and how can I do what I want to? Thanx a lot in advance, André.

« previous php.general (#57632) next »