07 Dec 2021   ruby


email = "luke.s.walker@example.com"
URI::MailTo::EMAIL_REGEXP.match?(email)
=> true

email = "luke.s.walker@@example.com"
URI::MailTo::EMAIL_REGEXP.match?(email)
=> false