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