I am having form which takes url as input..I want to validate it using javascript and regular expression..
it should accept
www.google.com
google.com
http://google.com
Please suggest me a regular expression and total code if possible for validation of url... i tried lotta url given on many forums..but couldn't get appropriate answer.. thanks in advance