Python string.replace regular expression

I have a parameter file of the form: parameter-name parameter-value Where the parameters may be in any order but there is only one parameter per line. I want to replace one parameter’s parameter-value with a new value. I am using a line replace function posted previously to replace the line which uses Python’s string.replace(pattern, sub). … Read more