searching for strings containing "
searching for strings containing "
- Subject: searching for strings containing "
- From: Koen van der Drift <email@hidden>
- Date: Mon, 26 Sep 2011 20:26:26 -0400
How do I use isEqualToString with strings that contain a " ?
The string I try to find is for instance: name= "foo" Type="bar"
So:
if ([myString isEqualToString: @"name= "foo" Type="bar"")
Gives an error because there are too many " symbols. I looked into replacing the " with ' by using stringByReplacingOccurrencesOfString:withString: , but that gives the same problem.
Thanks,
- Koen.
_______________________________________________
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