in reply to IPv4 regex
From README:
Net::IPv4Addr provides functions for parsing IPv4 addresses both in traditional address/netmask format and in the new CIDR format. There are also methods for calculating the network and broadcast address and also to see check if a given address is in a specific network.
And from POD:
cheers,ipv4_checkip if ($ip = ipv4_checkip($str) ) { # Do something } Return the IPv4 address in the string or undef if the input doesn't co +ntains a valid IPv4 address.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IPv4 regex (Net::IPv4Addr)
by ryan (Pilgrim) on Feb 18, 2001 at 18:38 UTC | |
by tye (Sage) on Feb 19, 2001 at 01:00 UTC | |
by tilly (Archbishop) on Feb 19, 2001 at 03:35 UTC | |
by tye (Sage) on Feb 19, 2001 at 11:34 UTC |