email top-level constant
Regex
const email
Reduced version of a RFC 5322 email regex from https://www.regular-expressions.info/email.html This regex omits IP addresses, double quotes and square brackets.
Implementation
const email = Regex(
"[a-z0-9!#\$%&'*+/=?^_‘{|}~-]+(?:\\.[a-z0-9!#\$%&'*+/=?^_‘{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?");