public static boolean matches(final Pattern pattern, final String value, final boolean completeMatch) {
        val matcher = pattern.matcher(value);
        LOGGER.debug("Matching value [{}] against pattern [{}]", value, pattern.pattern());
        if (completeMatch) {
            return matcher.matches();
        }
        return matcher.find();
    }
Matches boolean.

@param pattern       the pattern
@param value         the value
@param completeMatch the complete match
@return true/false
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/RegexUtils.java