• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using regex.h
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using regex.h


  • Subject: Re: Using regex.h
  • From: Chris Eplett <email@hidden>
  • Date: Tue, 14 Dec 2004 07:47:47 -0500

In a previous life, I used PCRE (Perl Compatible Regular Expressions) to add regular expressions to an application:

http://www.pcre.org/

It's pretty easy to use, and under a BSD-style license. We were pretty happy with it. It even provides some wrapper functions that correspond to the POSIX regular expression API.

Just my $0.02...

-
Chris Eplett
palmOne, Inc.
Senior Software Engineer

On Dec 10, 2004, at 5:11 PM, Matthew wrote:

What do you all think about OgreKit? It looks like it might do the job....at a quick glance, there are some examples and it appears to be a wrapper around some Ruby.

http://www-gauge.scphys.kyoto-u.ac.jp/~sonobe/OgreKit/index_en.html

Does anyone know if there's an `NS' class in the works that addresses the regex issues. If not, I wonder if it's just not high enough priority at the time, or if there's `some reason' for it?

Matthew


On Nov 26, 2004, at 5:00 PM, Glenn Andreas wrote:

At 11:19 AM +0000 11/26/04, Oliver Cameron wrote:
Hi guys,

I've been told I can use regex.h for powering the regular expression searches in my app. I'm never actually touched pure C code (is regex.h C?), so I've really got no idea how to implement it in a Cocoa based application.

I guess I could use NSTask, but I think that could cause major slowdowns. I also know about the OmniFrameworks and others (MOKit etc.), but I'd rather cook up my own engine if possible. Any help is appreciated.

Thanks,
Oliver


You don't want to use system provided regex from Cocoa because the system regexes don't support unicode (and Cocoa strings do).

Taking the regex from TCL is pretty straightforward (which is what I do in IDEKit, and it works quite well with unicode now).

-- Glenn Andreas email@hidden <http://www.gandreas.com/> oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: Using regex.h (From: Matthew <email@hidden>)

  • Prev by Date: Re: Handling right click only
  • Next by Date: Resizing window on second screen makes window disappear
  • Previous by thread: Re: Using regex.h
  • Next by thread: NSObjectController - > getting it's keys
  • Index(es):
    • Date
    • Thread