Sorry, but 255 and 0 are both valid values for octets. Not that you aren't the first person to make that mistake. Part of the installation process for WinNT doesn't allow 0 octets, which caused us interesting problems. For example, 11.0.255.1 is a perfectly valid IP address. Now you could play lots of games with determining which values are valid for the first octet and/or require that the netmask be passed in and use that to do a proper check... But I don't think such is at all worth it.
- tye (but my friends call me "Tye")In reply to (tye)RE: Matching an IP address
by tye
in thread Matching an IP address
by bort13
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |