How do I get to *all* of the groups of an re search?

Kyler Laird Kyler at
Sat Jan 11 17:26:05 CET 2003

Andrew Dalke <adalke at> writes:

>> It's not documented where a user is likely to look for the
>> RE syntax.  The RE syntax page gives what appears to be a
>> very straightforward explanation of groups.  I don't know
>> why a beginning Python user would think to look elsewhere
>> for some strange behavior.

>And there's nothing there about how to use the compile function
>nor the 'groups()' method nor ... It's syntax only.

Yes, but the syntax clearly states that the matched text
will be accessible.  That is not true.  There is no way
to get it with any function.


More information about the Python-list mailing list