I have the following strings
http://example.com https://example.com http://www.example.com
how do i get rid of the http:// or https://?
http://
https://
Try with this:
var url = "https://site.com"; var urlNoProtocol = url.replace(/^https?:///i, "");
1.4m articles
1.4m replys
5 comments
57.0k users