How do I get to *all* of the groups of an re search?
Kyler Laird
Kyler at news.Lairds.org
Sat Jan 11 11:26:05 EST 2003
Andrew Dalke <adalke at mindspring.com> 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.
--kyler
More information about the Python-list
mailing list