Re: eregi(mail)
| From: | Miguel Cruz | Date: | Fri, 10 May 2002 18:32:31 +0000 |
| Subject: | Re: eregi(mail) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96980@lists.php.net to get a copy of this message | ||
On Fri, 10 May 2002, Steve Buehler wrote:
>
> if(ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_
a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$',
>
If I'm reading it correctly, this will let invalid addresses through. The
domain component (after the @ sign) can only contain a-zA-Z0-9\.\-
miguel