var ipRegex = new RegExp("^(([1-9]?d|1dd|2[0-5][0-5]|2[0-4]d).){3}([1-9]?d|1dd|2[0-5][0-5]|2[0-4]d)$"); //0.0.0.0 to 255.255.255.255