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 steven.daprano
Recipients ezio.melotti, josh.r, lprice, mrabarnett, steven.daprano
Date 2019-03-06.03:54:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1551844451.61.0.0966493601051.issue36206@roundup.psfhosted.org>
In-reply-to
Content
You don't escape the text you are searching. Try this:

py> re.match(re.escape('-'), "-")
<_sre.SRE_Match object; span=(0, 1), match='-'>

py> re.match(re.escape('a-c'), "a-c")
<_sre.SRE_Match object; span=(0, 3), match='a-c'>
History
Date User Action Args
2019-03-06 03:54:11steven.dapranosetrecipients: + steven.daprano, ezio.melotti, mrabarnett, josh.r, lprice
2019-03-06 03:54:11steven.dapranosetmessageid: <1551844451.61.0.0966493601051.issue36206@roundup.psfhosted.org>
2019-03-06 03:54:11steven.dapranolinkissue36206 messages
2019-03-06 03:54:11steven.dapranocreate