http://qs321.pair.com?node_id=360931


in reply to Re: Simple e-mail validation
in thread Simple e-mail validation

Sounds like a good thing to me! Spaces are allowed in email addresses. Any regexp that doesn't allow for spaces won't be correct.

Abigail

Replies are listed 'Best First'.
Re^2: Simple e-mail validation
by Theo (Priest) on Jun 04, 2004 at 22:29 UTC
    Well, slap me silly! I've never seen that!
    Are there some systems that disallow spaces? (trying to figure out where I got that idea...)

    Update: Thanks, Abigail.

    -Theo-
    (so many nodes and so little time ... )

      Are there some systems that disallow spaces?
      Any MTA that doesn't allow sending mail with addresses that contain spaces is not RFC compliant. But every site is free to decide what its policy is for creating email addresses. A site could decide to only allow vowels, or forbid letters or spaces in email addresses.

      Abigail