std.regexp.email is incorrect <G>

Matti Niemenmaa see_signature at for.real.address
Wed Sep 19 07:46:15 PDT 2007


BCS wrote:
> http://search.cpan.org/src/RJBS/Email-Valid-0.179/lib/Email/Valid.pm

As you no doubt have noted <g>, RFC 2822, which specifies E-mail addresses,
allows for a lot more than one might think.

The page at http://www.regular-expressions.info/email.html has a good overview
regarding E-mail validation with regular expressions, and why it probably
doesn't matter that your regexp isn't the one in Email::Valid. :-)

In fact, std.regexp.email appears to be much more lenient than most validators
I've come across. Most service providers on the 'Net which require E-mail
addresses for signup don't even accept plus characters...

Want to take a similar look at std.regexp.url? ;-)

-- 
E-mail address: matti.niemenmaa+news, domain is iki (DOT) fi


More information about the Digitalmars-d-bugs mailing list