This article will explain the formatting rule of E-mail address when adding User in BioStar2.


TABLE OF CONTENTS


Email Structure

A valid email address can be a maximum of 320 characters and has four parts:

  • Recipient name
  • @ symbol
  • Domain name
  • Extension


Recipient Name

The recipient name represents an email mailbox that belongs to the user.

  1. Recipient name may be a maximum of 86 characters long and consist of:
    ・special characters such as -(hyphen), _ (underscore), and .(dot)
    ・numbers (0~9)
    ・alphabet (A~Z, a~z), case-sensitive
  2. Recipient name can start or end with a single dash (-) or underscore (_).
  3. Recipient name can have maximum of 2 consecutive dashes (--) or underscores (__). Consecutive dots (..) are not allowed.


Domain Name

The domain name is a string of letters and digits that defines a space on the Internet owned and controlled by a specific mailbox provider or organization.

  1. Domain name may be a maximum of 60 characters long and consist of:
    ・special characters such as -(hyphen), _ (underscore), and .(dot)
    ・numbers (0~9)
    ・alphabet (A~Z, a~z), case-sensitive
  2. Domain name CANNOT start or end with a special character.
  3. Domain name can have maximum of 2 consecutive dashes (--) or underscores (__). Consecutive dots (..) are not allowed.


Sub-domain and Extension

  1. Sub-Domain and Extension may be a maximum of 20 characters long and consist of:
    ・special characters such as -(hyphen), _ (underscore), and .(dot)
    ・numbers (0~9)
    ・alphabet (A~Z, a~z), case-sensitive
  2. Dots separates the domain, sub-domains and extension.
  3. Sub-domains and extensions CANNOT start or end with a dot.
  4. Extensions CANNOT end with a number.



There may be other rules that were not listed above. So please refer to below regular expression to check if your inputted email is valid.

Regular Expressions

  1. Formatting rules:
    ^([\w-]{1,86}(?:\.[\w-]+)*)@((?:[\w-]+\.)*[\w-]{1,60})\.(?:(?:[a-zA-Z]{2,20})$|(?:[a-zA-Z]{2,20}.\[a-zA-Z]{2,6})$)



  2. Length check:
    [-_.]?[0-9a-zA-Z]([-_.]?[0-9a-zA-Z][-_.]?)*@[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*.[a-zA-Z]{2,6}$