What is the best regex that I can use for client validation of URLs of the form;
example.com:8080 (Valid)
10.15.123.14:8080 (Valid)
example.com (Invalid)
10.15.123.14 (Invalid)
The protocol "http" is not necessary/required. In fact that is not going to part of my form field.