Welcome to the Monastery | |
PerlMonks |
Re: IP Address Sanityby Wonko the sane (Deacon) |
on Nov 07, 2002 at 22:33 UTC ( [id://211274]=note: print w/replies, xml ) | Need Help?? |
This bit of code is what I like to use to check the validity of an IP address.
This is a variation of one from the the Great Book "Mastering Regular Expressions" by Jeffrey Friedl,
This catches everything except for '0.0.0.0' ip's which you can handle easily by one addtional check to your test routine. Best Regards, Wonko
In Section
Seekers of Perl Wisdom
|
|