Re: How do you remove specific characters from a NSString?
Re: How do you remove specific characters from a NSString?
- Subject: Re: How do you remove specific characters from a NSString?
- From: James Bucanek <email@hidden>
- Date: Sat, 12 Mar 2005 10:19:14 -0700
Frederick C. Lee wrote on Saturday, March 12, 2005:
>Scenario:
>Input: @"This is a quoted word: "Hello"." The Result: @"This is a
>quoted word: Hello."
>
>Question: How can I remove the double-quotes around 'Hello'? (or
>any specific character for that matter).
Change your NSString into an NSMutableString, then use replaceCharactersInRange:withString: or replaceOccurrencesOfString:withString:options:range:.
--
James Bucanek <mailto:email@hidden>
_______________________________________________
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