I found this code in google:
func isEmail(email: String) -> Bool {
let emailRegx = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}"
let emailTest = NSPredicate(format: "SELF MATCHES %@", emailRegx)
return emailTest.evaluate(with: email)
}
but I want to change the emailRegx to ensure that the first two characters in an email address can not be a number or symbols