Richard Lynch <mailto:ceo@xxxxxxxxx> on Friday, March 11, 2005 10:12 AM said: >> I've built this little regular expression to test wether an e-mail >> address is valid or not: >> >> if(eregi >> ("^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$", >> $email)) > > 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. Speaking of that long regex... I seem to remember finding that in a ready made function somewhere. But I can't find it in any of my code and I couldn't find it on the internet(s) last time I checked. Do you happen to know where that can be had? Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php