note 40342 deleted from function.ereg by nlopess

From: Date: Thu, 25 Mar 2004 14:32:52 +0000
Subject: note 40342 deleted from function.ereg by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-67159@lists.php.net to get a copy of this message
Note Submitter: belar@sevensouth.com ---- A slight improvement on the pattern mentioned in the previous comment: "^[a-zA-Z0-9_\.]+@[a-zA-Z0-9_\.]+\.[a-zA-Z]{2,4}$" This allows the user or the domain to contain numbers, but mandates that the username have at least one letter, plus it mandates that the last element of the domain name have 2-4 letters (.com, .org, .uk, .info, etc.).

« previous php.notes (#67159) next »