I want to reverse a regular expression. i.e. given a regular expression, I want to produce any string that will match that regex.
I know how to do this from a theoretical computer science background using finite state machine, I just want to know if someone has already written a library to do this. :)
I'm using Python, so I'd like a python library.
To reiterate, I only want one string that will match the regex. Things like "." or ".*" would make an infinite amount of strings match the regex, but I don't care about all options.
I'm willing for this library to only work on a certain subset of regex.