Forum : Plz help in the below queries..I tried but could not solve...
Brief description  about Online courses   join in Online courses
View Sweety  Agarwal 's Profile

Plz help in the below queries..I tried but could not solve...

1)Write a php program using regular expression to check whether the email address entered by user is in valid format.
2)Create an array “this a test”, search for “test” in this string using preg_grep function.
Asked by Sweety Agarwal | Jan 5, 2011 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
function ValidateEmailAddress($email)

{
$Syntax='#^[w.-]+@[w.-]+.[a-zA-Z]{2,5}$#';
if(preg_match($Syntaxe,$email))
return true;
else
return false;
}

Jan 6, 2011