Consider the following string:
string s = "The man is (old).";
If I use:
Regex.Replace(s,@"\b\(old\)\b", @"<b>$&</b>");
The output is :
The man is (old).
But I would change the whole of the (old) word like this:
The man is (old).
How can I do this?