Skip navigation.
 
mlRe: peekaboo, icu
FROM : j o a r
DATE : Fri Jul 14 23:59:52 2006

On 14 jul 2006, at 19.46, Matt Neuburg wrote:

> Various parts of Cocoa use ICU to do regular expression searching, 
> so it
> must be built in; so is there a way I can just use it directly to 
> do a find
> or find-and-replace in an NSString? Thx - m.


I failed in my attempt to use the ICU library that ships with Mac OS 
X: /usr/lib/libicucore.dylib.
It's quite possible that you could make it work even if I couldn't...

There are a bunch of Cocoa regexp facilities available:

   OgreKit
   AGRexex
   MOKit
   OFRegularExpression
   NSPredicate

You will most likely find one that can provide the functionality 
you're looking for.

I didn't find any of them to my liking (various combinations of 
problems: not universal, inadequate performance or awkward API), and 
so made my own wrapper for PCRE. It's very bare-bones, but you can 
have a copy of it if you would want to attempt to extend it.

j o a r

Related mailsAuthorDate
mlpeekaboo, icu Matt Neuburg Jul 14, 19:46
mlRe: peekaboo, icu j o a r Jul 14, 23:59
mlRe: peekaboo, icu Deborah Goldsmith Jul 15, 02:10
mlRe: peekaboo, icu Matt Neuburg Jul 15, 03:32