strip bug?

Rustom Mody rustompmody at gmail.com
Wed Feb 25 06:03:45 EST 2015


On Wednesday, February 25, 2015 at 4:35:37 AM UTC+5:30, bay... at gmail.com wrote:
> >>> 'http://xthunder'.strip('http://')
> 'xthunder'
> >>> 'http://thunder'.strip('http://')
> 'under'
> >>>
> 
> I could understand backslash but forward slash?

Others have answered specifically.
However you probably want to look at urlparse
https://docs.python.org/2/library/urlparse.html



More information about the Python-list mailing list