[pmwiki-devel] Email pattern...
Patrick R. Michaud
pmichaud at pobox.com
Thu May 31 16:40:53 CDT 2007
On Thu, May 31, 2007 at 01:53:46PM -0700, Martin Fick wrote:
> --- "Patrick R. Michaud" <pmichaud at pobox.com> wrote:
> Well, from here:
>
> http://www.regular-expressions.info/email.html
>
> it is worth noting that the % and _ are valid in the
> user name, I would make at least that one addition.
>
> '/^[-+.%_\\w]+@[-+\\w]+\\.[-+.\\w]+$/'
Underscores are already included by the \w. :-)
> Not sure that the pluses are needed either...
Plus (+) is definitely needed, as <pmichaud+pmwiki at example.com>
is definitely a valid email address, and in fact there
are people that are using such addresses on the mailing
list. :-)
Pm
More information about the pmwiki-devel
mailing list