Extraer URL de String JavaScript

//use the regex
let url = string.match(/\bhttps?:\/\/\S+/gi);
Potato Poteto