Just need a little push as I have this almost working.
I want to feed jquery a URL and have it strip everthing but the video url.
Here is my code:
var url = 'http://www.youtube.com/watch?v=bxp8NWvIeSo';
$results = url.match("[\\?&]v=([^&#]*)");
alert($results);
});
I'm getting this as an output -
?v=bxp8NWvIeSo,bxp8NWvIeSo
When I only want
bxp8NWvIeSo