static L getMatchesX2_all(S pat, Iterable l) { new Matches m; new L out; for (S s : unnull(l)) if (matchX2(pat, s, m)) { out.add(m); m = new Matches; } ret out; }