• 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: regex in strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >regex in strings (From: Darin Duphorne <email@hidden>)

  • Prev by Date: Re: Please explain this error message...
  • Next by Date: EOF replacement
  • Previous by thread: regex in strings
  • Next by thread: Re: regex in strings
  • Index(es):
    • Date
    • Thread