in reply to Re: Re: Re: IP Address Sanity
in thread IP Address Sanity
Furthermore, the aspect of leading zeros is also contextual as an IP address is a 32-bit binary number, the dotted-quad merely a representation of this - It could be rightly argued that the leading zeros are nothing more than another representation of an IP address.
See ybiC's Don't Use Regular Expressions To Parse IP Addresses! for an excellent treatise on this topic.
perl -le 'print+unpack("N",pack("B32","00000000000000000000001000000111"))'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: IP Address Sanity
by Wonko the sane (Curate) on Dec 27, 2002 at 13:21 UTC |