|
Posted by Jochem Maas on 10/04/97 11:10
Richard Lynch wrote:
....
> First, you should be aware that your RegEx is wrong.
>
> I know it's wrong, because the CORRECT Regex is 3 *PAGES* long in the
> camel book.
3 pages? does any one use it? is it even feasible to use it?
>
> That said, maybe this will catch *some* invalid email addresses, and not
> raise any false positives on valid email addresses...
>
> Though it sure looks to me like it's gonna complain about *MY* email
> address, and then I'll never visit your site again.
upon hearing that I had to check whether the regexp I generally use to
check addrs is washed up against your email addr... I can sleep
a little sounder... it does:
php -r '
var_dump(preg_match(
"#^(([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@(([0-9a-zA-Z])+([-\w]*[0-9a-zA-Z])*\.)+[a-zA-Z]{2,9}))$#",
"ceo@l-i-e.com"));
Navigation:
[Reply to this message]
|