• 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: extracting numbers from NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: extracting numbers from NSString


  • Subject: Re: extracting numbers from NSString
  • From: Koen van der Drift <email@hidden>
  • Date: Wed, 1 Feb 2006 06:58:34 -0500


On Feb 1, 2006, at 6:42 AM, Hamish Allan wrote:

NSMutableString *workingString = [[originalString stringByTrimmingCharactersInSet:
[[NSCharacterSet decimalDigitCharacterSet] invertedSet]] mutableCopy];
[workingString replaceOccurencesOfString:@"." withString:@""
options:0 range:NSMakeRange(0, [workingString length])];
NSArray *result = [workingString componentsSeparatedByString:@" "];
[workingString release];


Thanks!

- Koen.
_______________________________________________
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: 
 >Re: extracting numbers from NSString (From: Hamish Allan <email@hidden>)

  • Prev by Date: Re: extracting numbers from NSString
  • Next by Date: Simple but fundamental question
  • Previous by thread: Re: extracting numbers from NSString
  • Next by thread: Simple but fundamental question
  • Index(es):
    • Date
    • Thread