checkEmailFormat

private fun checkEmailFormat(email: String): Boolean

Checks whether email is a valid email address.

This method will not check whether the email actually exists but it will check whether it is in right format. First, check whether email is blank. After this, check the email format by matching it with android.util.Patterns.EMAIL_ADDRESS.

Return

true if email matches the email format and false if not.

Parameters

email

email String provided by the user.