Here is what I want to do.
I have a string:
$string='The cat drunk my milk.The Milk ....';
What I want to do is replace 'milk' and 'Milk' with '<b>milk</b>'.
Also I want to replace 'MILK', 'MILk', 'MIlk' ... if they are in my string. But at the same time I want to keep the case of each letter. Meaning that if i find 'milk' in my string I want to replace it with '<b>milk</b>' and if I find 'miLK' I want to replace it with '<b>miLK</b>'
I'm just starting to learn about regular expression and I don't know how to this ... so
can somebody show me how to do this, or maybe give me a link to a good regular expression tutorial
thanks