• 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: Stripping out between chars in NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stripping out between chars in NSString


  • Subject: Re: Stripping out between chars in NSString
  • From: Jack Carbaugh <email@hidden>
  • Date: Fri, 14 Aug 2009 14:10:54 -0400

In cases such as this, i've used a combination of NSScanner as well as -stringReplacingOccurancesOfString.


On Aug 14, 2009, at 2:00 PM, Eric E. Dolecki wrote:

Is there a pretty easy way to strip out a section of a string based on 2
characters?
ie. "(#1 - 140/500) Title


I would like to strip out everything including the "(" and the ")"
characters, and then I'll strip out the leading space.

Thanks
_______________________________________________

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

_______________________________________________

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


References: 
 >Stripping out between chars in NSString (From: "Eric E. Dolecki" <email@hidden>)

  • Prev by Date: Stripping out between chars in NSString
  • Next by Date: Re: Multi-User DB That Talks to Core Data?
  • Previous by thread: Stripping out between chars in NSString
  • Next by thread: Title Bar of Key Window
  • Index(es):
    • Date
    • Thread