public static String requireMatch(String value, String description, Pattern pattern) {
        return require(pattern.matcher(value).matches(), value, description + " must match '" + pattern + "'");
    }
Requires the value to match the given pattern.
vespajlib/src/main/java/ai/vespa/validation/Validation.java