I gave up on AGRegex and used RegexKit, which was very easy to get to work.

On Aug 3, 2009, at 20:15:18, BareFeet wrote:

Hi all,

Has anyone got procedure for getting AGRegex to work in their project?

Thanks,
Tom
BareFeet

----
From: BareFeet <list.develo...@tandb.com.au>
Date: 31 July 2009 9:03:20 AM AEST
To: Cocoa Dev <Cocoa-dev@lists.apple.com>
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
pcre_get.c
pcre_globals.c
pcre_info.c
pcre_ord2utf8.c
pcre_tables.c
pcre_try_flipped.c
pcre_ucp_searchfuncs.c
pcre_valid_utf8.c
pcre_xclass.c

Thanks. I tried that, but get 436 fails during compile, starting with "pcre.h: No such file or directory."

So I copied pcre.h across to my project too but then get more errors starting with "pcre_internal.h No such file or directory."

If I add all the header files, I still get compile errors, starting with:

pcre_ucp_searchfuncs.c:48:54:
error: ucptable.c: No such file or directory

So I copied ucptable.c but I get the error:

ucptable.c:4:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ucp_table'

Can you please clue me in as to how to get AGRegex to work?

Thanks,
Tom
BareFeet

----
From: BareFeet <list.develo...@tandb.com.au>
Date: 30 July 2009 2:51:59 PM AEST
To: Cocoa-dev <cocoa-dev@lists.apple.com>
Subject: Re: NSString and regular expressions

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 framework or the AGRegex files (and PCRE folder) to our own project? I've tried both and can't get it to work. I can't find any instructions in the documentation on adding it correctly to your own project.

Thanks,
Tom
BareFeet
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/rmann%40latencyzero.com

This email sent to rm...@latencyzero.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to