static S regexpFirstGroupOneOf(L pats, S s) { for (S pat : pats) { S g = regexpFirstGroup(pat, s); if (g != null) ret g; } null; }