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
I got here looking for a solution and the answer presented by Wayne Whitty do the job, indeed.
BTW, I think it is good to mention that filter_var function is not RFC5321 compliant. Altought the docs does not say it is, some RFC5321 valid email address will be flagged as invalid by this function, like:
As presented by this comment http://php.net/manual/pt_BR/function.filter-var.php#112492