jquery, Regexp, make dynamic url
Posted
by Alexander Corotchi
on Stack Overflow
See other posts from Stack Overflow
or by Alexander Corotchi
Published on 2010-03-30T18:04:18Z
Indexed on
2010/03/30
18:13 UTC
Read the original article
Hit count: 471
Hi ,
I need a regexp help, because for me it will take a lot of time , for you some minutes:)
I have youtube a URL :
http://www.youtube.com/watch?v=9_Hd8hXhg7o&feature=youtube_gdata
I can't add this in embed object , for embed I have to change in this URL :
http://www.youtube.com/v/9_Hd8hXhg7o&hl=en_US&fs=1&
It means, that I want to add the youtube cod in some variable, something like this
var url = after regexp "9_Hd8hXhg7o";
"http://www.youtube.com/v/" + url +"&hl=en_US&fs=1&";
thanks !
© Stack Overflow or respective owner