Nodejs Utililty Methods Youtube URL Parse

List of utility methods to do Youtube URL Parse

Description

The list of methods to do Youtube URL Parse are organized into topic(s).

Method

parseYoutubeId(url)
function parseYoutubeId(url){
    var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;
    var match = url.match(regExp);
    if (match&&match[7].length==11){
        return match[7];
    }else{
        return null;