Re: Exact String replace with eregi_replace()

From: Date: Sat, 09 Feb 2002 03:15:01 +0000
Subject: Re: Exact String replace with eregi_replace()
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-16744@lists.php.net to get a copy of this message
on 2/8/02 9:05 PM, Desikan at desikb4u@fastmail.fm appended the following bits to my mbox: > Actually I want to replace "is" alone from the string and not all the > words that contains is... > > I have tried with "^".$is."$" ---> but yields nothing.... This kind of question really belongs on the PHP General List, since it isn't db related. That said, look at the preg_replace function: <http://www.php.net/manual/en/function.preg-replace.php> And use the "\b" escape in your search string: <http://www.php.net/manual/en/pcre.pattern.syntax.php> Paul <?php while ($self != "asleep") { $sheep_count++; } ?>

« previous php.db (#16744) next »