Message337272
| Author | lprice |
|---|---|
| Recipients | ezio.melotti, lprice, mrabarnett |
| Date | 2019-03-06.02:39:37 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1551839977.13.0.745695209115.issue36206@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
Problem:
re.match("\\-", "\\-")
returns None.
I expected a match.
Context:
I have some random text strings I want to match against. I'm using re.escape() to ensure that the text characters are not interpreted as special characters:
re.match(re.escape("-"), re.escape("-"))
As a result, strings with hyphens are coming back as above, and are not matching. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-03-06 02:39:37 | lprice | set | recipients: + lprice, ezio.melotti, mrabarnett |
| 2019-03-06 02:39:37 | lprice | set | messageid: <1551839977.13.0.745695209115.issue36206@roundup.psfhosted.org> |
| 2019-03-06 02:39:37 | lprice | link | issue36206 messages |
| 2019-03-06 02:39:37 | lprice | create | |