docs: public static String extractRegexGroup(String fromContent, String regex, int groupNumber) throws Exception {
          if (regex == null) {
              throw new Exception("Cannot extract regex group because the provided regular expression is null.");
          }
          Pattern expectedPattern = Pattern.compile(regex);
          return extractRegexGroup(fromContent, expectedPattern, groupNumber);
      }