Re: NSString and Regular Expressions

2009-12-14 Thread Dave DeLong
RegexKit is the best (read: simplest) way to get regular expression support into your Cocoa apps. http://regexkit.sourceforge.net It's also possible to use NSPredicate for simple matching. You can find a couple of other options listed on this page: http://cocoaheads.byu.edu/resources/regex

NSString and Regular Expressions

2009-12-14 Thread Phil Hystad
I was sort of suspecting that regular expression matches would be supported by NSString yet I find no message interface for supporting regular expressions. So, is the only capability for handling regular expressions in Objective-C the Posix Regex library? phil phys...@mac.com

Re: AGRegex (was: NSString and regular expressions)

2009-08-03 Thread Adam R. Maxwell
On Aug 3, 2009, at 8:15 PM, BareFeet wrote: Has anyone got procedure for getting AGRegex to work in their project? I've used AGRegex.framework in a number of projects, but it's been so long that I've no idea what steps I went through to set it up. The copy here https://tcobrowser.svn.s

Re: AGRegex (was: NSString and regular expressions)

2009-08-03 Thread Rick Mann
Dev Subject: Re: NSString and regular expressions Hi Rob, I personally just compile the files directly into my project. You need AGRegex.h and AGRegex.m but you should only compile the following files from the pcre distribution: pcre_chartables.c pcre_compile.c pcre_exec.c pcre_fullinfo.c

AGRegex (was: NSString and regular expressions)

2009-08-03 Thread BareFeet
Hi all, Has anyone got procedure for getting AGRegex to work in their project? Thanks, Tom BareFeet From: BareFeet Date: 31 July 2009 9:03:20 AM AEST To: Cocoa Dev Subject: Re: NSString and regular expressions Hi Rob, I personally just compile the files directly into my project

Re: NSString and regular expressions

2009-08-03 Thread BareFeet
Hi All, RegexKitLite looks promising. It claims to only require you to add the .h and .m file to your project and link to the libicucore.dylib library. I managed to incorporate RegexKitLite fairly easily once I found in the documentation the steps to link to the libicucore.dylib library.

Re: NSString and regular expressions

2009-07-31 Thread John Engelhart
On Thu, Jul 30, 2009 at 8:04 PM, BareFeet wrote: > Hi John and all, > > You might want to look at AGRegex which is very compact (one class) and >>> which uses PCRE: >>> >>> http://colloquy.info/project/browser/trunk/Frameworks/AGRegex >>> >>> >> Of note, Colloquy appears to have switched to Regex

Re: NSString and regular expressions

2009-07-31 Thread Alastair Houghton
On 31 Jul 2009, at 15:30, Jean-Daniel Dupas wrote: Le 31 juil. 09 à 11:30, Alastair Houghton a écrit : As far as I understood, the original reason for not providing the headers was that the C++ ABI was not stable and so a program linked against ICU on one version of Mac OS X might not work

Re: NSString and regular expressions

2009-07-31 Thread Jean-Daniel Dupas
Le 31 juil. 09 à 11:30, Alastair Houghton a écrit : On 31 Jul 2009, at 01:04, BareFeet wrote: The documentation notes: "Warning: Apple does not officially support linking to the libicucore.dylib library." In reality, how worried should I be about this? I wouldn't lose much sleep over it,

Re: NSString and regular expressions

2009-07-31 Thread Alastair Houghton
On 31 Jul 2009, at 01:18, Charles Srstka wrote: ICU is an open-source project, so if you're concerned about the Apple-supplied one disappearing, you can just go download the latest sources, compile it yourself, and then either link it statically or include the dylib inside your bundle. ht

Re: NSString and regular expressions

