static bool regexpMatchGroups(S pat, S s, Matches m) { Matcher m = Pattern.compile(pat).matcher(s); if (!m.matches()) false; if (m != null) m.m = toStringArray(regexpGetGroups(m)); true; }