I am pretty much new with regular expression. I am developing a project in PHP and i need to validate email address. After searching in this site and google i found the fol
try this regx it would work fine
/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/
or php filter filter_var
filter_var($email, FILTER_VALIDATE_EMAIL)
like
if(filter_var($email, FILTER_VALIDATE_EMAIL)) { //yup its valid email }