public static boolean matches(final Pattern pattern, final String value) {
        return pattern.matcher(value).matches();
    }
Matches the entire region for the string.

@param pattern the pattern
@param value   the string
@return true/false
@see Matcher#matches()
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/RegexUtils.java