On Tue, Feb 24, 2015 at 4:05 PM, <bayk...@gmail.com> wrote: >>>> 'http://xthunder'.strip('http://') > 'xthunder' >>>> 'http://thunder'.strip('http://') > 'under' >>>>
This removes all leading and trailing occurrences of the characters in the string 'http://', not the exact substring 'http://'. For that, use either the str.replace method or slicing. > I could understand backslash but forward slash? I don't understand the question. -- https://mail.python.org/mailman/listinfo/python-list