Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: Regular expression to English translation

by Wassercrats
on Nov 28, 2003 at 02:22 UTC ( #310629=note: print w/ replies, xml ) Need Help??


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

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.


Comment on Re: Re: Regular expression to English translation
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://310629]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-09-16 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (156 votes), past polls