note 24162 added to function.ereg

From: Date: Thu, 08 Aug 2002 10:17:38 +0000
Subject: note 24162 added to function.ereg
Groups: php.notes 
Request: Send a blank email to php-notes+get-34520@lists.php.net to get a copy of this message
use ^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)| (([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$ for perfect email validation i actually found this on an asp site... but the syntax for regular expressions is all the same... they also have a reg exp tester script.... http://www.regexlib.com very very very useful -- http://www.php.net/manual/en/function.ereg.php http://master.php.net/manage/user-notes.php?action=edit+24162 http://master.php.net/manage/user-notes.php?action=delete+24162 http://master.php.net/manage/user-notes.php?action=reject+24162

« previous php.notes (#34520) next »