From catalog/rfc5322-email.abnf rule: local-part

Definition

local-part = dot-atom / quoted-string

quoted-string = DQUOTE *qcontent DQUOTE

qcontent = qtext / quoted-pair

quoted-pair = "\" ( VCHAR / WSP )

qtext = %d33 / %d35-91 / %d93-126

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

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

    

Info

Rulename
local-part
Dependencies
ALPHA, DIGIT, atext, dot-atom, DQUOTE, qtext, VCHAR, WSP, quoted-pair, qcontent, quoted-string, local-part
Used Builtins
ALPHA, DIGIT, DQUOTE, VCHAR, WSP

Alphabet

Translations

Railroad Diagram

local-part dot-atom quoted-string

ECMAScript/JavaScript Regular Expression Literal

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

Swift Regular Expression

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

POSIX Extended Regular Expression

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