I have the following strings
http://example.com https://example.com http://www.example.com
how do i get rid of the http:// or
http://
var txt="https://site.com"; txt=/^http(s)?:\/\/(.+)$/i.exec(txt); txt=txt[2];
for parsing links without http/https use this:
var txt="https://site.com"; txt=/^(http(s)?:\/\/)?(.+)$/i.exec(txt); txt=txt[3];