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 ammar2
Recipients ammar2, boris, ezio.melotti, mrabarnett
Date 2019-11-01.07:07:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572592027.47.0.0748173265407.issue38660@roundup.psfhosted.org>
In-reply-to
Content
The notion of equivalent regular expressions does exist but is way more complicated than the simple example you described.

For example:

r"a|b" is the same as r"[ab]",
r"^aa*$" is the same as r"^a+$"

Implementing this properly would probably require a significant amount of effort, and just implementing simple equivalence for character classes would be really surprising.

Could you explain the use case and motivation behind this request?
History
Date User Action Args
2019-11-01 07:07:07ammar2setrecipients: + ammar2, ezio.melotti, mrabarnett, boris
2019-11-01 07:07:07ammar2setmessageid: <1572592027.47.0.0748173265407.issue38660@roundup.psfhosted.org>
2019-11-01 07:07:07ammar2linkissue38660 messages
2019-11-01 07:07:07ammar2create