• 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: extracting html from text file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: extracting html from text file


  • Subject: Re: extracting html from text file
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 3 Jul 2002 18:23:03 +0200

On Wednesday, July 3, 2002, at 05:14 , Koen van der Drift wrote:

Can I eg read the text in an NSString, and then scan the text with regular expressions (like in perl). Or does Cocoa alread have clesses that do such things?

The standard Cocoa way is NSScanner; alas there are no regexps in Foundation. You can get some 3rd party implementations though, like in Mike Ferris' MOKit.

Another way, quite handy in case your data happen to be 8-bit only, might be to use flex/bison for your parsing. Alas they become next to unusable with Unicode.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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: 
 >extracting html from text file (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Re: Getting an application's creator code
  • Next by Date: Re: Cocoa stripping resource forks: does Jaguar fix?
  • Previous by thread: Re: extracting html from text file
  • Next by thread: Re: extracting html from text file
  • Index(es):
    • Date
    • Thread