-
-
Save artero/1118001 to your computer and use it in GitHub Desktop.
Extraer todas las urls de una cadena
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var re = /http([^"'\s]+)/g, | |
text = 'href="%interes%&i=SoyUnInteres&u=http://google.es/?%moglaA2%20 texto sobre el texto de textos a mas textos %Q /ht href="%interes%&i=OtroInteres&u=http://popplers.com"', | |
encontrados = text.match(re); | |
console.log(encontrados); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment