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, "");
2.1m questions
2.1m answers
60 comments
57.0k users