Extension function to check if a string is a valid email address.
The string to be checked.
true if the string matches the email pattern, false otherwise.
true
false