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