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.
- 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 - Recipient name can start or end with a single dash (-) or underscore (_).
- 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.
- 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 - Domain name CANNOT start or end with a special character.
- Domain name can have maximum of 2 consecutive dashes (--) or underscores (__). Consecutive dots (..) are not allowed.
Sub-domain and Extension
- 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 - Dots separates the domain, sub-domains and extension.
- Sub-domains and extensions CANNOT start or end with a dot.
- 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
- 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})$)
- Length check:
[-_.]?[0-9a-zA-Z]([-_.]?[0-9a-zA-Z][-_.]?)*@[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*.[a-zA-Z]{2,6}$