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 _______________________________________________ luv-main mailing list [email protected] http://lists.luv.asn.au/listinfo/luv-main
