Regexp::Common's $RE{net}{IPv4} and $RE{net}{domain}{-nospace}
Note that 2130706433 is in fact a valid IP address (equal to 127.0.0.1) and that you might just want to try inet_ntoa inet_aton $ip instead. (These can be found in the standard module Socket).
Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }
In reply to Re: Untaint IP address/hostname question
by Juerd
in thread Untaint IP address/hostname question
by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |