How To remove the http://www from the any given url in c# -
i need remove
http://www.
or www.
url. example
http://www.stackoverflow.com/questions/ask http://stackoverflow.com/questions/ask www.stackoverflow.com/questions/ask
for above need stackoverflow.com/questions/ask
this really simple
var url = "http://www.stackoverflow.com/questions/ask"; url = url.replace("http://","").replace("www.","")
Comments
Post a Comment