Help! Obj-C/Iphone programming: extracting string from html text and reading off line by line

Posted by royden on Stack Overflow See other posts from Stack Overflow or by royden
Published on 2010-06-17T09:02:13Z Indexed on 2010/06/18 3:33 UTC
Read the original article Hit count: 189

hihi,

I have this html text response from a particular website:

<tr><td valign="top"><img src="/icons/image2.gif" alt="[IMG]"></td><td><a href="crsdsdfs2221.jpg">crash-2221.jpg</a></td><td align="right">14-Jun-2010 14:29  

Notice for every line, there is this href=".__", which is an image file with random name and random format. I would like to extract that string within the inverted commas out so that i can append it into a URL path and download the image. I've been looking through this documentation from apple:

http://developer.apple.com/mac/library/documentation/cocoa/conceptual/strings/Articles/SearchingStrings.html#//apple_ref/doc/uid/20000149-CJBBGBAI

on String programming but couldn't find one that fits my bill. Also after reading it, what code can I use to ensure that I will be reading the next line the next time my function is called( because I want to download the next picture). Hope some kind soul can help me out, thanks!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about html