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
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