Извлечь URL -адреса из String JavaScript
//use the regex
let url = string.match(/\bhttps?:\/\/\S+/gi);
Potato Poteto
//use the regex
let url = string.match(/\bhttps?:\/\/\S+/gi);