2009-07-31 Thread Alastair Houghton
On 31 Jul 2009, at 01:04, BareFeet wrote: The documentation notes: "Warning: Apple does not officially support linking to the libicucore.dylib library." In reality, how worried should I be about this? I wouldn't lose much sleep over it, to be honest, as long as you stick to ICU's C API (a

Re: NSString and regular expressions

2009-07-30 Thread Charles Srstka
On Jul 30, 2009, at 7:04 PM, BareFeet wrote: RegexKitLite looks promising. It claims to only require you to add the .h and .m file to your project and link to the libicucore.dylib library. The documentation notes: "Warning: Apple does not officially support linking to the libicucore.dylib

Re: NSString and regular expressions

2009-07-30 Thread BareFeet
Hi John and all, You might want to look at AGRegex which is very compact (one class) and which uses PCRE: http://colloquy.info/project/browser/trunk/Frameworks/AGRegex Of note, Colloquy appears to have switched to RegexKitLite itself: http://svn.colloquy.info/project/changeset/4301 I di

Re: NSString and regular expressions

2009-07-30 Thread BareFeet
Hi Rob, I personally just compile the files directly into my project. You need AGRegex.h and AGRegex.m but you should only compile the following files from the pcre distribution: pcre_chartables.c pcre_compile.c pcre_exec.c pcre_fullinfo.c pcre_get.c pcre_globals.c pcre_info.c pcre_ord2utf8

Re: NSString and regular expressions

2009-07-30 Thread John Engelhart
On Mon, Jul 27, 2009 at 9:02 PM, Rob Keniger wrote: > > On 28/07/2009, at 10:38 AM, Dave DeLong wrote: > > RegexKit. Without a doubt. >> >> http://regexkit.sourceforge.net >> >> I use it in about 75% of my projects. >> > > RegexKit is very nice and extremely comprehensive, but it has quite a la

Re: NSString and regular expressions

2009-07-30 Thread Rob Keniger
On 30/07/2009, at 2:51 PM, BareFeet wrote: You might want to look at AGRegex which is very compact (one class) and which uses PCRE: http://colloquy.info/project/browser/trunk/Frameworks/AGRegex Thanks for the tip. Have you been able to get this to work? Do we add the framework or the AGRe

Re: NSString and regular expressions

2009-07-29 Thread BareFeet
Hi Rob & all, On 28/07/2009, at 11:02 AM, Rob Keniger wrote: You might want to look at AGRegex which is very compact (one class) and which uses PCRE: http://colloquy.info/project/browser/trunk/Frameworks/AGRegex Thanks for the tip. Have you been able to get this to work? Do we add the fra

Re: NSString and regular expressions

2009-07-28 Thread jonat...@mugginsoft.com
On 28 Jul 2009, at 10:26, Alastair Houghton wrote: On 28 Jul 2009, at 02:02, Rob Keniger wrote: On 28/07/2009, at 10:38 AM, Dave DeLong wrote: RegexKit. Without a doubt. http://regexkit.sourceforge.net I use it in about 75% of my projects. RegexKit is very nice and extremely comprehens

Re: NSString and regular expressions

2009-07-28 Thread Alastair Houghton
On 28 Jul 2009, at 02:02, Rob Keniger wrote: On 28/07/2009, at 10:38 AM, Dave DeLong wrote: RegexKit. Without a doubt. http://regexkit.sourceforge.net I use it in about 75% of my projects. RegexKit is very nice and extremely comprehensive, but it has quite a large footprint and is proba

Re: NSString and regular expressions

2009-07-27 Thread Rob Keniger
On 28/07/2009, at 10:38 AM, Dave DeLong wrote: RegexKit. Without a doubt. http://regexkit.sourceforge.net I use it in about 75% of my projects. RegexKit is very nice and extremely comprehensive, but it has quite a large footprint and is probably overkill for many uses. Unfortunately, R

Re: NSString and regular expressions

2009-07-27 Thread Dave DeLong
RegexKit. Without a doubt. http://regexkit.sourceforge.net I use it in about 75% of my projects. Dave On Jul 27, 2009, at 6:37 PM, Rick Mann wrote: I need to do some regex searches on NSStrings, and use capturing groups. Looking online I found some discussions from 2003 referring to MOKi

NSString and regular expressions

2009-07-27 Thread Rick Mann
I need to do some regex searches on NSStrings, and use capturing groups. Looking online I found some discussions from 2003 referring to MOKit, which hasn't been touched since 2005, and seems to include a lot of stuff I don't care about. Other references to agkit suggest it doesn't support u