isEmail

Extension function to check if a string is a valid email address.

Receiver

The string to be checked.

Return

true if the string matches the email pattern, false otherwise.