I need to validate a url in variable with jQuery, but can\'t use validate-plugin. Is there a simple way to do this?
Code :
var re = /^(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/; re.test('http://www.goole.in');