I have read lots of questions about email validation in javascript, and never found a really satisfactory solution.
Example: Validate email address in JavaScript?
Problem is, most answers use regex, and the regex required for email is too complex to understand.
I have read that the best way to validate emails, is to use a state machine to match the spec. I can't imagine this is too complex, but can't find any examples online of non-regex email validation in javascript. Are there any out there?