• 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
Re: How do you remove specific characters from a NSString?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How do you remove specific characters from a NSString? (From: "Frederick C. Lee" <email@hidden>)

  • Prev by Date: How do you remove specific characters from a NSString?
  • Next by Date: Re: Trying to understand "real memory" usage
  • Previous by thread: How do you remove specific characters from a NSString?
  • Next by thread: saving a NSImage/NSImageView to file
  • Index(es):
    • Date
    • Thread