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
not with regex, but simple too, because first url part is static and has 23 symbols length
'http://www.youtube.com/watch?v=sEHN4t29oXY&feature=related'.substr(23)
Oh, I've made a mistake, he wants another part, so actual code will looks like:
'http://www.youtube.com/watch?v=sEHN4t29oXY&feature=related'.substr(31)