Parse common RFC 5322 mailbox forms into display name, local part, and domain.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Mailbox text is separated only at delimiters outside quoted strings and angle-bracket address parts, then common name-address forms are split into display name and addr-spec fields. A conservative dot-atom check reports ordinary addresses without pretending to implement every obsolete RFC grammar.
Jane Doe <jane.doe@example.com> "Support Team" <support@example.com> admin@example.com (Site Admin)
Original Name Email Local Domain Valid ------------------------------------ ------------ -------------------- -------- ----------- ----- Jane Doe <jane.doe@example.com> Jane Doe jane.doe@example.com jane.doe example.com yes "Support Team" <support@example.com> Support Team support@example.com support example.com yes admin@example.com (Site Admin) Site Admin admin@example.com admin example.com yes
Address-book imports, From-header display, and contact migrations parse mailboxes.