Consider the following example.
string s = "The man is old. Them is not bad.";
If I use
s = s.Replace("The", "@@");
Then it returns "@@ man is old. @@m is not bad."
But I want the output to be "@@ man is old. Them is not bad."
How can I do this?
See Question&Answers more detail:os