Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re: Regex for IP and Optional Portby spaz (Pilgrim) |
on Jan 17, 2002 at 04:03 UTC ( [id://139392]=note: print w/replies, xml ) | Need Help?? |
Keep in mind that a valid IP address is matched by this beast, as found in the Ram Book:
Since this is a rather unwieldy expression, and rather static, it should be quite easy to compile it once with qr// and insert it as needed. -- Dave
In Section
Seekers of Perl Wisdom
|
|