📜  在文本 python 代码示例中查找 allurl

📅  最后修改于: 2022-03-11 14:45:34.810000             🧑  作者: Mango

代码示例1
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)