String.prototype.isUrl = function() { return /^http[s]?://([w-]+.)+[w-]+([w-./?%&=]*)?$/i.test(this); }