title: Substring from String in Swift
body: <p>I have the code to find out substring from string in <code>Swift</code>, Please help !</p>
  
  <p>My codes to find substring <code>http://corbpl.com/groupinfo.php?show=95</code> is :-</p>
  
  <pre><code>var aString: String = "href=http://www.corpbpl.com/groupinfo.php?show=95 onmousedown=uaction(this,{up:'90de%=%Nofi7rO6B&amp;l=8upb1p&amp;E%=6&amp;ex=jXTDh5zYQLa9&amp;});"
  
  var hashtag: NSRange = aString.rangeOfString("http://")
  
  var word: NSRange = 
  aString.substringFromIndex(aString.startIndex.advancedBy(hashtag.location))
  </code></pre>