re source code
dgallion1 at yahoo.com
Tue Sep 18 19:53:21 CEST 2001
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.
"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.
> "Use the source, Luke"
More information about the Python-list