5

Why isn't NSRegularExpression included in foundtion.framework for Mac osx, as it is for iOS?

vikingosegundo
  • 52,040
  • 14
  • 137
  • 178
ron
  • 59
  • 2

4 Answers4

5

I'd be very surprised if NSRegularExpression didn't make an appearance in 10.7, but you have to bear in mind that it was new in iOS release 4, which is a fairly recent release.

As such, I suspect it'll become part of the standard Mac OS foundation once it's slightly more mature.

John Parker
  • 54,048
  • 11
  • 129
  • 129
2

NSRegularExpression is included in Foundation in the newly-released OSX 10.7 :)

Catfish_Man
  • 41,261
  • 11
  • 67
  • 84
1

Until 10.7 arrives you can use CocoaOniguruma

neoneye
  • 50,398
  • 25
  • 166
  • 151
0

I miss real regex, too. However there is a similar functionality:

NSPredicate

and you may want to check out a related Stackoverflow thread.

Community
  • 1
  • 1
Ivan Marinov
  • 2,737
  • 1
  • 25
  • 17