I am trying to set it so that I can validate an email with the following
regexp:

// Make an attempt to validate an email layout
if(!preg_match("/([.*-\w])@+([.-\w])+\.+([.-\w])/", $e_)){
        $error = "Not a valid email address";
                                                       }

Now this works great to prevent something like @$.com or @#.%343.com,

but at the same time, it does not allow:  @*.1.com

Is there a way to setup this regexp to validate wildcard domains, but
still keep the functionality to block "invalid" email characters?

Thanks
-J





-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to