
7 Oct
2013
7 Oct
'13
1:02 a.m.
On Mon, Oct 7, 2013, at 10:58 AM, Trent W. Buck wrote:
Andrew McGlashan writes:
This might get you going: A Perl Extensible Mail Filter --> http://marginalhacks.com/Hacks/pemf/
I didn't notice at first either, but he hid a "C library" constraint in the Subject.
I can't recommend a library, but I *can* tell you that email addresses aren't regular, so a regular expression is wrong.
Jeffrey Friedl's book "Mastering Regular Expressions" (O'Reilly) has an RFC 822 compliant regular expression in it that is meant to be very robust. D J Bernstein's mess822 library is probably the best solution in C that I am aware of: http://cr.yp.to/mess822.html (with supporting discussion and notes at http://cr.yp.to/immhf.html) Regards Graeme