extracting html from text file
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.