public void setCaseInsensitive(boolean caseInsensitive) {
        this.caseInsensitive = caseInsensitive;
    }
Adds the Pattern.CASE_INSENSITIVE flag when compiling patterns.

@param caseInsensitive true if patterns should match case-insensitive.
core/src/main/java/org/apache/shiro/util/RegExPatternMatcher.java