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 dananntang
Recipients dananntang, docs@python
Date 2016-05-25.02:24:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464143092.14.0.677352167387.issue27116@psf.upfronthosting.co.za>
In-reply-to
Content
https://docs.python.org/2/library/re.html#regular-expression-syntax
Section 7.2.1. Regular Expression Syntax

Documentation for \w and \W are wrong.
To be specific:
\w is to match any non-alphanumeric character, while \W is to match alphanumeric character

Fix: swap documentation for \w and \W
History
Date User Action Args
2016-05-25 02:24:52dananntangsetrecipients: + dananntang, docs@python
2016-05-25 02:24:52dananntangsetmessageid: <1464143092.14.0.677352167387.issue27116@psf.upfronthosting.co.za>
2016-05-25 02:24:51dananntanglinkissue27116 messages
2016-05-25 02:24:50dananntangcreate