example,
javascript,
function validateEmail(email
Read Stop Validating Email Addresses With Complicated Regular Expressions.
As it says, this email :
"Look at all these spaces!"@example.com
is perfectly valid.
Conclusion :
/@/
is fine to check most user errorsSeriously, any attempt at solving the problem with a complex regex is doomed and usually keeps being worse with fixes