note 15035 deleted from function.getmxrr by jimw

From: Date: Fri, 14 Dec 2001 20:33:13 +0000
Subject: note 15035 deleted from function.getmxrr by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22754@lists.php.net to get a copy of this message
I think the regexp's above should in fact read: eregi("^[0-9a-z_]([_\.-]?[0-9a-z])*@[0-9a-z][0-9a-z\.-]*\.[a-z]{2,4}\.?$", $address) A literal '.' must be preceded with a backslash (otherwise interpreted as "match any single char"), and to match a literal '-' place it last in the list.

« previous php.notes (#22754) next »