I would like to check if the given url is valid.
It should accept:
www.gmail.com
and should reject:
www.gmail
I tried using this /((ftp|http|https):\/\/)?(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/
It works but if the given input is www.gmail
it does accepts it.
Any Ideas?
UPDATE