iphone - Evaluate/compare NSString with wildcards? -
hi i'm trying evaluate nsstring see if fits criteria, contains wildcards in form of 1 or more asterix characters.
example:
nsstring *filepath = @"file://users/test/desktop/file.txt"; nsstring *matchcriteria = @"file://*/file.*";
i see if filepath
matches (fits?) matchcriteria
, in example does. know how can go doing this?
many thanks!
you can use nsregularexpression.
Comments
Post a Comment