mirror of
https://github.com/MISP/misp-galaxy.git
synced 2025-02-15 08:16:23 +00:00
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
|