Si alguno necesita una solución esta fue la que encontre var str = '<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d63538.988843284!2d-73.39126060847818!3d5.539292971765542!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8e6a7c2e897fba5b%3A0xac9fda7e6b9aa68c!2sTunja%2C%20Boyac%C3%A1%2C%20Colombia!5e0!3m2!1ses!2sve!4v1602162121073!5m2!1ses!2sve" width="100" height="100" frameborder="0" <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> var str = '<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d63538.988843284!2d-73.39126060847818!3d5.539292971765542!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8e6a7c2e897fba5b%3A0xac9fda7e6b9aa68c!2sTunja%2C%20Boyac%C3%A1%2C%20Colombia!5e0!3m2!1ses!2sve!4v1602162121073!5m2!1ses!2sve" width="100" height="100" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>'; var patt1 = /"(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/gi; var resultado = str.match(patt1); console.log(resultado) <!-- end snippet -->