Must be a bug in the re module [was: Why this result with the re module]

Yingjie Lan lanyjie at yahoo.com
Wed Nov 3 00:23:11 EDT 2010


--- On Wed, 11/3/10, MRAB <python at mrabarnett.plus.com> wrote:

> From: MRAB <python at mrabarnett.plus.com>
> Subject: Re: Must be a bug in the re module [was: Why this result with the re module]
> To: python-list at python.org
> Date: Wednesday, November 3, 2010, 8:02 AM
> On 03/11/2010 03:42, Yingjie Lan
> wrote:

> Therefore the outer (first) group is always an empty string
> and the
> inner (second) group is the same as the previous example
> (the last
> capture or '' if no capture).

Now I am confused also:

If the outer group \1 is empty, how could the inner
group \2 actually have something?

Yingjie


      



More information about the Python-list mailing list