• 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
Using wildcards in string comparison
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using wildcards in string comparison


  • Subject: Using wildcards in string comparison
  • From: jjoonathan <email@hidden>
  • Date: Sun, 10 Apr 2005 14:06:39 -0600

I am making an app which allows an array to be searched by a string which contains wildcards (the *, and ?, etc). I am currently using the isLike: method of NSString, but I ran into a problem. I want the search string to be able to contain [ and ] characters that are not part of the pattern. So, @"*[ABC]*" would match @"123[ABC]456", not @"123[A]456", @"123[B]456", or @"123[C]456". Any ideas? Is there another method which allows comparisons just by wildcards?

Thanks in advance,
jjoonathan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Using wildcards in string comparison
      • From: Jiva DeVoe <email@hidden>
  • Prev by Date: Re: Array Problems
  • Next by Date: Re: Array Problems
  • Previous by thread: Re: progress bar on sheet
  • Next by thread: Re: Using wildcards in string comparison
  • Index(es):
    • Date
    • Thread