Like is pretty simple, does it seem to support only? and * I think it's kind of like old-school wildcards.
But I want to do this: find all words starting with a given range of characters ... for example, aj.
So, I found it to find all words starting with the letter j:
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"Name LIKE 'j*'"];
However, I can’t figure out how to combine all words starting with a certain range, for example aj: "Name LIKE" [aj] * '"does not work.
any ideas how i could achieve this? Or my only way to do something like: "Name LIKE 'a *' OR name LIKE 'b *' OR name LIKE 'c *' OR name LIKE 'd *' ..." because that it would be unsuccessful ...
Thank!!!
source
share