Re: Dividing Strings
Re: Dividing Strings
- Subject: Re: Dividing Strings
- From: Mike Shields <email@hidden>
- Date: Sun, 12 Jan 2003 22:44:44 -0700
On Sunday, January 12, 2003, at 10:32 PM, Alex Rice wrote:
On Sunday, January 12, 2003, at 10:13 PM, Chuck Rice wrote:
My question is, is there a better function to accomplish this, or
will I need to do the parsing the hard way with a loop, looking at
each character? Cocoa seems to have a really rich feature set, so I
thought there might be a better way. Any help would be appreciated. I
have spent a lot of time looking, but there is an awful lot of doc to
see. -Chuck-
AFAIK there is no actual regular expressions support in Cocoa, but the
next best thing is NSScanner, which you could definitely use to parse
the records.
Well not directly in Foundation, but Mike Ferris has MOKit
<
http://www.lorax.com/FreeStuff/MOKit.html> which does have
Unicode-aware regex support. If that doesn't work, then NSScanner would
probably be the next best thing to look at.
Mike
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.