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/