static L regexpGetGroups(Matcher matcher) { int n = matcher.groupCount(); new L l; for (int i = 1; i <= n; i++) l.add(matcher.group(i)); ret l; } // performs find() static L regexpGetGroups(S pat, S s) { Matcher m = regexpMatcher(pat, s); if (m.find()) ret regexpGetGroups(m); null; }