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
^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
//validate
/[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}/g