Node.js examples for Network:URL
URL String validator
isUrl: function(url){ if(/^(http:\/\/(www)?.|https:\/\/(www)?.|ftp:\/\/(www)?.|(www)?.){1}([0-9A-Za-z]+\.)/.test(url)){ return true; }else{//ww w . j av a 2 s . com return false; } }