This NSString category is nothing more than a convenient wrapper for Matt Gallagher's implementation of RFC 2822 verification.
NSString *email = @"no@thanks.com";
if ([email isValidEmail]) {
NSLog(@"%@ looks totally spamable.");
} else {
NSLog(@"This isn't even an email address.");
}
- My "work" — MIT
- Matt's code — zlib-style