sbool hasLineMatching(S pat, S text) { for (S line : linesIterator(text)) if (match(pat, line)) true; false; }