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 Farbod Safe2
Recipients Farbod Safe2
Date 2019-03-18.15:03:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552921439.06.0.146720429556.issue36349@roundup.psfhosted.org>
In-reply-to
Content
Below two print statements should give the same results but they don't:

import re

s = '[a]'

print(*re.findall(r'\[.*]',s))
[a]

print(*re.findall(r'\[(.*)]',s))
a
History
Date User Action Args
2019-03-18 15:03:59Farbod Safe2setrecipients: + Farbod Safe2
2019-03-18 15:03:59Farbod Safe2setmessageid: <1552921439.06.0.146720429556.issue36349@roundup.psfhosted.org>
2019-03-18 15:03:59Farbod Safe2linkissue36349 messages
2019-03-18 15:03:58Farbod Safe2create