Formerly tricycle/elm-email. Search finds this package by either name.
Parses email addresses safely
A demo can be found on: https://bellroy.github.io/elm-email/
Validating email addresses using Regex is a pain.
So far I personally have never found the one Regex to rule them all.
Having the ability to parse email addresses from String not only means they are validated, but also adds the ability to then add your own additional validations on parts of the email address that might be specific to your application or such.
import Email
parsedEmail: Maybe Email
parsedEmail =
Email.fromString "[email protected]"
-- Result
Just
{ localPart = "simple"
, tags = [ "tag" ]
, domain = "example"
, tld = [ "com", "au"]
}