📅  最后修改于: 2022-03-11 14:45:34.125000             🧑  作者: Mango
import re
url = 'Hello World
More ExamplesEven More Examples'
urls = re.findall('https?://(?:[-\w.]|(?:%[\da-fA-F]{2}))+', url)
>>> print urls
['http://example.com', 'http://example2.com']