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

To be honest, ^.+@.+$ is probably all you need, along with a confirmation email.


A simpler, yet equivalent regex : .@.

Also good: [^@]@[^@]


Addresses can contain multiple @s legally, though, right?




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: