Hello
I have a string like this:
Results for: 123D12
2010
2009
2008
2007
2006
YEAR: 2006 WEEK: 2 PRODIDNUM: 37911
ACCESSKEY: FA3540B52F
2005
2004
YEAR: 2004 WEEK: 22 PRODIDNUM: 46178
ACCESSKEY: 58B2509373
and I want to spot the ACCESSKEY to help me get the hexadecimal(in this case are FA3540B52F and 58B2509373).
The issue is that when I use rangeOfString to get the accesskey it stops only to the first one! This is my code:
if ([strippedString rangeOfString:@"ACCESSKEY"].location != NSNotFound ) {
NSUInteger int1=[strippedString rangeOfString:@"ACCESSKEY"].location;
NSString *finssid = [strippedString substringWithRange:NSMakeRange(int1+11,10)];
NSLog(@"Output = Found it %d \n",int1);
NSLog(@"Output =%@ \n \n",finssid);
}
What I am doing wrong here?
Try this:
`