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

(dkubb) Re: (1) generating regexes?

by dkubb (Deacon)
on Nov 19, 2001 at 21:56 UTC ( #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? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2022-12-07 16:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?