- Evaluate/compare NSString with wildcards?
- NSString *filePath = @"file://Users/test/Desktop/file.txt";
- NSString *matchCriteria = @"file://*/file.*";
- NSString *filePath = @"file://Users/test/Desktop/file.txt";
- NSString *matchCriteria = @"file://*/file.*";
- NSPredicate *pred = [NSPredicate predicateWithFormat:@"self LIKE %@", matchCriteria];
- BOOL filePathMatches = [pred evaluateWithObject:filePath];