Re: The inverse problem: generate all instances of a regexp
- From: "Andrei Alexandrescu (See Website For Email)" <SeeWebsiteForEmail@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 17 Feb 2006 12:50:37 -0800
Dr.Ruud wrote:
Andrei Alexandrescu (See Website For Email) schreef:
I wonder how this could be done elegantly. Given a regular expression
$re, write a function Generate($) that returns a list of all possible
strings that could match $re.
http://search.cpan.org/~bowmanbs/Regexp-Genex/lib/Regexp/Genex.pm
Wow, that's exactly what the doctor prescribed... thanks, Dr. Ruud :o).
Andrie
.
- References:
- The inverse problem: generate all instances of a regexp
- From: Andrei Alexandrescu (See Website For Email)
- Re: The inverse problem: generate all instances of a regexp
- From: Dr.Ruud
- The inverse problem: generate all instances of a regexp
- Prev by Date: Need advice on debugging malloc bug (XML::Parser::Expat)
- Next by Date: Re: Need advice on debugging malloc bug (XML::Parser::Expat)
- Previous by thread: Re: The inverse problem: generate all instances of a regexp
- Next by thread: Modules
- Index(es):