title: How to extract all strings between brackets using c#?
body: <p>If I have a string such as:</p>
  
  <p>"You id is (1) and your number is (0000000000)"</p>
  
  <p>What is the best way to extract these these strings into a list of strings. The numbers between the brackets can increase in digits thus searching for the strings between the brackets is a better technique.</p>
  
  <p>I can use the code below to extract the first string between brackets.</p>
  
  <pre><code>var myString = "You id is (1) and your number is (0000000000)";
  var firstNumberBetweenBrackets = myString.Split('(', ')')[1]; // would return 1
  </code></pre>