Re: Is there a regular expression class for Objective C?
Re: Is there a regular expression class for Objective C?
- Subject: Re: Is there a regular expression class for Objective C?
- From: Brian Bergstrand <email@hidden>
- Date: Thu, 13 May 2004 11:16:32 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
PCRE <
http://www.pcre.org/> handles UTF-8, and it compiles cleanly on
OS X. Plus, it provides a BSD regex interface and expanded regex
operators (those from Perl).
./configure --enable-utf8
make
sudo make install
Then you can call regexec([str UTF8String]. ...)
HTH.
On May 13, 2004, at 10:16 AM, Nicko van Someren wrote:
>
Does anyone on this list know of a good regular expression class for
>
use from Objective-C? I know that I can link against the BSD regex
>
library but I'd prefer to have something that has a better
>
understanding of NSString objects and unicode characters. Otherwise I
>
have to spend time dealing with encoding issues and remapping unicode
>
chars in the expression into byte sets for regex. Any thoughts?
>
Brian Bergstrand <
http://www.bergstrand.org/brian/>, AIM: triryche206
PGP Key: <
http://www.bergstrand.org/brian/misc/public_key.txt>
For the skeptic there remains only one consolation: if there should be
such a thing as superhuman law it is administered with subhuman
inefficiency. - Eric Ambler
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3
iQA/AwUBQKORV3nR2Fu2x7aiEQImvwCeMa7fK62w5zBCArWkhJR3mslFIZoAoKAS
oewxbtAlVHgu1QxXjUv7SpIU
=9kiA
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.