If I have a two regular expressions, and want to check whether these two expressions are equivalent, how can it be done?
By "equivalence", I mean do the two regular expressions match exactly the same set of strings?
For example, these two regular expressions are equivalent:
b{1}b{0,} == bb*
These two are not.
b != bb*
An answer with code in Python would be ideal.