Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In PHP you have default functions that can verify emails :

filter_var('bob@example.com', FILTER_VALIDATE_EMAIL)

more info here : http://php.net/manual/en/function.filter-var.php



And that uses a giant regex.


At least it's a standardized way of doing it. If it turns out to contain an error, it can be fixed for all websites with an update.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: