Xema.Format.email-question-mark
You're seeing just the function
email-question-mark
, go back to Xema.Format module for more information.
Specs
Checks if the string
is a valid email representation.
This function returns true
if the value is a string and is formatted as
defined by RFC 5322, false
otherwise.
The regular expression was taken from https://emailregex.com/.
Examples
iex> import Xema.Format
iex>
iex> email?("marin.musterman@germany.net")
true
iex> email?("Otto.Normalverbraucher")
false
iex> email?("Otto.Normal@Verbraucher.NET")
true