Email Validation in Swift.

static func isValidEmail(_ emailString:String) -> Bool {let emailRegEx = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}"let emailTest = NSPredicate(format:"SELF MATCHES %@", emailRegEx)return emailTest.evaluate(with: emailString)}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store