From catalog/rfc5322-email.abnf rule: domain

Definition

domain = dot-atom / domain-literal

dot-atom = 1*atext *( "." 1*atext )

atext = ALPHA / DIGIT / "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "/" / "=" / "?" / "^" / "_" / "`" / "{" / "|" / "}" / "~"

domain-literal = "[" *( dtext ) "]"

dtext = %d33-90 / %d94-126

    

Info

Rulename
domain
Dependencies
dtext, domain-literal, ALPHA, DIGIT, atext, dot-atom, domain
Used Builtins
ALPHA, DIGIT

Alphabet

Translations

Railroad Diagram

domain dot-atom domain-literal

ECMAScript/JavaScript Regular Expression Literal

/^(\[[!-Z\^-~]*\]|[!#-'*-+\-/-9=?A-Z\^-~](\.?[!#-'*-+\-/-9=?A-Z\^-~])*)$/

Swift Regular Expression

\[[!-Z\^-~]*\]|[!#-'*-+\-/-9=?A-Z\^-~](\.?[!#-'*-+\-/-9=?A-Z\^-~])*

POSIX Extended Regular Expression

\[[!-Z\^-~]*\]|[!#-'*-+\-/-9=?A-Z\^-~](\.?[!#-'*-+\-/-9=?A-Z\^-~])*