static S regexpFirstGroup_lastMatch(S pat, S s) { Matcher m = Pattern.compile(pat).matcher(s); S group = null; while (m.find()) group = m.group(1); ret group; }