• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Predicate format to match array of partial strings against other array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: [MEET] CocoaHeads April Meetings
  • Next by Date: Re: NSIsNilTransformerName exception
  • Previous by thread: [MEET] CocoaHeads April Meetings
  • Next by thread: Terminating subtasks reliably
  • Index(es):
    • Date
    • Thread