Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

(dkubb) Re: (1) generating regexes?

by dkubb (Deacon)
on Nov 19, 2001 at 21:56 UTC ( [id://126317]=note: print w/replies, xml ) Need Help??


in reply to generating regexes?

Regex::Presuf is the closest match to automatic regex generation on CPAN, that I know of. It generates a regex based on a word list, where the resulting regex is usually more efficient than just concatenating all the words together with a "|".

If you haven't already, you should check out Mastering Regular Expressions. It has an excellent chapter on machine generated regexes for matching email addresses. The resulting regex can be seen in the CPAN module Email::Valid.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2024-04-18 10:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found