>$f='(\d+)\.';/^$f$f$f(\d+)$/&($1|$2|$3|$4)<256 According to man inet on my ISP's Sun, the individual parts of the text version of an IP address can be specified in octal, hex, or decimal. If that's the case, none of the solutions presented really check for valid IP addresses, they only check for valid IP addresses with decimal parts (although most, like the one above, don't limit them to that as they allow leading zeroes). Just a thought... Brian ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe