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?
The following regular expression will match the criteria you specified:
string pattern = @"^(\<.{27})(\{[^}]*\})(.*)";
The following would perform a replace:
string result = Regex.Replace(input, pattern, "$1 REPLACE $3");
For the input: "<012345678901234567890123456{sdfsdfsdf}sadfsdf" this gives the output "<012345678901234567890123456 REPLACE sadfsdf"