Advertisement
ErolKZ

Untitled

Jan 7th, 2022
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <user> is a sequence of letters and digits, where '.', '-' and '_' can appear between them.
  2.  
  3. Examples of valid users: "stephan", "mike03", "s.johnson", "st_steward", "softuni-bulgaria", "12345".
  4.  
  5. Examples of invalid users: ''--123", ".....", "nakov_-", "_steve", ".info".
  6.  
  7. <host> is a sequence of at least two words, separated by dots '.'. Each word is sequence of letters and can have hyphens '-' between the letters.
  8.  
  9. Examples of hosts: "softuni.bg", "software-university.com", "intoprogramming.info", "mail.softuni.org".
  10.  
  11. Examples of invalid hosts: "helloworld", ".unknown.soft.", "invalid-host-", "invalid-".
  12.  
  13. Examples of valid emails: info@softuni-bulgaria.org, kiki@hotmail.co.uk, no-reply@github.com, s.peterson@mail.uu.net, info-bg@software-university.software.academy.
  14.  
  15. Examples of invalid emails: --123@gmail.com, …@mail.bg, .info@info.info, _steve@yahoo.cn, mike@helloworld, mike@.unknown.soft., s.johnson@invalid-.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement