Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parsing string data




On Dec 20, 2007, at 8:30 AM, C Sandeep wrote:

I have experience in perl/python, where I would have setup regular expressions to catch the headers.
However Im at loss on how to do the same in objective-c & cocoa. Any help is appreciated.


Unfortunately there is no comprehensive regex facility in Cocoa. That said, it seems that you should be able to accomplish what you want by using NSScanner. Another way to do it might be to include one of the many third party Cocoa / C regex libraries that exists (see: Google). What solution to choose would depend on your needs regarding: performance, licensing restrictions, unicode support, etc.

j o a r


_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >parsing string data (From: "C Sandeep" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.