I have looked on ways like .split() to seperate strings and saw a simple seperation like .split(""), or .split("") but i don't know how to do more complex like remove everything before and after the id.
What i have is a variable that contains a youtube string example:
var utubeLink = "http://img.youtube.com/vi/8lmuuaI09ro/0.jpg";
and a variable that is waiting to store the ID of the var utubeLink
var newutubeLink = "http://www.youtube.com/v/"
I want to remove everything so that i get 8lmuuaI09ro, and pass the ID into newutubeLink so that my final result will be http://www.youtube.com/v/8lmuuaI09ro.
Thanks