Obj PCRE on iPhone

I have been having fun with my ObjPCRE framework and the iPhone SDK.

Just drop the contents of this archive in your Xcode project and build.

The archive contains the debug libs, for the simulator and the release builds, for iPhone.

ObjPCRE iPhone Libraries

If you use ObjPCRE for iPhone or anywhere else, please comment.

Comments

Unknown said…
Great job: make regular expressions on iPhone as easy as if it were in php !

Anyway, a little bug: when the subject text is passed already encoded as an UTF-8 NSString, the matching may return unexpected results.

My workaround was to change the line 232
from:
subject = [text UTF8String];
to:
subject = [text cString];

This uses a deprecated message, but avoids double-encoding.
(Works only if you're sure to receive the "subject" as an UTF8 encoded string).

Popular posts from this blog

Python SUDS with Windows Authentication (SOAP)

Text Sherlock the OpenGrok alternative (Source Code Search Engine)

How to remove, update, or replace the WKWebView inputAccessoryView