public static boolean isEqualOrMatchesCaseBlind(String arg, String pat, Perl5Matcher matcher, PatternCacheLRU cache){
        return
            arg.equalsIgnoreCase(pat)
            ||
            matcher.matches(arg,cache.getPattern(pat,Perl5Compiler.READ_ONLY_MASK | Perl5Compiler.CASE_INSENSITIVE_MASK));
    }
@Test
    public void testisEqualOrMatchesCaseBlind() throws Exception {
        assertTrue(HtmlParsingUtils.isEqualOrMatchesCaseBlind("http:", "http:"));
        assertTrue(HtmlParsingUtils.isEqualOrMatchesCaseBlind("http:", "htTp:"));
        assertTrue(HtmlParsingUtils.isEqualOrMatches("http:", "ht+p:"));
        assertFalse(HtmlParsingUtils.isEqualOrMatches("ht+p:", "http:"));
    }