python: why does replace not work?

String.replace(substr)

does not happen in place, change it to:

string = string.replace("http://","")

Leave a Comment