In C# I am trying to get the Data Source and initial catalog properties from a connection string.
So if I have
metadata=res://*/model.csdl|res://*/model.ssdl|res://*/model.msl;provider=System.Data.SqlClient;provider connection string="data source=myDESKTOP;initial catalog=dbName;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"
How can I extract just the values myDESKTOP and dbName regardless of case on the left hand of the expression?