in reply to Re: Bidirectional Regular Expression Parsing and Matching Text Generation?
in thread Bidirectional Regular Expression Parsing and Matching Text Generation?

On the same note! One could make a similar module to generate a regex based on function calls:
$regex = genregex( OR( [digits,alpha], [alpha,digits] ) ); # $regex is now qr/\d[a-zA-Z]|[a-zA-Z]\d/
Holy expletives deleted, Batman! This looks like the dreaded OmniMark!

$_="goto+F.print+chop;\n=yhpaj";F1:eval
  • Comment on RE: Re: Bidirectional Regular Expression Parsing and Matching Text Generation?
  • Download Code