I need to check the web address, using regular expression.
if user type url as
(https?:\/\/)?([\w\d]+\.)?[\w\d]+\.\w+\/?.+
This will work for matching:
www.demo.com http://foo.co.uk/
www.demo.com
http://foo.co.uk/