+ 1
how can i make a regular expression to validate an email? using while
5 Respuestas
+ 1
^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$
+ 4
we generally use a simpler regex for simple client side validation for emails, as shared by Calviղ. 
But in reality the true regex for email validation is super big,  long ago I tried to do it,  I ended up being depressed :-( 
I ll give it a try again today,  Here's the code if you are interested,  with valid and invalid test cases
https://code.sololearn.com/cNvkmeUIC10s/?ref=app
https://code.sololearn.com/cNvkmeUIC10s/?ref=app
+ 1
thank  u  very  very  very  much Morpheus!!! I really appreciate it
0
for what  country is that?
0
for all emails



