From research of the same,i came to find none of the suggested URL's matching my criteria, thus raised a new query.
Following are my requirements : * The URL may or may not contain a 'http' or 'https' * The URL can be directly an IP address with a port number.
Examples that should pass:
- http://abcd.nju.in
- flower.insu-rge.ui
- 192.89.32.4:8989
- https://170.45.6.7
- 172.36.23.5
Invalid Urls:
- http://
- http://test.
- 192.56.
- 192.65
- test.xyz