static boolean matchEnd_vbar(S pat, S s) { return matchEnd_vbar(pat, s, null); } static boolean matchEnd_vbar(S pat, S s, Matches matches) { for (S pat2 : splitAtTokens(pat, ll("|"))) if (matchEnd(pat2, s, matches)) true; false; }