static S regexpExtract(S pat, S s) { if (s == null) null; Matcher m = Pattern.compile(pat).matcher(s); ret m.find() ? m.group() : null; }