I need to check URL. This examples must be true:
http://www.stackoverflow.com
http://stackoverflow.com
But this must not:
http:/www.stackoverflow
I tried to achieve it with RegEx:
http://(www\.)?.+\..+
But it is not working. All examples are true. This regex don't pay attention on (www\.)
part.
How can I solve this problem?