I have a question, on how to validate IP:Port together. example:
192.158.2.10:80 <--Valid
192.158.2.10 <---Invalid
So the port is a must, I fo
Perhaps this might work. It did in my preliminary tests
var id = '192.158.2.10:80'; // passes - true // var id = '192.158.2.10'; // fails - false /^(?:[0-9]{1,3}\.){3}[0-9]{1,3}\:[0-9]{1,3}$/.test(id);