Re: extracting numbers from NSString
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