Enumerating Regular Expressions

Boris Borcic bborcic at gmail.com
Tue May 9 15:11:29 CEST 2006


blair.bethwaite at gmail.com wrote:
> Hi all,
> 
> Does anybody know of a module that allows you to enumerate all the
> strings a particular regular expression describes?
> 
> Cheers,
> -Blair
> 

By hand write down a generator that will solve the simplest case of '.*' as a
regexp, and filter the output of that by the given regexp ?

- seriously, that's an interesting question, thanks for asking it ;)



More information about the Python-list mailing list