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

extracting html from text file


  • Subject: extracting html from text file
  • From: Koen van der Drift <email@hidden>
  • Date: Wed, 03 Jul 2002 11:14:26 -0400

Hi,

I am just learning cocoa, and have an idea for a project. I have a plain text file, and part of the text is HTML code. the html part ofcourse starts with <html> and ends with </html>, so I have two markers. What I want to do is read the text file, scan each line until <html> is found, store the text that follows in a separate object until </html> and then save the html text. Sound simple, but at this point I have no idea what would be the best way to approach this. 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?

any help appreciated.

thanks,

- Koen.

(I have ordered my copy of Hillegass' book, so maybe I can find the answer in there too, when I get it next week).
_______________________________________________
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.
  • Follow-Ups:
    • Re: extracting html from text file
      • From: Marcel Weiher <email@hidden>
    • Re: extracting html from text file
      • From: Ondra Cada <email@hidden>
    • Re: extracting html from text file
      • From: Pierre-Olivier Latour <email@hidden>
  • Prev by Date: Re: Cocoa stripping resource forks: does Jaguar fix?
  • Next by Date: Re: extracting html from text file
  • Previous by thread: Re: "discards qualifiers from pointer target type"?
  • Next by thread: Re: extracting html from text file
  • Index(es):
    • Date
    • Thread