Hello all! So I have written a program that points to a specified URL, downloads the HTML from the URL and stores it in a variable. Now, I am trying to search the html variable, and more precisely, search between two html heads (I think that's what it's called) and extract everything between the heads. In this example, I am trying to copy everything from <div class="FP_Up_Item2"> to </div> into it's own variable.
So far, I have found something called NSScanner, though I haven't really found a way to implement this yet. I'm pretty sure there's another way to do this, though, so if anyone could give any insight, it would really help! (By the way, as the title implies, the HTML from above is in a NSString variable type)
HTML:
<div class="FP_Up_Item2">
<div class="FP_Up_Date">
<b><span style='color:#199600; font-weight:bold;'>01 Aug 2010</span></b> <br /> <span style='color:#a3a3a3;'>out now</span>
</div>
<div class="FP_Up_ImageWrap"><img src="http://m2.n4g.com/8/GameProfiles/125000/125674_2_cov_med.jpg" /></div>
<div class="FP_Up_TextWrap" style="width: 300px;">
<a href="/PC/ReleaseDate-125674.aspx" style="color:#95581f"><b>Alter Ego</b></a> <br /><span style="font-weight: normal; color: #a3a3a3; font-size: 10pt;">(PC)</span><br />
</div>
<div class='FP_Up_Score'><a href='/PC/ReleaseDate-125674.aspx?ShowReviews=1'>5.9</a></div>
</div>
So far, I have found something called NSScanner, though I haven't really found a way to implement this yet. I'm pretty sure there's another way to do this, though, so if anyone could give any insight, it would really help! (By the way, as the title implies, the HTML from above is in a NSString variable type)