title: Unable to match the string "help" in the string "[help]" using regex
body: <p>I'm not able to get this to match correctly.  It only prints "[help]" but I want it to match the characters inside the brackets.</p>
  
  <p>want:</p>
  
  <pre><code>[help]
  help
  </code></pre>
  
  <p>code: </p>
  
  <pre><code>        Pattern p = Pattern.compile("\\[(\\w+)\\]");
          Matcher m = p.matcher("[help]");
          m.find();
  
  
          for (int i=0;i&lt;m.groupCount(); i++) {
              System.out.println(m.group(i));
          }
  </code></pre>