static boolean find3plusRests(S pat, S s) { return find3plusRests(pat, s, null); } static boolean find3plusRests(S pat, S s, Matches matches) { L tokpat = parse3(pat), toks = parse3(s); Pair p = find2plusIndex(tokpat, toks); //print(structure(tokpat) + " on " + structure(toks) + " => " + structure(m)); if (p == null) false; if (matches != null) matches.m = concatStringArrays( new S[] {joinSubList(toks, 0, p.b-1)}, p.a, new S[] {joinSubList(toks, p.b+l(tokpat)-1)}); true; }