| Author: naveen 02 Sep 2004 | Member Level: Bronze Points : 0 |
Hi , I was looking for the code to validate IP address. U r code is great. Hats off to u
|
| Author: Manny Duarte 08 Sep 2004 | Member Level: Bronze Points : 0 |
To get a valid IP, you should use the following expression. Reason being is that the last octect has to be less than 255.
^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){2}(\.(25[0-4]|2[0-4]\d|[0-1]?\d?\d))$
|