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

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -