code: public static final Function<String,List<String>> matchAndExtractAll(final String regex, final int... groups) {
          return new MatchAndExtractAll(regex, VarArgsUtil.asRequiredIntegerList(groups));
      }
docs: <p>
  Matches the entire target String against the specified regular expression and extracts
  the specified groups from it (as specified by <tt>java.util.regex.Matcher</tt>.
  </p>
  <p>
  Regular expressions must conform to the <tt>java.util.regex.Pattern</tt> format.
  </p>
  
  @param regex the regular expression to match against
  @param groups the group numbers to be extracted
  @return a List with the substrings matching the group number