I discovered a match object property "regs" which contains the start and end positions of the entire match and of each group. This is exactly what I need. But it is not documented. Is that an oversight, or does it mean it might change in the future?