isEmail method

bool isEmail()

Return whether input matches regex of email.

Implementation

bool isEmail() {
  return matches(regexEmail);
}