NSDataDetector dataDetectorWithTypes:NSTextCheckingTypeLink error:nil
<p>I have a 4465 characters String which contains Url links along with some junk.Here the problem is i am not able to separate all the URL links By using the following code from Junk :</p>

<p>NSDataDetector *linkDetector = [NSDataDetector dataDetectorWithTypes:NSTextCheckingTypeLink error:nil]; 
NSArray *matches = [linkDetector matchesInString:string options:0 range:NSMakeRange(0, [string length])];</p>

<p>I received final urlString with 83 characters,But it is not the full URL string.</p>

<p>Actual Characters in URL String is 117. Please suggest me is there any alternative way than this to separate URLs from Junk.</p>
