title: Using regexlite to parse <a href src="">Links</a> out of a NSString
body: <p>I am writing an iPhone app that has to pull raw HTML data off a website an grab the url of the links and the displayed text of a link. </p>
  
  <p>For example in the like <code>&lt;a href="www.google.com"&gt;Click here to go to google&lt;/a&gt;</code></p>
  
  <p>It would pull grab
  url = www.google.com
  text = Click Here to go to google</p>
  
  <p>I'm using the regexlite library but i'm in no way an expert on regular expressions i have tried several things to get this working.</p>
  
  <p>I want to use the following code </p>
  
  <pre><code>NSString *searchString  = @"$10.23, $1024.42, $3099";
  NSString *regexString   = @"\\$((\\d+)(?:\\.(\\d+)|\\.?))";
  NSArray  *capturesArray = NULL;
  
  capturesArray = [searchString arrayOfCaptureComponentsMatchedByRegex:regexString];
  </code></pre>
  
  <p>So my question is can someone tell me what the searchString would be to parse html links or point me to a clear tutorial on how regexlite works i have tired reading the documentation at <a href="http://regexkit.sourceforge.net/RegexKitLite/" rel="nofollow noreferrer">http://regexkit.sourceforge.net/RegexKitLite/</a> and i dont understand it.</p>
  
  <p>Thanks in advance,</p>
  
  <p>Zen_silence</p>