• 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: NSString and regular expressions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString and regular expressions


  • Subject: Re: NSString and regular expressions
  • From: "email@hidden" <email@hidden>
  • Date: Tue, 28 Jul 2009 10:39:22 +0100


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 comprehensive, but it has quite a large footprint and is probably overkill for many uses.


Unfortunately, RegexKit Lite (the stripped-down version) uses the built-in ICU library which uses a syntax quite different to the PCRE that most people are used to.

Since the goal in both ICU and PCRE is to be broadly compatible with Perl regular expression syntax, I think it's an exaggeration to say that the syntax is "quite different". There are things in PCRE that aren't supported in ICU, and vice-versa. And neither of them support everything that is implemented in Perl (partly because you'd have to actually *implement* Perl to do it).


NSPredicate anyone?
The MATCHES operator uses ICU's Regular Expressions package.
http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/Articles/pUsing.html#/ /apple_ref/doc/uid/TP40001794-SW9
Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden

Jonathan Mitchell

Developer
http://www.mugginsoft.com





_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >NSString and regular expressions (From: Rick Mann <email@hidden>)
 >Re: NSString and regular expressions (From: Dave DeLong <email@hidden>)
 >Re: NSString and regular expressions (From: Rob Keniger <email@hidden>)
 >Re: NSString and regular expressions (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: NSTextView - NSAttributedString paragraph style attributes
  • Next by Date: Re: Cocoa Document-Based App v. Windows MDI App
  • Previous by thread: Re: NSString and regular expressions
  • Next by thread: Re: NSString and regular expressions
  • Index(es):
    • Date
    • Thread