The string: I have a Green apple.<br />I want to search for the word green and highlight it.<br /><br />My code (where $search_word = green):<br />$textstring = eregi_replace($search_word, "<b>" . $search_word . "</b>", $textstring);<br /><br />The result: I have a <b>green</b> apple.<br /><br />Not bad but how do I retain the original case in $textstring so that the result would be: I have a <b>Green</b> apple.<br /><br />Changing the $search_word to Green is not an option.<br /><br />Thank in advance for any assistance.