var http = 'http://www.youtube.com/watch?feature=df3232&v=H9H0ocq1wLs&olo=11'; alert( http.match( /\?v=(.*)/ )[1] )