[Gllug] strip invalid email addresses
David Damerell
damerell at chiark.greenend.org.uk
Mon Dec 10 20:17:15 UTC 2007
On Friday, 7 Dec 2007, Joel Bernstein wrote:
>On Fri, Dec 07, 2007 at 05:21:46PM +0000, countd wrote:
>>I have a plain text list of email addresses. Can anyone help me with a
>>one liner (sed?) to strip out the invalid ones? I can see for example
>>that there are telephone numbers in there, and lines with no @ sign
>>which I'd like to get rid of.
>The Perl module Regexp::Common [1] doesn't make any attempt to provide a
>matcher for email addresses, for good reason.
But Mail::RFC822::Address does, and is the right tool for the job.
--
David Damerell <damerell at chiark.greenend.org.uk> Distortion Field!
Today is Aponoia, December.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list