Friday 26 September 2003 5:42:29 am
ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $address) ); this allows quite everything, @ and . given!
I think that comes much closer (and simpler!), but likely to be improved. Comments welcome (preg): ^[a-z0-9][-._a-z0-9]*@(?:[a-z0-9][-_a-z0-9]*\.)+[a-z]{2,4}$
|