public static Pattern createPattern(final String pattern) {
        return createPattern(pattern, Pattern.CASE_INSENSITIVE);
    }
Creates the pattern. Matching is by default
case insensitive.

@param pattern the pattern, may not be null.
@return the pattern or or {@link RegexUtils#MATCH_NOTHING_PATTERN}
if pattern is null or invalid.
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/RegexUtils.java