I am bit confused writing the regex for finding the Text between the two delimiters { } and replace the text with another text in c#,how to replace?
string s = "data{value here} data"; int start = s.IndexOf("{"); int end = s.IndexOf("}", start); string result = s.Substring(start+1, end - start - 1); s = s.Replace(result, "your replacement value");