title: How to get the video ID of a YouTube string
body: <p>(XCode 6.3.2, Swift 1.2)<br>
  After researching the internet for the whole evening I already know that this can't be done that easily.<br>
  I simply want to get the video ID of a YouTube link. So the "ABCDE" in "<a href="https://www.youtube.com/watch?v=ABCDE" rel="nofollow">https://www.youtube.com/watch?v=ABCDE</a>"  </p>
  
  <p>What I got so far:</p>
  
  <pre><code>var url = "https://www.youtube.com/watch?v=ABCDE"
  let characterToFind: Character = "="
  let characterIndex = find(url, characterToFind)
  println(characterIndex)
  url.substringFromIndex(advance(url.startIndex, characterIndex))
  </code></pre>
  
  <p>Prinln outputs: <em>Optional(31)</em><br>
  That's right but I can't use this because it's no index.</p>
  
  <p>XCode also states for the last line: <em>Missing argument for parameter #3 in call</em><br>
  I also don't know what the 3rd parameter of <code>substringFromIndex</code> should be.</p>
  
  <p>Many thanks in advance!</p>