remove a substring from the end of a string,"url = re.sub('\\.com$', '', url)"