pub fn email(s: &str) -> bool
Expand description
Checks whether the given string is a valid email.
This function not allows IP addresses in the domain part (eg.: bob@[127.0.0.1]
).
ยงExample
if dator::email("bob@example.com") {
// bob@example.com is a valid email address
}
if !dator::email("bob@[0.0.0.0]") {
// bob@[0.0.0.0] is a valid email address
}