5

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

vikingosegundo
  • 51,574
  • 14
  • 135
  • 174
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
  • 53,316
  • 11
  • 128
  • 128
2

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

Catfish_Man
  • 40,261
  • 11
  • 65
  • 83
1

Until 10.7 arrives you can use CocoaOniguruma

neoneye
  • 47,456
  • 24
  • 159
  • 149
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,697
  • 1
  • 23
  • 17