Ben Cartwright wrote: > The groups *are* 0-based. The 0th group is the whole match, e.g.: Ah, I see! But I also read that if a group number starts with 0, it is treated as octal. Did I read that wrong, or maybe it doesn't matter since 0 is 0 in any base system?