Re: newbie question

From: Date: Thu, 12 Jul 2001 19:27:09 +0000
Subject: Re: newbie question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57634@lists.php.net to get a copy of this message
Try this : $st = ereg_replace ("\+is", "and_is", $st); you have to escape the + sign it mean other things then just literal André Weidemann wrote: > > 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é. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Francis Fillion, BAA SI Broadcasting live from his linux box. And the maintainer of http://www.windplanet.com

« previous php.general (#57634) next »