Just wandering, how could I replace a string only when 100% matched in c# .net?For example, I have the following string:
StringBuilder a = new(StringBuilder);
a = "ABC-1 ABC-1.1 ABC-1.1~1"
I'm using the following scrip to replace the string:
a.Replace("ABC-1", "ABC-2");
At the moment the output is like the following :
ABC-2 ABC-2.1 ABC-2.1~1
Instead, I'm looking for the output is like:
ABC-2 ABC-1.1 ABC-1.1~1
Does anyone know how can I do it?