re module non-greedy matches broken

Fredrik Lundh fredrik at pythonware.com
Mon Apr 4 04:11:07 EDT 2005


"lothar" wrote:

> this is a bug and it needs to be fixed.

it's not a bug, and it's not going to be "fixed".  search, findall, finditer, sub,
etc. all scan the target string from left to right, and process the first location
(or all locations) where the pattern matches.

</F> 






More information about the Python-list mailing list