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