Hi.
I'm not very good at regextherefore
I'd like to know if this is the right way:
var oldUrl= 'http://www.youtube.com/watch?v=I0LuhwMvdig';
var re = /watch\?v=/;
var newUrl = oldUrl.replace(re, "v/");
alert(newUrl);
// 'http://www.youtube.com/v/I0LuhwMvdig';
Bye.



therefore




Bookmarks