i don't understand this RE example from the documentation

John Salerno johnjsal at NOSPAMgmail.com
Tue May 9 10:13:27 EDT 2006


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?



More information about the Python-list mailing list