Generating text from a regular expression

Nathan Harmston iwanttobeabadger at googlemail.com
Wed Mar 31 06:49:14 EDT 2010


Hi everyone,

I have a slightly complicated/medium sized regular expression and I
want to generate all possible words that it can match (to compare
performance of regex against an acora based matcher). Using the
regular expression as a grammar to generate all words in its language.
I was wondering if this possible in Python or possible using anything.
Google doesnt seem to give any obvious answers.

Many thanks in advance,

Nathan



More information about the Python-list mailing list