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?? |
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.
In Section
Meditations
|
|