I\'ve been unable to find an answer on this: can I use the Regex.Matches method to return only the contents of items with curly braces?
If I us
Thanks Milosz Krajewski, Nothing to add but here is the function
private List GetTokens(String str)
{
Regex regex = new Regex(@"(?<=\{)[^}]*(?=\})", RegexOptions.IgnoreCase);
MatchCollection matches = regex.Matches(str);
// Results include braces (undesirable)
return matches.Cast().Select(m => m.Value).Distinct().ToList();
}