question about replace string
Posted on 2006-10-26
i got a question about string replace.
e.g. the string: Life health Science IS Good for HEALTH
first: i want to search the word: "health", case insensitive, so "health" and "HEALTH" will be found.
then i want to replace "health" with <b>health</b>; HEALTH with <b>HEALTH</b>
so the string is: Life <b>health</b> Science IS Good for <b>HEALTH</b>
my question is, in order to replace and find the word "health", the string will be changed into lower case,
how i can get: Life <b>health</b> Science IS Good for <b>HEALTH</b>
instead of: life <b>health</b> science is good for <b>health</b>
Thanks so much for your reply,