suppose i have a string
This is a good doll http://www.google.com/a/bs/jdd/etc/etc/a.py
i would like to get something like this
This is a good doll www.google.com
i tried print re.sub(r'(http://|https://)',"",a)) function in python but i was only able to remove the http:// part from it .Any ideas on how i could achieve this in python 2.7
1 Answer