Quantcast
Channel: Everyday I'm coding » cocoa
Viewing all articles
Browse latest Browse all 10

Regular expressions in an Objective-C Cocoa application

$
0
0

Initial Googling indicates that there’s no built-in way to do regular expressions in an Objective-C Cocoa application.

So four questions:

  1. Is that really true?

  2. Are you kidding me?

  3. Ok, then is there a nice open-source library you recommend?

  4. What are ways to get close enough without importing a library, perhaps with the NSScanner class?


Solution:

I noticed that as of iOS 4.0 Apple provides a NSRegularExpression class:

http://developer.apple.com/iphone/library/documentation/Foundation/Reference/NSRegularExpression_Class/Reference/Reference.html


Viewing all articles
Browse latest Browse all 10

Trending Articles