How to check match with more keywords with NSPredicate

41 views Asked by At

Is it a way to create a NSPredicate which checks not only one keyword match, but more keywords?

I know "CONTAINS[cd] %@", var operation which allow to filter like this:

string: "aaa bbb ccc ddd", keyword: "aaa" -> this will match,

but how to filter this:

string: "aaa bbb ccc ddd", keywords: "aaa ccc"

1

There are 1 answers

0
vks On BEST ANSWER

You probably need | or operator.

Something like aaa|ccc