I'm trying to extract several portions of a string and am having some issues.
The string is: "http://www.google.com http://www.yahoo.com http://www.facebook.co m"
I would like to extract google, yahoo, and facebook from that string.
I've been trying this:
This does not seem to be working. Can you please help me out?
Thanks!
The string is: "http://www.google.com http://www.yahoo.com http://www.facebook.co m"
I would like to extract google, yahoo, and facebook from that string.
I've been trying this:
Code:
var string = "http://www.google.com http://www.yahoo.com http://www.facebook.com"; var several = string.match( /www.(\w+).com/g ); console.log( several );
Thanks!
Comment