📅  最后修改于: 2022-03-11 14:45:34.810000             🧑  作者: Mango
import re
text = 'Contents :
Python ExamplesEven More Examples'
urls = re.findall('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', text)
print("Original string: ",text)
print("Urls: ",urls)