Christian Heimes added the comment: The documentation is correct. It explains the difference between a default match (greedy) and a non-greedy match.
>>> re.match('(a{3,5})', 'aaaaa').group(1) 'aaaaa' >>> re.match('(a{3,5}?)', 'aaaaa').group(1) 'aaa' ---------- nosy: +christian.heimes _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28136> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com