regex

Regular Expression for validate URL in Javascript
var patt1 = /^(http:\/\/)(\w+|\w+.\w+)[.](\w\w.\w\w$|\w\w\w$)/;