On Wed, 24 Apr 2002, Evan Nemerson wrote:
> A domain cannot contain an underscore, but unless i'm mistaken the
> USERNAME can. the domain name REGEX is [\.a-zA-Z\-]+
> ereg("([_a-zA-Z\-]+|\*)\@[\.a-zA-Z\-]+\.[\.a-zA-Z\-]+",$variable);

Right you are. I spaced out right past the @.

But on the other hand usernames can contain all sorts of other characters 
too. = and + are popular among people who give out multiple addresses for 
mailbox filtering.


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to