Fredrik Lundh added the comment: re.findall has the same behaviour. Without looking at the code, I'm not sure if this is a bug in the code or in the documentation, really. __________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue1761> __________________________________