A relatively simple (and too permissive) regex would be:
if ($qs =~ /^[a-zA-Z0-9][a-zA-Z0-9\.\-_]*(\/\d+)?$/) { # do stuff with $qs }
In reply to Re: Script to input IP Address and Subnet Bits (10.3.2.0/28)
by Joost
in thread Script to input IP Address and Subnet Bits (10.3.2.0/28)
by jesuashok
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |