c++ - Library to check if two regular expressions are equal/isomorphic -


i need library take in 2 regular expressions , determine whether isomorphic (i.e. match same set of strings or not) example a|b isomorphic [ab]

as understand it, regular expression can converted nfa in cases can efficiently converted dfa. dfa can converted minimal dfa, which, if understand correctly, unique , these minimal dfa's can compared equality. realize not regular expression nfa's can efficently transformed dfa's (especially when generate perl regexps not "regular") in case ideally library return error or other indication conversion not possible.

i see tons of articles , academic papers on-line doing (and programming assignments classes asking students this) can't seem find library implements functionality. prefer python and/or c/c++ library, library in language do. know if such library? if not, know of library gets close can use starting point?

haven't tried it, regexp:compare perl looks promising: 2 regex's equivalent if language of first subset of second, , vice verse.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -