I have a string that contains a login, database, and a password.
string str = "user Id=abc, database=DDD, Password=mypasswd"
I want to be able to replace the database value "DDD" with a different value.
I tried using the string.Replace, but I won't know what the existing database will be.
Does anyone know of a simple solution?