8 ms·
> Regular Expressions are a really powerful tool, and the absence of support for regular expressions in the iPhone SDK seems to be a glaring omission. NSRegula
by masklinn 16y ago
> Regular Expressions are a really powerful tool, and the absence of support for regular expressions in the iPhone SDK seems to be a glaring omission.
NSRegularExpression was added to the iOS SDK in 4.0.
Not available if you still aim to be 3.x-compatible (for iPhones and first-gen Touch), but 4.0 has been out for 9 months now, I think it's time to bury this one (note: you could still find NSRegularExpression insufficient or inferior to RKL, that's a different issue).
- steipete 16y agoThe Syntax for NSRegularExpression is really awful. Main reason why I stick with RegexKitLite.
- masklinn 16y agoSure, as I said you can find RegexKitLite superior for a variety of reasons, but that's different from the original complaint that the iOS SDK ships without regex support.
- jbrennan 16y agoIn fact, I believe this was available in iOS 3.2. But definitely on all devices as of 4.0.