I want to get the v=id from YouTube’s URL with JavaScript (no jQuery, pure JavaScript).
v=id
http://www.youtube.c
Simple regex if you have the full URL, keep it simple.
results = url.match("v=([a-zA-Z0-9]+)&?") videoId = results[1] // watch you need.