how to remove https link from javascript result = url.replace(/(^w+:|^)///, ''); www.codegrepper.comwww.stackoverflow.com