text = 'https://www.nytimes.com/2017/10/09/us/politics/corkers-blast-at-trump-has-other-republicans-nodding-in-agreement.html?rref=collection%2Fsectioncollection%2Fpolitics\r\n'
test = re.findall(r"^http* com$",text)
result i have :
test = [ ]
The output I am expecting would be like this:
www.nytimes.com