+ 1
Email challenge : recogizing good and bad adresses.
1-Make a code accepting good emails and refusing the bad ones goodmails="tom.riddle@hogwarts.com ","tom.riddle+regexone@hogwarts.com","tom@hogwarts.eu.com","harry.potter.jr@hogwarts.com","hermione+regexone@hogwarts.com","accentuée@dom.fr" badmails="nodomain","tooshortdomain@c.com","space name@dot.com","fakedomaine@dom",".badname@dom.com" 2-Bonus 1 : extract the name (the part before any "+" or "@") 3-Bonus 2 : complete the goodmail and badmail lists to make the challenge even more difficult.
10 Respostas
+ 3
https://code.sololearn.com/c7sqhKJ7OCre/?ref=app
+ 3
Is it right ?âhttps://code.sololearn.com/cJb913XJAQ45/?ref=app
+ 1
Could explain a bit more I am confused đ
+ 1
Check again is it right now ? đ
0
Not bad but not exactly what was expected...And some of the good adresses are refused.
0
Same. Adresses with accents are refused - many Europeans wont be able to use your site !
0
Have your code go through the goodmails and badmails to show that first are accepted and second refused !
0
Create two lists or arrays - one with the bad mails, the other with the good mails. Using a loop go through both lists and display the adresses accepted by your code
0
Yes ! Now just use the lists i gave and add to them any additionnal good/bad you identified to show that you fulfilled the challenge !