Possible Duplicate:
Getting detected data from the UITextView
I have posted the same question yesterday but i haven’t got the desired replies so i am posting this question again with the more clarification .sorry for this .
I am working with the UITextView . I made UITextView to detect all i.e. links ,address, events and phone no. Its fine it is giving me desired output as follow:

Now my requirement is to save those phone no (123456) and email (abc@mail.com) into separate variable. Is there any provision or way to get the only detected text from the textview ?
Have a look at
NSDataDetector(available iOS 4.0+, OS X 10.7+)https://developer.apple.com/library/mac/#documentation/Foundation/Reference/NSDataDetector_Class/Reference/Reference.html
You should be able to get the text out of the
UITextViewas anNSString, then run it through anNSDataDetector. You should be able to find more information on Stack Overflow and around the web by searching forNSDataDetector.