I would like to validate url's in javascript before user proceeds further.
The urls below should match;
http://google.com
http://www.google.com
www.google.com
google.com
And not match;
http://google
http://www.google
www.google
google
Please help me im really bad at regex