Re: regex in strings
Re: regex in strings
- Subject: Re: regex in strings
- From: James Montgomerie <email@hidden>
- Date: Wed, 20 Feb 2002 11:01:41 -0800
On Wednesday, February 20, 2002, at 05:02 AM, Darin Duphorne wrote:
Can you use regex in strings with any of the cocoa classes? I'm trying
to
implement syntax coloring and something along these lines would
replace a
lot of coding.
I've been using regular expressions myself recently. My strings are
sufficiently limited that I can use the POSIX regex functions (though
their regular expression syntax is horrendously verbose, in my
opinion) - see 'man regex' in the Terminal for more info.
Alternatively, Mike Ferris' MOKit has a more Cocoa-friendly,
Unicode-save implementation of regular expressions, so you might want to
take a look at it (
http://www.lorax.com/FreeStuff/MOKit.html) if you
don't mind an external framework. There are no built-in Cocoa regex
classes to my knowledge.
Jamie.
_______________________________________________
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.