sbool safeRegexpMatches(Pattern pat, S s) { ret pat.matcher(InterruptibleString(s)).matches(); }