static L regexpFindRanges(S pat, S s) { Matcher m = regexpMatcher(pat, s); new L l; while (m.find()) l.add(IntRange(m.start(), m.end()); ret l; }