title: how to capture parenthesized groups with java regex
body: <p>I've some string like :</p>
  
  <pre><code>(((a * b) + c) * d)
  </code></pre>
  
  <p>and want to capture parenthesized groups with java regex. I thought this simple regex </p>
  
  <pre><code>Pattern p = Pattern.compile("\\((.*)\\)",Pattern.DOTALL);
  </code></pre>
  
  <p>would do the work but it does not.</p>
  
  <p>Whats wrong with that?</p>