bellroy/elm-email - version: 1.0.1

for more information visit the package's GitHub page

Package contains the following modules:

elm-email

Parses email addresses safely

Demo

A demo can be found on: https://bellroy.github.io/elm-email/

Motivation

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.

example

```elm import Email

parsedEmail: Maybe Email parsedEmail = Email.fromString "simple+tag@example.com.au"

-- Result

Just { localPart = "simple" , tags = [ "tag" ] , domain = "example" , tld = [ "com", "au"] }

```