re source code

Darrell dgallion1 at yahoo.com
Tue Sep 18 19:53:21 CEST 2001


Go to
https://sourceforge.net/tracker/?atid=105470&group_id=5470&func=browse
Search for Request ID: 456742 

A full explanation of how this works is beyond me right now.
The work around tries to avoid recursion in favor of a loop.
The problem is that even a loop must make sure that the next char
matches whatever is defined before the '*'.

In the case of '.' this isn't real hard. In the case of "[^\n].*?",
recursion is more attractive.

--Darrell


"Carlos Gaston Alvarez" <cgaston at moonqzie.com> wrote in message news:<mailman.1000802843.24718.python-list at python.org>...
> I want to read re source code.
> I want to know why it is more tolerant to .* than to .*?  and so on. The
> final documentation is the source. I want that.
> 
> Chau,
> 
> Gaston
> 
> "Use the source, Luke"



More information about the Python-list mailing list