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/watch?v=sEHN4t29oXY&feature=related
I want to only get sEHN4t29oXY&feature=related so i guess i would have to check for the first equal sign to appear and after that save the rest of that string into the variable.. please help, thanks
not with regex, but simple too, because first url part is static and has 23 symbols length
Oh, I’ve made a mistake, he wants another part, so actual code will looks like: