View Source EmailTldValidator (EmailTldValidator v0.1.3)

Summary

Functions

Checks whether an email address matches a reasonably comprehensive regular expression and whether the TLD (Top-Level Domain) included in the hostname part of the address is included in the IANA alphabetic list of TLDs.

Functions

email_valid?(email)

Checks whether an email address matches a reasonably comprehensive regular expression and whether the TLD (Top-Level Domain) included in the hostname part of the address is included in the IANA alphabetic list of TLDs.

Examples

iex> EmailTldValidator.email_valid?("user@example.com")
true

iex> EmailTldValidator.email_valid?("user@example")
false

iex> EmailTldValidator.email_valid?("user@example.foobar")
false

regexp_validate(email)

tld_valid?(arg1)

tld_validate(email)