views:

189

answers:

5

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.

+2  A: 

How about RegexKit?

Jonathan Feinberg
I was hoping for something more than a 0.6 beta. If this is the only alternative to use predicates, then I will use RegexKit.
kiamlaluno
+3  A: 

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.

Bryan McLemore
RegexKitLite requires to link with a library that ships with Mac OS X, but the operation is not officially supported. The only official way to link with the ICU library is to use the Spotlight predicates, which was what I was trying to avoid.It seems the only solution is to use RegexKit, also because I need to create a Automator action.
kiamlaluno
While this is true, I also tried to use RegexKit first. Due to the additional file size that it caused and some issues I had developing against it I choose the unsupported but pragmatic method.
Bryan McLemore
+1  A: 

There's also OgreKit, used by TextMate, and apparently SubEthaEdit and some other heavy-hitters

RyanWilcox
+1  A: 

In addition to RegexKit and OgreKit, there are a couple other options here: http://cocoaheads.byu.edu/resources/regex

Dave DeLong
A: 

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.

kiamlaluno