I need to replace specialy marked place holders in string with values. Similar to what string.Format does, but in a bit more advance way.
For instance: input string: "Welcome to {Binding Path=@city}!" Value for @city is "Boston" Output string should be "Welcome to Boston!".
I can successfully parse input string with regex and get the values. But to update the string I'm just using string.Replace. I'm currious if there's a better way to handle updates for such scenarious?