title: VB.Net Remove Multiple parentheses and text within from strings
body: <p>So basically what I am trying to do in vb.net is remove multiple nested parentheses and all the text inside those parentheses from a string. It's easy to do if there is just one set of parentheses like in the first example below I just find the index of "(" and ")" and then use the str.remove(firstindex, lastindex) and just keep looping until all parentheses have been removed from the string. </p>
  
  <pre><code>str = "This (3) is(fasdf) an (asdas) Example"
  
  Desired output:
  str = "This is an example"
  </code></pre>
  
  <p>However I still can't figure out how to do it if their are multiple nested parentheses in the string.</p>
  
  <pre><code>str = "This ((dsd)sdasd) is ((sd)) an (((d))) an example"
  
  Desired Outcome:
  str = "This is an example"
  </code></pre>