Hi
I’m trying to evaluate an NSString to see if it fits a certain criteria, which contains wildcards in the form of one or more asterix characters.
Example:
NSString *filePath = @"file://Users/test/Desktop/file.txt";
NSString *matchCriteria = @"file://*/file.*";
I would like to see if filePath matches (fits?) matchCriteria, in this example it does.
Does anybody know how I can go about doing this?
Many thanks!
You can use NSRegularExpression.