Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

OliverO

macrumors newbie
Original poster
Jul 15, 2007
1
0
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:
"_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 regexMatches:eek:ptions: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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.