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