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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -