Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Regular expression to English translation

by Wassercrats (Initiate)
on Nov 28, 2003 at 02:22 UTC ( [id://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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-03-29 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found