Alex Rivera | Logout

Regular expressions in an Objective-C Cocoa application

Asked 2009-01-07T21:18:54.507
173

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?

Edit
Report

1 Answer

141

I noticed that as of iOS 4.0 Apple provides a NSRegularExpression class. Additionally, as of 10.7, the class is available under OS X.

answered 2010-08-24T07:56:14.680

Your Answer