public static boolean validHostPattern(String address) {
        return VALID_HOST_CHARACTERS.matcher(address).matches();
    }
Basic validation of the supplied address. checks for valid characters
@param address hostname string to validate
@return true if address contains valid characters
clients/src/main/java/org/apache/kafka/common/utils/Utils.java