I have a string from which I need to fetch the ones with {{ ... }} pattern and replace them with the evaluated value.
Note: Some methods will be placed with in this {{abc();}}.I need to evaluate these methods and replace it with the respective outputs.
string abc="/*html$**{{abcd();}}**//*dhf//**{{ef();}}** ";
string pattern="*{{*}}*";
MatchCollection collection = Regex.Matches(abc, pattern);
I tried using this pattern.But it is throwing the below exception.
"{"parsing \"{{}}*\" - Quantifier {x,y} following nothing."}"