static LS matchX_lines_allRests(S pat, S s) { new LS l; new Matches m; for (S pat2 : tlft(pat)) if (matchX(pat2, s, m)) l.add(m.rest()); ret l; }