View Full Version : validation mail
urgido
10-22-2006, 06:47 AM
if (!eregi("^([a-z]|[0-9]|\.|-|_)+@([a-z]|[0-9]|\.|-|_)+\.([a-z]|[0-9]){2,4}$", $email))
{
//
}
How to change this for only validate @isp.com provider? Regards
vinyl-junkie
10-22-2006, 05:51 PM
This should do the trick:
if (!eregi("^([a-z]|[0-9]|\.|-|_)+@isp.com$", $email))
urgido
10-23-2006, 01:03 AM
very thanks.!
urgido
10-30-2006, 05:40 AM
Can somebody do the same function but with the next expression:
"^([-!#\$%&'*+./0-9=?A-Z^_`a-z{|}~])+@([-!#\$%&'*+/0-9=?A-Z^_`a-z{|}~]+\\.)+[a-zA-Z]{2,4}\$"
but also accepts äëïöÜ^ in the username(example: äë@isp.com). Regards
urgido
10-31-2006, 06:32 AM
:( ... :(
urgido
10-31-2006, 06:49 AM
solved!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.