title: VB.NET Match string between parentheses (brackets)
body: <p>Looking for a pattern for matching text between brackets.
  For example: <code>"(this is) a (test)"</code> should output</p>
  
  <pre><code>"this is"
  "test"
  </code></pre>
  
  <p>Using <code>Dim m As Match = Regex.Match(str, pattern, RegexOptions.Multiline)</code></p>
  
  <p>I have searched stackOverflow, Google and tried examples on RegExr and nothing seems to work for me.</p>
  
  <p>These work on RegExr but in not VB.NET</p>
  
  <p><code>"\(([^)(]++|(?R))+\)"</code> - error nested quantifier</p>
  
  <p><code>"(?&lt;=\&lt;p\&gt;)(.*?)(?=&lt;\/p\&gt;)"</code> - quantifier following nothing</p>
  
  <p>Others will return:
  <code>"this is) a (test"</code> - matching far outer brackets</p>
  
  <p>PS I could also do with the same for </p>
  
  <p><code>[],"",{}</code></p>
  
  <p>it would be good to have them all in one place for anyone looking under vb.net</p>