Please help how to combine the below two regular expressions
a) @"(?<=\.Value\[)(.*)(?=\])"
Above regular expression takes out a substring after .Value and it truncates the '[' and ']' brackets from the substring.
b) @"[^\{*\}*$]+"
Removes all the '{' and '}' braces from the beginning and end of the above substring. The substring can have zero or more number of occurrences of '{' and '}'characters.
E.g.
{{server/Y2KCluster1:[]ServerServerStatusState}}.Value[{{{server/Y2KCluster2:[]ServerServerStatusSecondsTillShutdown}}}]
After applying 1st regular expression it returns as
[{{{server/Y2KCluster2:[]ServerServerStatusSecondsTillShutdown}}}]
After applying 2nd regular expression then it return as
server/Y2KCluster2:[]ServerServerStatusSecondsTillShutdown