static Matches getMatches(S pat, S input) { new Matches m; ret match(pat, input, m) ? m : null; }