note 4157 deleted from eregi_replace by ronabop
| From: | ronabop@php.net | Date: | Sat, 12 Aug 2000 21:00:53 +0000 |
| Subject: | note 4157 deleted from eregi_replace by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1545@lists.php.net to get a copy of this message | ||
Is there a way to use ergi_replace to look for a string (non case sensitive of course) but when
replacing the string use the correct case? For example, Assume that I'm doing the following:
eregi_replace("intel","Intel",$string);
and $string has "This is a sentence with InTeL in it"
It will find intel, and replace it, but when the replacement returns it returns Intel as all lower
case (i.e. it returns "This is a sentence with intel in it") instead of placing my
requested replacement in the sentence (Intel).
Any help would be great.