perlquestion
bsb
Is there a module which can generate strings
that satisfy a certain regular expression?
<code>
qr/^ab?(c|d)$/ => qw/ac abc ad abd/;
</code>
My only lead is
<code>
$ perl -e 'use re "debug"; /^ab?(c|d)$/'
</code>
which I got from GraphViz::Regex, which parses the
output to graph it.
<br>
Anything else I should look at?<br>
<p>
Obviously there's issues about infinite languages,
what does '.' do, unanchored expressions, perl's
(?..) features. But let's be "Can Do" people :)
<p>
Brad