Regex ID de YouTube

var id = url.match("v=([a-zA-Z0-9_-]+)&?")[1];
var list = url.match("list=([a-zA-Z0-9-_]+)&?");
list = list ? list[1] : "";
Determined Dog