code: public static boolean matchesAny(String str, List<String> regexes, boolean fullMatch) {
          if (CollectionUtils.isNotEmpty(regexes)) {
              for (String regex : regexes) {
                  Pattern pattern = Pattern.compile(regex);
                  Matcher matcher = pattern.matcher(str);
  
                  if (fullMatch) {
                      if (matcher.matches()) {
                          return true;
                      }
                  } else {
                      if (matcher.find()) {
                          return true;
                      }
                  }
              }
          }
  
          return false;
      }
docs: Returns true if the string matches any of the specified regexes.
  
  @param str       the string to match
  @param regexes   the regexes used for matching
  @param fullMatch if the entire string should be matched
  
  @return true if the string matches one or more of the regexes