in reply to Re: Regular expression to English translation
in thread Regular expression to English translation

My fear is that that's the best that could be done. I haven't completely thought through how practical what I want is, but I would need something more like a list of expressions that match with no reference to regex code.
  • Comment on Re: Re: Regular expression to English translation

Replies are listed 'Best First'.
Re: Re: Re: Regular expression to English translation
by broquaint (Abbot) on Nov 27, 2003 at 13:28 UTC
    Then the likes of Parse::RandGen are probably worth looking at. Here's some sample usage
    use Parse::RandGen; my $p = Parse::RandGen::Regexp->new(qr/a(b|c)d?/); print $p->pick for 1 ..5 __output__ abd ab ac acd abd
    HTH

    _________
    broquaint

      That looks promising! Unfortunately, that particular Parse:: module isn't available on my web host's server, and it looks like ActivePerl doesn't come with any Parse:: modules. I might be able to get it installed on one or the other though. I'll take a closer look when I get a chance and am fully awake. Thanks
Re: x3 Regular expression to English translation
by bsb (Priest) on Nov 28, 2003 at 03:41 UTC