dongdong wrote:

> is there any lib to help to clear the absolute url in a html file? for
> example, 'http://www.sina.com/' should be clear ,but "/image/asd.gif"
> should be reserved.

Built-in string-manipulation is your friend:

"abcdef/ghi".replace("abcdef", "")


Diez
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to