title: getting the youtube id from a link
body: <p>I got this code to get the youtube id from the links like 
  www.youtube.com/watch?v=xxxxxxx</p>
  
  <pre><code>  URL youtubeURL = new URL(link);
    youtubeURL.getQuery();
  </code></pre>
  
  <p>basically this will get me the id easily v=xxxxxxxx</p>
  
  <p>but I noticed sometime youtube links will be like this</p>
  
  <pre><code>http://gdata.youtube.com/feeds/api/videos/xxxxxx
  </code></pre>
  
  <p>I am getting the links from a feed
  so do I need to build a regex for that or theres a parser to get that for me ?</p>