Re: Replacing whole words only
| From: | Chris Boget | Date: | Wed, 22 Dec 2004 15:47:25 +0000 |
| Subject: | Re: Replacing whole words only | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204963@lists.php.net to get a copy of this message | ||
> The case is what's stopping it from working
> a str_replace(strtolower($exceptionphrase) , '' ,
> strtolower($stringtoparse)) would take the case out of the equation
No, that didn't entire quite work, either. The result from this
change is "or ldy lughed" and not the desired result of "lady
laughed". It's not only replacing *whole* words but parts of
words, too.
thnx,
Chris