title: C# Regex.Match curly brackets- contents only? (exclude braces)
body: <p>I've been unable to find an answer on this: can I use the <code>Regex.Matches</code> method to return only the <em>contents</em> of items with curly braces?</p>
  
  <p>If I use the Regex <code>({[^}]*})</code> my <code>MatchCollection</code> values includes the braces. I want to match, but then only return the contents. Here's what I have so far:</p>
  
  <pre><code>Regex regex = new Regex(({[^}]*}), RegexOptions.IgnoreCase);
  MatchCollection matches = regex.Matches("Test {Token1} {Token 2}");
  // Results include braces (undesirable)
  var results = matches.Cast&lt;Match&gt;().Select(m =&gt; m.Value).Distinct().ToList();
  </code></pre>