re module non-greedy matches broken
André Malo
auch-ich-m at g-kein-spam.com
Tue Apr 5 12:25:27 EDT 2005
* lothar wrote:
> a non-greedy match - as implicitly defined in the documentation - is a
> match in which there is no proper substring in the return which could also
> match the regex.
Your argumentation is starting at the wrong place. The documentation doesn't
define the bahviour, it tries to describe it (wrongly, as said).
> you are skirting the issue as to why a matcher should not be able to
> return a non-greedy match.
>
> there is no theoretical reason why it can not be done.
I'm sure, you can explain the theory behind regexps in order to substantiate
your statement.
*shrug*
nd
More information about the Python-list
mailing list