Skip navigation.
 
mlUsing wildcards in string comparison
FROM : jjoonathan
DATE : Sun Apr 10 22:06:39 2005

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

Related mailsAuthorDate
mlUsing wildcards in string comparison jjoonathan Apr 10, 22:06
mlRe: Using wildcards in string comparison Jiva DeVoe Apr 11, 07:58
mlRe: Using wildcards in string comparison Charilaos Skiadas Apr 11, 08:34
mlRe: Re: Using wildcards in string comparison jjoonathan Apr 11, 22:24
mlRe: Using wildcards in string comparison Charilaos Skiadas Apr 12, 01:27