Predicate format to match array of partial strings against other array
Predicate format to match array of partial strings against other array
- Subject: Predicate format to match array of partial strings against other array
- From: fabian <email@hidden>
- Date: Tue, 30 Mar 2010 21:23:59 +0200
ANY {Name,Age,Gender} LIKE[cd] "Mar*"
returns Mary, Martin, etc.
ANY {Name,Age,Gender} IN[cd] {"Mary","Martin"}
also works fine, but doesn't take wildcards, as all array operators uses
direct object comparisons. How can I match an array of partial strings, e.g.
{"Mar*", "Li*"}, against the first array? I'm looking for the elegant
version of:
(ANY {Name,Age,Gender} LIKE "Mar*") OR (ANY {Name,Age,Gender} LIKE "Li*")
Thanks.
--
- F
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden