I have the following:
string text = \"version=\\\"1,0\\\"\";
I want to replace the comma for a dot, while keeping
comma
dot
You need a regex like this to locate the comma
Regex reg = new Regex("(version=\"[0-9]),([0-9]\")");
Then do the repacement:
text = reg.Replace(text, "$1.$2");
You can use $1, $2, etc. to refer to the matching groups in order.