in reply to RE: Matching an IP address
in thread Matching an IP address
unless ($get && $get =~ /^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[1-9]{1,3}$/ && !grep { $_ < 0 || $_ > 254 } split(/\./, $get) ) { print "MYSTIFYING: invalid target specified\n"; exit +(-1);}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)RE: Matching an IP address
by tye (Sage) on Feb 22, 2001 at 10:57 UTC | |
by Clownburner (Monk) on Mar 11, 2001 at 21:36 UTC | |
by tye (Sage) on Mar 11, 2001 at 23:14 UTC |