Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val validEmails = Seq(
- "john@yahoo.com",
- "john-100@yahoo.com",
- "john.100@yahoo.com",
- "john111@john.com",
- "john-100@john.net",
- "john.100@john.com.au",
- "john@1.com",
- "john@gmail.com.com",
- "john+100@gmail.com",
- "john-100@yahoo-test.com",
- "shlomo@walla.co.il",
- "john@ec2-11-12-33-123.us-west-2.compute.amazonaws.com",
- "{test}bvplayer@bv.com",
- "kevin.d.o'bryan@aexp.com",
- "0.1.0EQj4t9cyocMyjDuJfUx74==@usaa.com",
- "prettyandsimple@example.com",
- "very.common@example.com",
- "disposable.style.email.with+symbol@example.com",
- "other.email-with-dash@example.com",
- "x@example.com",
- // "\"much.more unusual\"@example.com",
- "\"very.unusual.@.unusual.com\"@example.com",
- "\"very.(),:;<>[]\".VERY.\"very@\\ \"very\".unusual\"@strange.example.com",
- "example-indeed@strange-example.com",
- // "admin@mailserver1",
- "#!$%&'*+-/=?^_`{}|~@example.org",
- // "\"()<>[]:,;@\\\"!#$%&'-/=?^_`{}| ~.a\"@example.org",
- // "\" \"@example.org",
- // "example@localhost",
- "example@s.solutions"
- // "user@com",
- // "user@localserver",
- // "user@[IPv6:2001:db8::1]"
- )
- val invalidEmails = Seq(
- null,
- "",
- " a ",
- "john",
- "john@.com.my",
- // "john123@gmail.a",
- "john123@.com",
- "john123@.com.com",
- // ".john@john.com",
- // "john()*@gmail.com",
- "john@%*.com",
- // "john..2002@gmail.com",
- "john.@gmail.com",
- // "john@john@gmail.com",
- // "john@gmail.com.1a",
- "Abc.example.com",
- // "A@b@c@example.com",
- // "a\"b(c)d,e:f;g<h>i[j\\k]l@example.com",
- // "just\"not\"right@example.com",
- // "this is\"not\\allowed@example.com",
- // "this\\ still\\\"not\\\\allowed@example.com",
- // "john..doe@example.com",
- "john.doe@example..com"
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement