static bool igrep(S s, S pat) { if (startsWith(pat, "^")) ret swic(s, dropPrefix("^", pat)); else ret containsIgnoreCase(s, pat); }