static bool regexpMatches(S pat, S s) { ret pat != null && s != null && regexp(pat, s).matches(); }