title: Regex getting String in between parenthesis
body: <p>I am just learning about using Regex and it does seem a bit complicated to me.</p>
  
  <p>I am trying to parse this String in Java:</p>
  
  <pre><code>new Array(new Array('1','Hello'),new Array('2','World (New) Again'),new Array('3','Now'));
  </code></pre>
  
  <p>I want the output to end up as these matches:</p>
  
  <pre><code>'1','Hello'
  '2','World (New) Again'
  '3','Now'
  </code></pre>
  
  <p>I tried a few pattern, but the best I can get is that I get:</p>
  
  <pre><code>'1','Hello'
  '2','World (New
  ) Again'
  '3','Now'
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>Pattern pattern2 = Pattern.compile("([^\\(]*[']*['][^\\)]*[']*)");
  s = "new Array(new Array('1','Hello'),new Array('2','World (New) Again'),new Array('3','Now'));";
  Matcher matcher = pattern2.matcher(s);
  
  while(matcher.find()){
      String match = matcher.group(1);
      System.out.println(match); 
  }
  </code></pre>