I would like to save a substring to a javascript variable using regex unless there is a different/easier way. For example i have a link like this: http://www.youtube.com/wa
Like so:
var match = /\?v=(.+)/.exec(link)[1];