in reply to regexp to only allow for formally valid email addresses

use Email::Valid; # . . . my $spammer; $spammer = 1 unless Email::Valid->address($f{'Email'}) or $f{'Email'} eq '';

There exists a regex that does what you want, but it is large and complex. Email::Valid uses a small parser.

Update: Seperated my declaration from conditional assignment, was a thinko.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: regexp to only allow for formally valid email addresses
by blazar (Canon) on Mar 08, 2007 at 12:31 UTC
    There exists a regex that does what you want, but it is large and complex.

    In another post I mentioned an "impressive example" that works with the newest blead, posted by Abigail in clpmisc; for completeness, I'm pasting it hereafter: