4 lines
165 B
Objective-C
4 lines
165 B
Objective-C
NSString *str = @"I am a string";
|
|
if ([str rangeOfString:@"string$" options:NSRegularExpressionSearch].location != NSNotFound) {
|
|
NSLog(@"Ends with 'string'");
|
|
}
|