jesuashok has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I have this one, but it only accepts 10.3.2.1 (as well as www.example.com).
Any suggestions?if (($qs =~ /^(\d+\.\d+\.\d+\.\d+)$/) or ($qs =~ /^([a-zA-Z0-9][a-zA-Z0-9\.\-_]*)$/)) { $qs = $1;
"Keep pouring your ideas"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Script to input IP Address and Subnet Bits (10.3.2.0/28)
by McDarren (Abbot) on Dec 03, 2005 at 15:40 UTC | |
by ikegami (Patriarch) on Dec 03, 2005 at 17:33 UTC | |
Re: Script to input IP Address and Subnet Bits (10.3.2.0/28)
by psychotic (Beadle) on Dec 03, 2005 at 15:36 UTC | |
Re: Script to input IP Address and Subnet Bits (10.3.2.0/28)
by Joost (Canon) on Dec 03, 2005 at 15:36 UTC |
Back to
Seekers of Perl Wisdom