[EMAIL PROTECTED] wrote: > Hi all, > > Does anybody know of a module that allows you to enumerate all the > strings a particular regular expression describes?
Make a generator that yields *all* strings in your chosen alphabet (see the monthly threads about permutations and combinations for hints). Filter with the regex. Halting is left as an exercise for the reader. (Halting when the length reaches a predetermined limit would be one way to do it.) Kent -- http://mail.python.org/mailman/listinfo/python-list