I am using the following code to check the validation of my email which is entered in the uitextfield. But it is returning true when I enter abcd@m.com.com it is not returning false.
NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}";
NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", emailRegex];
return [emailTest evaluateWithObject:email];
Anyone can suggest me ?