Skip Menu |

This queue is for tickets about the Regexp-Common-Email-Address CPAN distribution.

Report information
The Basics
Id: 55504
Status: new
Priority: 0/
Queue: Regexp-Common-Email-Address

People
Owner: Nobody in particular
Requestors: dolmen [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.01
Fixed in: (no value)



Subject: R::E::Email::Address is not what the user expects
Most users of this module want just to check e-mail address such as "dolmen@cpan.org", to validate user input for example on web forms. Also, as the regexp is completely obscure, most users just blindly trust it after a quick test. However the current implementation is based on $Email::Address::mailbox which is the full address from RFC 5322, including the human readable part and comments. So the POD should more clearly says that this regexp accept much more that just mailbox@domain. For example: perl "-MRegexp::Common 'Email::Address'" -e "print shift =~ $RE{Email}{Address} ? qq[OK\n]:qq[Err\n]" "xx xx a@b.c" OK -- Olivier Mengué - http://o.mengue.free.fr/