static LS regexpMatchesAsCNC(S pat, S s) { ret intRangesToCNC(s, regexpFindRanges(pat, s)); }