Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
-
10Dev28994yHtml forms have a email property, but beyond that you need a regex on the server for verification
-
Welcome to devRant. For future reference, this isn't a Q&A forum. Complain at shit and you'll do just fine
-
Flygger19814yThe only real way of validating them any longer, apart from the presence of an @ with a string before and a string with one or more dots after, is to send it a mail and see if it works...
-
You can basically do what the regex does manually.
Splice the parts into fragments and validate them each individually.
But I wouldn’t recommend it, since it can quickly go wrong, plus you HAVE to read the email spec like by line, otherwise it’s gonna be a shitty validator.
Also, keep in mind there are email alias like the google “+” suffix. You probably want to ban them, or validate against your db, too. -
Flygger19814y@iiii All domains (and IP addresses) have at least one dot in them, even without having subdomains ;)
-
Do minimum with input type email and maybe regex that it contains @. That is enough. On backend send confirm your email address email to that address. If you don't want certain email addresses there are black list available.
-
Flygger19814y@iiii more like an alias, also neither valid in emails or relevant to the subject ;)
-
I found the answers here in this guy blog - https://tutorialscamp.com/how-to-va...
-
Flygger19813yYou could also take a look at these arguments, and in general just the whole list of falsehoods ;)
https://github.com/kdeldycke/...
Related Rants
How To Validate Email Address In JavaScript?
I have been following this guide
But is there any other way i can validate email without using regular expression?
question
java
javascript