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
You should use the function filter_vars() to validate your input instead of your own regexp.
filter_vars()
Example:
filter_var('bob@example.com', FILTER_VALIDATE_EMAIL)
More info in the documentation : http://php.net/manual/en/function.filter-var.php