how to remove the protocal from the url js code example Example: how to remove https link from javascript result = url.replace(/(^\w+:|^)\/\//, '');