I would like to remove "http://" in a string that contains a web URL i.e: "http://www.google.com". My code is:
import os
s = 'http://www.google.com'
s.replace("http://","")
print s
I try to replace http:// with a space but somehow it still prints out http://www.google.com
Am i using replace incorrectly here? Thanks for your answer.