title: Parse URL using Regex
body: <p>I have Youtube and Dailymotion Video URL as follows:</p>
  
  <p>For Youtube</p>
  
  <ul>
  <li><a href="http://www.youtube.com/v/0PsnoiwMrhA" rel="nofollow">http://www.youtube.com/v/0PsnoiwMrhA</a></li>
  <li><a href="http://www.youtube.com/watch?v=ok_VQ8I7g6I" rel="nofollow">http://www.youtube.com/watch?v=ok_VQ8I7g6I</a></li>
  <li><a href="http://www.youtube.com/watch?v=1taai0d1FXw&amp;list=PL1uGXsv9VLdCm_LYVa9c7Rv8DPdflJZfT" rel="nofollow">http://www.youtube.com/watch?v=1taai0d1FXw&amp;list=PL1uGXsv9VLdCm_LYVa9c7Rv8DPdflJZfT</a></li>
  </ul>
  
  <p>For Dailymotion</p>
  
  <ul>
  <li><a href="http://www.dailymotion.com/video/x21a1i8_brazil-1-7-germany-a-world-cup-2014-brick-by-brick-video-animation_news" rel="nofollow">http://www.dailymotion.com/video/x21a1i8_brazil-1-7-germany-a-world-cup-2014-brick-by-brick-video-animation_news</a></li>
  <li><a href="http://www.dailymotion.com/video/x2148xg_brazil-1-7-germany-brazil-player-ratings-from-a-shocking-defeat_sport" rel="nofollow">http://www.dailymotion.com/video/x2148xg_brazil-1-7-germany-brazil-player-ratings-from-a-shocking-defeat_sport</a></li>
  </ul>
  
  <p>I want to get the Preview image of these video, So i have to parse these link as follows:</p>
  
  <p>For Youtube</p>
  
  <ul>
  <li><a href="http://img.youtube.com/vi/0PsnoiwMrhA/default.jpg" rel="nofollow">http://img.youtube.com/vi/0PsnoiwMrhA/default.jpg</a></li>
  <li><a href="http://img.youtube.com/vi/ok_VQ8I7g6I/default.jpg" rel="nofollow">http://img.youtube.com/vi/ok_VQ8I7g6I/default.jpg</a></li>
  <li><a href="http://img.youtube.com/vi/1taai0d1FXw/default.jpg" rel="nofollow">http://img.youtube.com/vi/1taai0d1FXw/default.jpg</a></li>
  </ul>
  
  <p>For Dailymotion</p>
  
  <ul>
  <li><a href="http://www.dailymotion.com/thumbnail/video/x21a1i8_brazil-1-7-germany-a-world-cup-2014-brick-by-brick-video-animation_news" rel="nofollow">http://www.dailymotion.com/thumbnail/video/x21a1i8_brazil-1-7-germany-a-world-cup-2014-brick-by-brick-video-animation_news</a></li>
  <li><a href="http://www.dailymotion.com/thumbnail/video/x2148xg_brazil-1-7-germany-brazil-player-ratings-from-a-shocking-defeat_sport" rel="nofollow">http://www.dailymotion.com/thumbnail/video/x2148xg_brazil-1-7-germany-brazil-player-ratings-from-a-shocking-defeat_sport</a></li>
  </ul>
  
  <p>Please help me. I'm newbie in regex...</p>