string mainstring =" Daily @f4(@f1(@f3(@f5(P1)))|@f1()) Report @f5()";
for(int i=0; i<FunctionList.Count;i++) { if (mainstring.Contains(FunctionList[i])) { // Suppose list contains @f1 so it is also in the mainstring. So I want to get this portin "@f1(@f3(@f5(P1)))" I can locate index where @f1 is stared in the string but I don't know how can I get this mainstring with expected closing bracket ! } } Please help me to find out the portion from the mainstring with expected closing parenthesis.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)