title: Maximum number of groups in Java Regex
body: <p>I had assumed the maximum was 9 but after some experimentation I know it is not.  The javadocs  for <a href="http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html" rel="nofollow noreferrer">Pattern</a> and <a href="http://java.sun.com/javase/6/docs/api/java/util/regex/Matcher.html" rel="nofollow noreferrer">Matcher</a> to not list a maximum.</p>