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; }