title: A regex to get string out of the brackets?
body: <p>I have the following string:</p>
  
  <blockquote>
    <p>"The girl with the dragon tattoo (LISBETH)"</p>
  </blockquote>
  
  <p>and I need to get <strong>only the string in the brackets</strong> at the end of the input.</p>
  
  <p>So far I came to this: </p>
  
  <pre><code>    public static void main(String[] args) {
  
      Pattern pattern =
      Pattern.compile("\\({1}([a-zA-Z0-9]*)\\){1}");
  
      Matcher matcher = pattern.matcher("The girl with the dragon tattoo (LISBETH)");
  
      boolean found = false;
      while (matcher.find()) {
          System.out.println("I found the text " + matcher.group()
                  + " starting at " + "index " + matcher.start()
                  + " and ending at index " +
                  matcher.end());
          found = true;
      }
      if (!found) {
          System.out.println("No match found");
      }
  }
  </code></pre>
  
  <p>But as a result I get: <code>(LISBETH)</code>.</p>
  
  <p>How to get away from those brackets?</p>
  
  <p>Thanks!</p>