Ranimi23 r
2007-09-06 13:35:57 UTC
If he wrote 3. = Bad IP, can't start with 3
if he wrote 0.0. = Maybe a start of a good IP
if he wrote 255.256. = Bad
The right address can be between 0.0.0.0 and 255.255.255.255
The big problem is to write the Regular Expression that is going to check if the first digit is 0 or 1 or 2, and after it can be not more than two digits and then "." (dot) and more...