I have a lot of problems getting regular expressions working for my simple Cocoa application. I know that many people use RegexpKit Lite, but because it has an undocumented API call (to use the ICU library), I am pretty sure my app would get rejected when submitted to the Mac App Store (I know others have been rejected for using ICU in the iOS App Store).
My next step was to integrate with the full RegExpKit framework. While this works without issue in my application, it doesn’t work in my unit tests. I have tried a lot of steps here – but, I still keep getting ‘library not loaded’ for the framework, even though there is a copy files build phase that puts the framework in the correct place. In addition, I spent quite a bit of time debugging another issue with the RegExpKit framework (dealing with the restrict qualifiers within the framework). Long story short – I don’t think the RegexpKit framework is a good choice for me.
In reality, I just need a simple solution for regular expressions (speed isn’t a primary concern as this will be used sparingly) that can be used within my unit tests.
Ideas?
[Edited post-NDA]
One option is to wait for Lion and then require it. Then you can use NSRegularExpression.