title: C# Regex match anything inside Parentheses
body: <p>I want to match anything inside parentheses but the result must exclude the parentheses as well. </p>
  
  <p><strong>Examples:</strong><br>
  Initialize(P90W)<br>
  Brake(45X)  </p>
  
  <p><strong>Result:</strong><br>
  990W<br>
  45X  </p>
  
  <p>note results without the Parentheses.</p>
  
  <p>I've been trying to make this work but to no avail I tried a few variations but I know it's a simple thing I'm missing and I don't want to go using Replace to achieve it.</p>
  
  <pre><code>var item = "Brake(45X)"
  Regex searchTerm = new Regex(@"\((.*)\)");
  var value = (searchTerm.Match(item).Groups.Count &gt; 0) ?
      searchTerm.Match(item).Groups[0].Value : string.Empty;
  </code></pre>