Hi,
I am opening up a text file and doing a find and replace on a number of params. On example;
ServerUrl=http://localhost/site
Instead of doing an explicit find on the whole string, I want to locate the string up to the =, and then replace the entire contents with a new value.
This is to cater for the case, if default values are changed in source control.
At present just doing a simple
contents = Regex.Replace(contents, oldValue, newValue);
Thanks inadvance.
Tim.
I am opening up a text file and doing a find and replace on a number of params. On example;
ServerUrl=http://localhost/site
Instead of doing an explicit find on the whole string, I want to locate the string up to the =, and then replace the entire contents with a new value.
This is to cater for the case, if default values are changed in source control.
At present just doing a simple
contents = Regex.Replace(contents, oldValue, newValue);
Thanks inadvance.
Tim.