Or maybe:
defined((grep { $_ =~ /^\d{1,3}$/ && $_ <= 255 } split /\./, $ip_addr, + 4)[3])
Regards,
PN5
In reply to Re: Regexp to match IP address
by Prior Nacre V
in thread Regexp to match IP address
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |