in reply to ugly filtering valid public IP with regexes
Hmmm, why don't you convert any VALID IP address to a four byte integer and test that against four or five bit patterns (127.0.0.0/8, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, and perhaps 169.254.0.0/16)?
Alexander
|
|---|