I have a String with this content:
href=\"http://www.website.com/\" /> [...] [...]
I just want to get the central part of the string. Ho
This can be done more compactly:
NSRange end = [source rangeOfString:@"\" />"]; if (end.location != NSNotFound) { result = [source substringWithRange:NSMakeRange(6, end.location - 6)]; }