Enumerating Regular Expressions

Dale Strickland-Clark dale at riverhall.nospam.co.uk
Tue May 9 09:40:23 CEST 2006

Any regular expression that has an asterisk in it has an infinite number of
possible matches.

If it has two asterisks, that's an infinite number squared and that's a
really big number.

You wouldn't want to print them out.

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

Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk

More information about the Python-list mailing list