static int indexOf_regexp(S s, S pat) { Matcher m = compileRegexp(pat).matcher(s); ret m.find() ? m.start() : -1; }