Ammar Askar <[email protected]> added the comment:
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? ---------- nosy: +ammar2 _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue38660> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
