mirror of https://github.com/MISP/misp-galaxy
6 lines
165 B
Python
6 lines
165 B
Python
|
import re
|
||
|
|
||
|
def extract_links(text):
|
||
|
links = re.findall(r'\[([^\]]+)\]\((https?://[^\s\)]+)\)', text)
|
||
|
urls = set([url for text, url in links])
|
||
|
return urls
|