Hi all i want extract the last part from string which is a four digit number \'03276\' i:e http://www.abc.com/news/read/welcome-new-gig/03276
http://www.abc.com/news/read/welcome-new-gig/03276
how can i
NSString *str = @"http://www.abc.com/news/read/welcome-new-gig/03276"; NSArray *arr = [str componentSeparatedBy:@"gig/"]; NSString *strSubStringDigNum = [arr objectAtIndex:1];
strSubStringDigNum will have the value 03276