title: How can I extract a URL from a sentence that is in a NSString?
body: <p>What I'm trying to accomplish is as follows. I have a NSString with a sentence that has a URL within the sentience. I'm needing to be able to grab the URL that is presented within any sentence that is within a NSString so for example:</p>
  
  <p>Let's say I had this NSString</p>
  
  <pre><code>NSString *someString = @"This is a sample of a http://example.com/efg.php?EFAei687e3EsA sentence with a URL within it.";
  </code></pre>
  
  <p>I need to be able to extract <a href="http://example.com/efg.php?EFAei687e3EsA" rel="nofollow noreferrer">http://example.com/efg.php?EFAei687e3EsA</a> from within that NSString. This NSString isn't static and will be changing structure and the url will not necessarily be in the same spot of the sentence. I've tried to look into the three20 code but it makes no sense to me. How else can this be done?</p>