mirror of
https://github.com/MISP/misp-galaxy.git
synced 2025-01-31 08:58:26 +00:00
6 lines
No EOL
165 B
Python
6 lines
No EOL
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 |