This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author SilentGhost
Recipients Farbod Safe2, SilentGhost, matrixise
Date 2019-03-18.15:19:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552922392.77.0.371975467317.issue36349@roundup.psfhosted.org>
In-reply-to
Content
Fabrod, this has nothing to do with the square brackets. It is your assumption that the return value should be the same that is wrong. Cf.:

>>> re.findall(r'a.+', 'abc')
['abc']
>>> re.findall(r'a(.+)', 'abc')
['bc']

This is the correct documented behaviour.
History
Date User Action Args
2019-03-18 15:19:52SilentGhostsetrecipients: + SilentGhost, matrixise, Farbod Safe2
2019-03-18 15:19:52SilentGhostsetmessageid: <1552922392.77.0.371975467317.issue36349@roundup.psfhosted.org>
2019-03-18 15:19:52SilentGhostlinkissue36349 messages
2019-03-18 15:19:52SilentGhostcreate