in reply to Regular expression to English translation

There was a thread here a while ago about that, called something like "list of strings that match a regular expression" but I can't find it by searching, annoyingly.

Of course with any use of star in regular expressions, the number of matches is infinite, right?



($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss') =~y~b-v~a-z~s; print

Replies are listed 'Best First'.
Re: Re: Regular expression to English translation
by Wassercrats (Initiate) on Nov 28, 2003 at 02:22 UTC
    Infinitely long phrases are one of my concerns with Parse::RandGen, but I might be able to do something about that. I'd really like a module that would handle a regex like /Hello\s{1,3}world.*/ by outputting:

    Hello world [and any text that follows] Hello world [and any text that follows] Hello world [and any text that follows]

    Kind of a compromise between YAPE::Regex::Explain and Parse::RandGen. Then, I would just eliminate the phrases with multiple spaces and explain in a footnote that multiple spaces between words would match. I guess I have very specialized needs and I expect to have to customize the modules.