Re: Advice needed about regex
Re: Advice needed about regex
- Subject: Re: Advice needed about regex
- From: Jonathan Wight <email@hidden>
- Date: Thu, 23 Oct 2003 16:20:20 -0500
I have an Objective-C wrapper for the regex code used in TCL that supports
UTF8 and many advanced regex operations. Information on TCL's regex
functions are available here:
http://dev.scriptics.com/doc/howto/regexp81.html
I based the ObjC API (loosely) on Python's re module.
And my project file is available from
http://homepage.mac.com/jwight
(ToxicRegularExpressions).
Jon.
>
From: Thomas Lachand-Robert <email@hidden>
>
Date: Thu, 23 Oct 2003 21:41:17 +0200
>
To: email@hidden
>
Subject: Advice needed about regex
>
>
Hi all,
>
>
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?
>
>
Thanks for any advice,
>
>
Thomas Lachand-Robert
>
********************** email@hidden
>
<< Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe.
>
_______________________________________________
>
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.
_______________________________________________
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.