I need to extract emails contained into a NSString like this:
This is an email test@test.de and another one is this test2@test.com
I read about 2 solutions.. use Regular expression or range but i’m still confused.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are indeed plenty of similar questions on StackOverflow related to usage of regular expressions in Objective C. See this list, for instance.
However, it looks like this one, among others, may provide you with some additional help on your email related subject.
Please keep in mind that there’s no perfect simple-silver-bullet-regex for parsing emails. It’s a tricky business 🙂