I'm making an iPhone app, and I need to do a search-and-replace regex on a string. I've tried OmniFoundation, RegexKit, ObjPCRE, and many other third-party regex libraries, and none of them work for me. Omni results in dozens of errors when I compile, RegexKit results in one error ("cannot find Cocoa/Cocoa.h"), and ObjPCRE results in the following three errors:
If you know how to get any of these regex libraries working on the iPhone, I would be grateful for the help.
"_pcre_free", referenced from:
_pcre_free$non_lazy_ptr in objpcre.o
"_pcre_compile", referenced from:
-[ObjPCRE compileWithPattern:andOptions:] in objpcre.o
"_pcre_exec", referenced from:
-[ObjPCRE regexMatchesptions:startOffset:error:] in objpcre.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
If you know how to get any of these regex libraries working on the iPhone, I would be grateful for the help.