Hi all

Thanks for help with my last regex question a while back ... I have a new one now..

I want to hilight keywords on a page, but preserve the case of the hilighted objects. E.g. if my $keyword="internet" and I use:

$mypage=eregi_replace($keyword,"<span class=hilite>$keyword</span>","Internet Stuff");

..then Internet gets hilighted and lowercased of course to return "internet Stuff"..

Any clues?

Thanks!

Christopher