static long regexpToLong(S regexp, S input) { ret parseLong(regexpFirstGroup(regexp, input)); }