Re: Advice needed about regex
Re: Advice needed about regex
- Subject: Re: Advice needed about regex
- From: Karl Kuehn <email@hidden>
- Date: Fri, 24 Oct 2003 08:21:58 -0400
I have not really used them much, but there are is the
OFRegularExpression class from the OmniGroup that sounds like just what
you are looking for:
http://www.omnigroup.com/developer/sourcecode/
Karl Kuehn
email@hidden
PS.. if your needs are complex enough, then embedding perl might
actually pay off. The perl regular expression system is very fast, and
generally regarded as the best implementation out there (it is what
everyone copies nowadays).
On Thursday, October 23, 2003, at 03:41 PM, Thomas Lachand-Robert wrote:
I need to handle a large number of regular expressions in a new Cocoa
project, so I could use some advice on the best library to use on
Jaguar (and eventually Panther). I need some advanced features like
back-references, lookahead, etc., and I particularly need to handle
UTF8 strings. So I can't use most basic implementations for regex. So
far I found three large libraries, so if you have some details or
experiences about them I'm interested:
- "regex" is isntalled by default on Mac OS X, but doesn't seem to
handle UTF8: I don't know for sure, since the documentation (man page)
is very sparse and confuse. Also it's an alpha version, so is it
reliable?
- "pcre" is a well-known library, available via Fink. It does handle
UTF8, but not the Unicode classes. Good documentation, but I don't
know the performances.
- "perlembed" is also installed by default on Mac OS X, but looks
complicated to use; and I don't really need the power of Perl, only
regexes. Also I'm not sure if the interpreter will hurt the
performances.
Also does anyone know if there are some nice Cocoa wrappers for all
these C libraries?
_______________________________________________
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.