- Joined
- Jan 4, 2011
- Messages
- 5
- Reaction score
- 0
- Points
- 1
- Location
- Canada
- Your Mac's Specs
- Macbook Pro 13" 2.44ghz 4GB 250GB
I am trying to compare multiple strings. I have tried isEqual and caseSensitiveCompare but they only work if they match completely. I would like to compare a string and the start of another string.
ex string1 = @"hello"
string2 = @"he"
I would like compare these and get a positive result.
ex string1 = @"hello"
string2 = @"he"
I would like compare these and get a positive result.