code: public static String extractRegexGroup(String fromContent, String regex) throws Exception {
          return extractRegexGroup(fromContent, regex, 1);
      }
docs: Extracts the first matching group in the provided content, if the regex includes at least one group. An exception is
  thrown if the regex does not include a group, or if a matching group cannot be found in the content.