Is there a library compatible with PCRE that can be used on Mac OS X 10.6, and which is Unicode compatible?
I was thinking to use the predicates, but it is a little excessive when the application is not already using Spotlight predicates.
Is there a library compatible with PCRE that can be used on Mac OS X 10.6, and which is Unicode compatible?
I was thinking to use the predicates, but it is a little excessive when the application is not already using Spotlight predicates.
I'd recommend RegexKitLite. While it's not quiet as full featured as the full RegexKit it's more actively developed, and is usable on both the iphone and desktop apps.
It's also a very very small addition to your app not having much impact on the end executable size.
There's also OgreKit, used by TextMate, and apparently SubEthaEdit and some other heavy-hitters
In addition to RegexKit and OgreKit, there are a couple other options here: http://cocoaheads.byu.edu/resources/regex
As alternative to the frameworks already reported, there is also OFRegularExpression
, which is part of OmniFoundation. As it is part of a bigger framework, it could not be the right choice, or it should be considered if other parts of the framework are required.