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 xiang.zhang
Recipients dananntang, docs@python, xiang.zhang
Date 2016-05-25.02:36:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464143787.0.0.765884564204.issue27116@psf.upfronthosting.co.za>
In-reply-to
Content
I don't think no need to swap. The current doc is right.

>>> re.findall(r'\W+', 'abcd123_#@@@@')
['#@@@@']
>>> re.findall(r'\w+', 'abcd123_#@@@@')
['abcd123_']

It's apparent that \w match alphanumeric and \W vice versa.
History
Date User Action Args
2016-05-25 02:36:27xiang.zhangsetrecipients: + xiang.zhang, docs@python, dananntang
2016-05-25 02:36:27xiang.zhangsetmessageid: <1464143787.0.0.765884564204.issue27116@psf.upfronthosting.co.za>
2016-05-25 02:36:26xiang.zhanglinkissue27116 messages
2016-05-25 02:36:26xiang.zhangcreate