A python function to capture an IP address or range

I recently needed a function that validates an IP address or network range. Since my python application will pass it as a parameter to iptables it needs to be correct and not ‘close to’. So I dug in … Validating an IP address or range with just a regex seems like self castigation. I looked [...]

June 12, 2008  Tags: , , , , ,   Posted in: All ENGLISH articles, Technical  No Comments