title: java regex excluding string contain in brackets
body: <p>I have following code</p>
  
  <pre><code>Pattern p = Pattern.compile("^get.*\\(");
  Matcher m = p.matcher("getFieldAsDouble(String)");
  if (m.find()) {
    System.out.println(m.group());
  }
  </code></pre>
  
  <p>It returns <code>getFieldAsDouble(</code></p>
  
  <p>How do i get only text name of method instead of <code>(</code> ??</p>