package cybersecurity import "regexp" var urlRegex = regexp.MustCompile(`https?://[^\s<>"'` + "`" + `\)\]\}]+`) // ExtractURLs extrae todas las URLs (http/https) encontradas en el texto proporcionado. func ExtractURLs(text string) []string { matches := urlRegex.FindAllString(text, -1) if matches == nil { return []string{} } return matches }