in reply to Regexp to match IP address
Or maybe:
defined((grep { $_ =~ /^\d{1,3}$/ && $_ <= 255 } split /\./, $ip_addr, + 4)[3])
Regards,
PN5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regexp to match IP address
by Anonymous Monk on Oct 01, 2004 at 15:18 UTC | |
by petelock (Initiate) on Jun 02, 2013 at 09:18 UTC | |
by Prior Nacre V (Hermit) on Oct 02, 2004 at 02:52 UTC |