How do I get to *all* of the groups of an re search?
Kyler Laird
Kyler at news.Lairds.org
Sun Jan 12 00:26:02 CET 2003
Paul Rubin <phr-n2002b at NOSPAMnightsong.com> writes:
>> 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.
>Something wrong with
> m.string[m.start(g):m.end(g)]
>as described in the docs?
No, not if you're just trying to obfuscate m.group(g).
Are you claiming that it provides something more?
--kyler
More information about the Python-list
mailing list