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

Kyler Laird Kyler at
Sun Jan 12 00:26:02 CET 2003

Paul Rubin <phr-n2002b at> 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

Are you claiming that it provides something more?


More information about the Python-list mailing list