email_ex v0.1.0 EmailEx

E-mail parser and validation.

Link to this section Summary

Functions

Parse an address string.

Parse an address string with a custom parser.

Parse an address, and if fail, throws an exception

Parse an address string with a custom parser.

Check if an address is valid.

Link to this section Functions

Link to this function

parse(str)

(since 0.1.0)
parse(String.t()) :: {:ok, [String.t()]} | {:error, String.t() | term()}

Parse an address string.

Link to this function

parse(str, mod)

(since 0.2.1)
parse(String.t(), Module.t()) ::
  {:ok, [String.t()]} | {:error, String.t() | term()}

Parse an address string with a custom parser.

Link to this function

parse!(str)

(since 0.2.1)
parse!(String.t()) :: {:ok, [String.t()]}

Parse an address, and if fail, throws an exception

Link to this function

parse!(str, mod)

(since 0.2.1)
parse!(String.t(), Module.t()) :: {:ok, [String.t()]}

Parse an address string with a custom parser.

Link to this function

valid?(email)

(since 0.1.0)
valid?(String.t()) :: true | false

Check if an address is valid.