I use: Code: NSURL *url = [NSURL URLWithString:@"http://www.myservername.org/file.html"]; self.content = [NSString stringWithContentsOfURL:url]; This returns all of the text, and pretty much everything in it. If the user has stored their name in the app, it scans the text in self.content for a match. If it has a match, it gives the user a message in a uialertview. I would like to provide more details about why their name is in the document, but am unsure about how to do this. As I control the document, I can format it any way I like. I was thinking about having only 1 name per line, and having the alertview show the entire line. How could I go about scanning for a match with the NSUserDefaults for their name, and return everything else on that same line between the line breaks?