ewhitt has asked for the wisdom of the Perl Monks concerning the following question:
1) How to ensure each octet doesn't exceed 255 (e.g. 300.1.2.2 is not a valid IP address)if ($ip2 =~ m/(\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})/)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing IPv4 Addresses and distinguishing Masks
by bobf (Monsignor) on Dec 08, 2007 at 04:14 UTC | |
|
Re: Parsing IPv4 Addresses and distinguishing Masks
by TOD (Friar) on Dec 08, 2007 at 04:20 UTC | |
|
Re: Parsing IPv4 Addresses and distinguishing Masks
by Anonymous Monk on Dec 08, 2007 at 06:01 UTC | |
|
Re: Parsing IPv4 Addresses and distinguishing Masks
by NetWallah (Canon) on Dec 09, 2007 at 01:53 UTC |