title: iOS - ASIHTTPRequest - Trying to parse through responseString
body: <p>I've spent about 16 hours researching and attempting different code changes, but cannot figure this one out. I have an iOS app that consumes a website using ASIHTTPrequest: </p>
  
  <pre><code>-(void)refresh{
      NSURL *url = [NSURL URLWithString@"http://undignified.podbean.com/"];
      ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
      [request startSynchronous];
      NSString *response = [request responseString];
      NSLog(@"%@",response];
   }
  </code></pre>
  
  <p>The above code returns the website source and spits it out to the console via NSLog. The goal I'm trying to achieve from this is search through the 'responseString' for URLs ending in *.mp3, load those into an array and finally load the mp3 URLs into a UITableView.</p>
  
  <p>To summarize: </p>
  
  <ol>
  <li>Consuming website data with ASIHTTPRequest</li>
  <li>Trying to search through the responseString for all links that have *.mp3 extensions and load them into an array.</li>
  <li>Add parsed links to UITableView.</li>
  </ol>
  
  <p>I think at this junction I have attempted too many things to make any sound judgements at this point. Any suggestions or nudges in the right direction would be greatly appreciative.</p>
  
  <p>Below is an example of the response (HTML). Please note this is only a snippet as the entire HTML source is rather large, but this includes a section to the mp3 files:</p>
  
  <pre><code>a href="http://undignified.podbean.com/mf/web/ih2x8r/UndignifiedShow01.mp3"         target="new"&gt;&lt;img src="http://www.podbean.com/wp-content/plugins/podpress/images/audio_mp3_button.png" border="0" align="top" class="podPress_imgicon" alt="icon for podbean" /&gt;&lt;/a&gt; &amp;nbsp;Standard Podcasts [00:40:24m]: &lt;a href="javascript:void(null);" onclick="podPressShowHidePlayerDiv('podPressPlayerSpace_2649518', 'mp3Player_2649518_0', '300:30', 'http://undignified.podbean.com/mf/play/ih2x8r/UndignifiedShow01.mp3'); return false;"&gt;&lt;span id="podPressPlayerSpace_2649518_label_mp3Player_2649518_0"&gt;Play Now&lt;/span&gt;&lt;/a&gt; | &lt;a href="javascript:void(null);" onclick="window.open ('http://undignified.podbean.com/wp-content/plugins/podpress/podpress_backend.php?podPressPlayerAutoPlay=yes&amp;amp;standalone=yes&amp;amp;action=showplayer&amp;amp;pbid=0&amp;amp;b=458211&amp;amp;id=2649518&amp;amp;filename=http://undignified.podbean.com/mf/play/ih2x8r/UndignifiedShow01.mp3', 'podPressPlayer', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=660,height=360'); return false;"&gt;Play in Popup&lt;/a&gt; | &lt;a href="http://www.podbean.com/podcast-download?b=458211&amp;f=http://undignified.podbean.com/mf/web/ih2x8r/UndignifiedShow01.mp3" target="26108"&gt;Download&lt;/a&gt; | &lt;a href="http://www.podbean.com/podcast-players?b=458211&amp;p=2649518&amp;f=http://undignified.podbean.com/mf/play/ih2x8r/UndignifiedShow01.mp3" target="38148"&gt;Embeddable Player&lt;/a&gt; | &lt;a&gt;Hits (214)&lt;/a&gt;&lt;br/
  </code></pre>