var str="youtube.com/watch?v=PstrAfoMKlc&feature=rec-LGOUT-exp_stronger_r2-2r-6-HM"; alert(str.split("?v=")[1].split("&")[0])