note 18351 modified in function.eregi by maxim

From: Date: Tue, 06 Aug 2002 03:37:55 +0000
Subject: note 18351 modified in function.eregi by maxim
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-34373@lists.php.net to get a copy of this message
Looking for a regular expression that will validate email addresses, including those with the new TLD's? Here it is: eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@ ([0-9a-z](-?[0-9a-z])*\.)+[a-z]{2}([zmuvtg]|fo|me)?$",$email); Note: The line is wrapped! --was-- Looking for a regular expression that will validate emailaddresses, including those with the new TLD's? Here it is: eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@ ([0-9a-z](-?[0-9a-z])*\.)+[a-z]{2}([zmuvtg]|fo|me)?$",$email); Note: The line is wrapped! http://www.php.net/manual/en/function.eregi.php

« previous php.notes (#34373) next »