• 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
NSString Parsing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSString Parsing


  • Subject: NSString Parsing
  • From: Peer Allan <email@hidden>
  • Date: Mon, 28 Oct 2002 10:01:04 -0600

Hi,

I'm trying to write a basic program that grabs a page from a website then
"scrapes" through the HTML to get the data I want. Currently, I am using
initWithContentsOfURL: to get the page into a NSString. So I am getting the
full page no problem.

What I want to do is extract all the text from in between a pair or tags
(<td>...</td> for example). I know I could use a rangeOfString: call to get
the first one, but then I have to create a new string with the remaining
data and call rangeOfString: again to get the next and on and on until the
whole string is parsed. I hope there is a better way to do this.

Thanks

Peer
_______________________________________________
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: NSString Parsing
      • From: "Andrew M. Salamon" <email@hidden>
    • Re: NSString Parsing
      • From: OS X AIBO <email@hidden>
    • RE: NSString Parsing
      • From: "Jonathan E. Jackel" <email@hidden>
  • Prev by Date: Re: Redistribution of /Developer/Tools components...
  • Next by Date: Re: Max arguments for NSTask?
  • Previous by thread: How to change the app viewing WWDC video
  • Next by thread: RE: NSString Parsing
  • Index(es):
    • Date
    • Thread