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