Advertisement
Guest User

Untitled

a guest
Aug 9th, 2016
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. val validEmails = Seq(
  2. "john@yahoo.com",
  3. "john-100@yahoo.com",
  4. "john.100@yahoo.com",
  5. "john111@john.com",
  6. "john-100@john.net",
  7. "john.100@john.com.au",
  8. "john@1.com",
  9. "john@gmail.com.com",
  10. "john+100@gmail.com",
  11. "john-100@yahoo-test.com",
  12. "shlomo@walla.co.il",
  13. "john@ec2-11-12-33-123.us-west-2.compute.amazonaws.com",
  14. "{test}bvplayer@bv.com",
  15. "kevin.d.o'bryan@aexp.com",
  16. "0.1.0EQj4t9cyocMyjDuJfUx74==@usaa.com",
  17. "prettyandsimple@example.com",
  18. "very.common@example.com",
  19. "disposable.style.email.with+symbol@example.com",
  20. "other.email-with-dash@example.com",
  21. "x@example.com",
  22. // "\"much.more unusual\"@example.com",
  23. "\"very.unusual.@.unusual.com\"@example.com",
  24. "\"very.(),:;<>[]\".VERY.\"very@\\ \"very\".unusual\"@strange.example.com",
  25. "example-indeed@strange-example.com",
  26. // "admin@mailserver1",
  27. "#!$%&'*+-/=?^_`{}|~@example.org",
  28. // "\"()<>[]:,;@\\\"!#$%&'-/=?^_`{}| ~.a\"@example.org",
  29. // "\" \"@example.org",
  30. // "example@localhost",
  31. "example@s.solutions"
  32. // "user@com",
  33. // "user@localserver",
  34. // "user@[IPv6:2001:db8::1]"
  35. )
  36.  
  37. val invalidEmails = Seq(
  38. null,
  39. "",
  40. " a ",
  41. "john",
  42. "john@.com.my",
  43. // "john123@gmail.a",
  44. "john123@.com",
  45. "john123@.com.com",
  46. // ".john@john.com",
  47. // "john()*@gmail.com",
  48. "john@%*.com",
  49. // "john..2002@gmail.com",
  50. "john.@gmail.com",
  51. // "john@john@gmail.com",
  52. // "john@gmail.com.1a",
  53. "Abc.example.com",
  54. // "A@b@c@example.com",
  55. // "a\"b(c)d,e:f;g<h>i[j\\k]l@example.com",
  56. // "just\"not\"right@example.com",
  57. // "this is\"not\\allowed@example.com",
  58. // "this\\ still\\\"not\\\\allowed@example.com",
  59. // "john..doe@example.com",
  60. "john.doe@example..com"
  61. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement