Syntactic Confectionery Delight | |
PerlMonks |
Re: Regexp to match IP addressby pbeckingham (Parson) |
on Aug 06, 2004 at 14:33 UTC ( [id://380567]=note: print w/replies, xml ) | Need Help?? |
Be aware that your code doesn't do what you think. It checks for 4 single digits separated by periods. \d checks for a single digit, not a number. The code is too simplistic to really check for an IP address. pbeckingham - typist, perishable vertebrate.
In Section
Seekers of Perl Wisdom
|
|