...

View Full Version : validate email with yahoo.com isp



urgido
09-02-2006, 09:53 AM
I have this code:

if ( !strcmp($Email,$Email2) && (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,4}$", $Email) || db_arr("SELECT ID FROM users WHERE UPPER(email) = UPPER('$Email')")) )


I want validation only for yahoo.com addresses. Regards

Mwnciau
09-02-2006, 11:59 AM
'/[_\.0-9a-z-]+@yahoo\.com/'

I think.. not too good at regex :rolleyes:

urgido
09-03-2006, 03:27 AM
mmm why not work?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum