• 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: Dividing Strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Dividing Strings (From: Alex Rice <email@hidden>)

  • Prev by Date: Re: Dividing Strings
  • Next by Date: Newbie question- NSLayoutManager SetShowsInvisibleCharacters
  • Previous by thread: Re: Dividing Strings
  • Next by thread: Re: Dividing Strings
  • Index(es):
    • Date
    • Thread