Perhaps this is what he means:
re.sub("http://[^/]*/","/","http://palle.fi/wing/walla.htm")
'/wing/walla.htm'-- http://mail.python.org/mailman/listinfo/python-list
Perhaps this is what he means:
re.sub("http://[^/]*/","/","http://palle.fi/wing/walla.htm")
'/wing/walla.htm'-- http://mail.python.org/mailman/listinfo/python-list