"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> -- http://mail.python.org/mailman/listinfo/python-list