eg.
string myString = "Blue Red Blue Red Blue";
string oldValue = "Blue";
string newValue = "Green";
... do the RegEx replacement ...
result should be: "Green Red Green Red Blue"
thankx Harry
Look at the overloads of the Replace method, many of them take a count
parameter for doing just that.