Hello, I have difficulties in trying to stripping the following:
>>> item_path = '/companies/company/news' >>> item_strip = item_path.strip('/companies') >>> item_strip 'y/new' >>> I would like to return: >>> item_strip '/company/news' What is the best way to do this. Thanks _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor