protected static boolean regexListMatch(List<String> regexList, String input) {
    for (String regex : regexList) {
      if (Pattern.matches(regex, input)) {
        return true;
      }
    }
    return false;
  }
Check if any regex string in a list matches a given input value
src/main/java/io/prometheus/cloudwatch/DefaultDimensionSource.java