validEmail

private fun validEmail(email: String): Boolean

Checks if the given string is a valid email address.

Return

true if the given string is a valid email address; false, otherwise.

Parameters

email

string to be checked for validity as an email address